Questions tagged [rubymine]
RubyMine is a commercial cross-platform IDE for Ruby and Ruby on Rails development, created and provided by JetBrains.
1,237
questions
1
vote
1
answer
22
views
Rubymine Unused Method Highlighting
Is it possible for Rubymine to highlight unused methods if you aren't using a typing system like ruby 3 or sorbet has?
0
votes
0
answers
25
views
Rails: Could not find a JavaScript runtime while trying to run tests in rubymine
I have a rails 6.1 app with an rspec test suite running on ubuntu 20.04 and i use rubymine 2022.1.3 as an IDE when i try to run the tests from the Run configuration like spec for example or when i ...
0
votes
1
answer
22
views
RubyMine does not allow Rails Folders View
Hi
Here i am missing the "RailsView" that is showing a different structure that was more handy than the "Project Files" View.
It was on the bottom of that popover.
i had it but ...
0
votes
1
answer
41
views
Is there a way to search for a specific column of a database table inside JetBrains IDEs (IntelliJ/RubyMine)?
JetBrains' IDE has a database client where you can view the different tables rows/columns.
I have a table with hundreds of columns. Is there a way to jump/search for a specific column? Otherwise, it's ...
0
votes
1
answer
21
views
How to force RubyMine to reinstall gems it is using for the debugging in the remote environment
I have a project that I deployed to the docker container. Then I configured the remote debugging over ssh in the RubyMine and when I tried to debug the project for the 1st time it installed additional ...
0
votes
0
answers
15
views
When I am trying to run the code in rubymine it is showing SDK error. I configured the SDK GEM but still it is showing the same error
This is the error I am getting:
Rails server launcher '/Users/skallamadi/github1/itildesk/vendor/gems/will_filter/test/dummy/bin/rails' was not found in a project
1
vote
0
answers
27
views
Proper Ruby on Rails YARD Tags Interpolation in Ruby Mine
Want to setup Yard properly in Ruby Mine and any advice would be appreciated.
class Entity < ApplicationRecord
belongs_to :user
end
# @param user [User]
def authorized_for_user?(user)
return ...
0
votes
1
answer
27
views
How do I remove the "library root" setting from a directory?
I use RubyMine.
When I created a project, a directory was automatically set to the "library root" as shown below.
I would like to remove this library root, but I could not find a way to do ...
0
votes
0
answers
16
views
Rest Assured using Rubymine
Can we use RestAssured with Rubymine for API automation framework ?
I wants to analyse if we can use Ruby as language, on Rubymine IDE and along with RestAssured for API automation.
0
votes
0
answers
487
views
Ruby on Rails (`initialize': wrong number of arguments (given 3, expected 2) (ArgumentError))
I keep getting this error when trying to compile a 15 year old Ruby site.
=> Rails 5.1.7 application starting in development
=> Run `rails server -h` for more startup options
Exiting
C:/Ruby31-...
0
votes
0
answers
23
views
"Redundant safe navigation" RubyMine JetBrains wrongly triggered warning
Seems like when we have &.first it wrongly mark it with warning
The solution I found for this is to either reduce the level of Severity or disable the check at all.
I personally chose to reduce ...
1
vote
1
answer
365
views
Rubymine debugger is failing on Macbook with M1 chip
I recently switched to a Macbook with the M1 chip, but now when trying to run my project in debugger mode on Rubymine 2021.3.3 I get the following error:
/Users/xxx/.rbenv/versions/2.7.4/lib/ruby/...
1
vote
1
answer
124
views
how can I get the rubymine/intellij rails debugger to work?
I created a new app with rubymine and try to debug a rails app but get "no frames available". How can I get this to work?
latest version of ruby, rails and rubymine. Also fails with intellij....
0
votes
1
answer
87
views
Getting "jruby: no Ruby script found in input (LoadError)" while running rails application in Rubymine
Apologies if it's a duplicate question. Asking this as I haven't got any solution yet. Trying to run rails application in Rubymine. I have setup the configuration in Rubymine so that on click on run ...
0
votes
0
answers
20
views
How to Debug Logstash using Rubymine or Eclipse
I dont know how to set up logstash and rubymine to be able to debug logstash code.
I tried opening the project in rubymine then set the breakpoint at a certain point.Then ran the application but flow ...
0
votes
0
answers
29
views
RubyMine can't trigger docker-compose up in some computers
I have a project configuration in RubyMine to allow running docker-compose up from the toolbar:
The file, .run/docker-compose up.run.xml contains:
<component name="...
0
votes
0
answers
177
views
RubyMine Remote SDK with docker-compose finds and sets up correctly, but terminates the rspec
I have set up docker-compose with my SDK, as per the IntellJ Instructions, and it found and indexed the gems. Shows the list, and log states that it is installing.
However when I go to run the specs, ...
1
vote
2
answers
105
views
RubyMine dont support rbs
I want to try RBS in RubyMine,so I follow this link: https://www.jetbrains.com/help/ruby/rbs.html
but in my RubyMine,rbs not work
rbs not work
in video there's new rbs file but no in my RubyMine
no ...
0
votes
0
answers
61
views
Prevent Rubymine from auto-correcting hash and array alignment
RubyMine aggressively enforces the following style for arrays and hashes:
expect(something).to eq({
name: 'John Doe',
email: 'johndoe@example.com'
...
3
votes
1
answer
89
views
JetBrains IDEs - How To Prevent IDE From Changing "Class" Attribute To "ClassName" In React Projects On Copy And Paste?
I work on a React project with my JetBrains IDE and most of the elements in my project are React components. I do however use the Ionic Icons library and when I need to insert an icon into my ...
0
votes
0
answers
81
views
Configure custom rspec runner script
I need to run rspec with CI=1 or tests will fail.
For example working command from terminal looks like this:
CI=1 rspec spec/features/admin/
Anyone knows how to configure RubyMine to run integrated ...
0
votes
0
answers
31
views
Why does Rubymine say this is invalid ruby code?
I am new to ruby and rails and am working on my README.md for my first commit. I have this subheader:
###Configuration
Rails defaults to using SQLite for the database. If you would prefer to use ...
0
votes
0
answers
29
views
Rubymine with ruby 2.6.6 don't run the project
I tried to run Rubymine with ruby 2.6.6, it creates the project but when and all but when I tried to view the site (run configuration) on the browser I write 100 error lines, when I run with ruby ...
0
votes
0
answers
45
views
How to open the correct function implementation in RubyMine?
When I try opening a function implementation in RubyMine using cmd+click it shows multiple implementations, is there any way to narrow it down to the correct one.
0
votes
0
answers
45
views
can not run "rspec --only-failures" in rubymine
I'm follwing the rspec tutorial and have this file as follows:
class Coffee
def ingredients
@ingredients ||= []
end
def add(ingredient)
ingredients << ingredient
end
def ...
0
votes
0
answers
52
views
I can not to run feature.file from Rubymine
Can someone tell me where is my mistake?.
I'm trying to run the feature from Run but I haven't had success.
If I run via terminal it is possible. I've tried several ways but still succeeding.
:\...
1
vote
0
answers
187
views
RubyMine can't attach to process
Here's my environment:
Docker containers for DB (Postgres), Memcached and Redis
Webpack running on the terminal
Rails server running on another terminal
Then, in RubyMine, I execute Attach to ...
0
votes
0
answers
64
views
Why do Terminal in Rubymine and Iterm2 have different results?
I installed a rails gem on RubyMine Terminal window.
And then I checked the rails version. But it didn't work.
However, On Iterm2 I can check my rails version.
I already tried reset, restart rubymine. ...
1
vote
1
answer
94
views
Ruby On Rails executing with wrong version
I try to Run my new rails app using RubyMine, and it seems to use some wrong Ruby version and i can't figure out why!
I used rbenv to setup the environment
.ruby-version shows 3.0.2
/bin/zsh -c "...
0
votes
0
answers
23
views
Get Rubymine to recognize webpacker.yml config
Is there a way to get Rubymine to process the webpacker.yml config file to properly setup roots and the like? I think I can manually set a directory as a root for doing javascript imports but I'd ...
0
votes
0
answers
190
views
Rails configuration with docker-compose remote sdk fails on RubyMine
So I work with RubyMine, and I configured my docker-compose integration like in this tutorial, but I have an error when I simply hit the 'run' button:
ERROR: Duplicate mount points: [/home/kyrela/...
4
votes
1
answer
85
views
How to launch a editor with better_errors in WSL environments
I'm using better_errors gem in WSL environments.
When I used Mac, I could open a file by clicking error page's file path like below.
I have this line in config/environments/development.rb.
...
0
votes
1
answer
296
views
Can't run rspec in WSL from RubyMine
I'm trying to trigger running RSpec from RubyMine when using WSL to run Ruby. I can successfully start the server but when running RSpec I get this error:
C:\Windows\system32\wsl.exe --distribution ...
0
votes
1
answer
132
views
Rubymine command + click shows Rails methods but Not ruby methods. is it possible to command + click Ruby methods in a rails app?
So I'll have something like...
MyClassname.find_by_name("email")
If I command + click find_by_name my rubymine tells me "method_missing" as it is not a RAILS method, It's a method ...
1
vote
0
answers
640
views
How to debug with Rubymine, Docker-Compose and multiple debug sessions?
I am experimenting with Rubymine's "Docker-Compose" integration. I normally do the "usual" debugging, by using the and "BUG"-buttons to start a debug session.
Normally I ...
0
votes
0
answers
531
views
【RubyMine】Debugger does not start
Overview
I am developing using RubyMine.
I wanted to use RubyMine's debugging function as excellent, I got an error.
Detail
Add a break point
↓
Debug button pressed
↓
console
/bin/zsh -c "bash -c ...
-2
votes
1
answer
47
views
When executing a run configuration, JetBrains software does not seem to be using the Ruby version I specified
I am trying to run a "Run configuration". However in the run window, I get a message:
Your Ruby version is 2.2.1, but your Gemfile specified 2.5.2
So I go to the Terminal tab and I do rvm ...
0
votes
0
answers
115
views
How do I configure Rubymine to work with our folder structure?
We're in the process of breaking up our Rails app into modules. The main app has a (decreasing but still large) number of rspec tests under spec/ and also each module has its own tests under modules/[...
0
votes
0
answers
72
views
Can not seem to pull out the attributes of this object
I have a method where an object is called but I can not seem to pull out the attributes of this object and I do not understand why.
def set_cashier
test = User.first
result = test....
0
votes
0
answers
56
views
Cant create or update tables on ruby on rails
I can't force it to go to the update method and to the destroy method, it gives the error " ActionController::RoutingError (No route matches [POST] "/tourbases/1"): "when deleting ...
0
votes
1
answer
163
views
rdebug-ide is exploading is my rdebug-ide incantation wrong?
Remote debugging in rubymine and I’m getting this error…
dev$ rdebug-ide --host 0.0.0.0 --port 1234 --dispatcher-port 26162 -- bin/rails s
Fast Debugger (ruby-debug-ide 0.7.2, ruby-debug-base19x 0.11....
0
votes
1
answer
107
views
How to remove an account from the Cloud code intellij plugin
I have recently the cloud code plugin for Rubymine and i was wondering how to remove an account so the plugin cannot access the projects associated with that google account.
0
votes
0
answers
282
views
RubyMine Rails Remote Debug rdebug-ide
I'm using RubeMine to develop RAILS code.
And I'm using remote debugging between RubyMine and rdebug-ide.
All works very well, but there is a minor point the debugger failes.
In RAILS I'm using in the ...
1
vote
0
answers
169
views
Rails Debugging in a docker on a remote server from Rubymine
How can I connect the Rubymine IDE debugger with a remote running rails app running inside a container?
1
vote
0
answers
87
views
Rails, partials annotations, rubymine
I have a Haml partial, which is rendered in a few templates, and requires specific local variables.
I want let know to other developers and IDE's (rubymine) know which local variable dependencies this ...
0
votes
1
answer
104
views
What exactly needs to be included in a RubyMine custom Ruby configuration, esp. for debugging?
I usually use rvm, but also need to work with a custom Ruby build. I understand that when I go to the RubyMine "Settings", "Languages & Frameworks", "Ruby SDK and Gems&...
0
votes
0
answers
137
views
RubyMine debug gem versions different from public gem versions
I am using RubyMine version 2021.1 on Mac OS (10.15.7, Catalina) and Ubuntu.
I am having difficulty getting the debugging gem installation to work with a custom Ruby that is outside of my rvm ...
1
vote
0
answers
27
views
How can I move all classes from a directory under a module?
I have a project with a lot of tests. One issue is that many classes under tests/integration and tests/functional have colliding class names. This produces errors when trying to run tests inside ...
1
vote
0
answers
45
views
Does RubyMine/LSP ignore YARD @private @!visibility private settings?
What I'm trying to achieve:
I have a public method in a class that I would like to be removed from autocompletion in IDEs by making it private via YARD.
I've tried adding @api private, @!visibility ...
2
votes
0
answers
253
views
SDK in RubyMine not found
For some reason, RubyMine is not finding my Ruby version I've installed in my Mac (OS Big Sur).
When I type which ruby in my terminal, I get this as a result:
git:(master) which ruby
/Users/sc/.rvm/...