rubymine

How do I run 'gem install bundler' in RubyMine?

自闭症网瘾萝莉.ら 提交于 2019-12-11 07:32:33
问题 I'm having trouble with updating Ruby in my RubyMine IDE. I get an error reporting that I need to run gem bundle install but I haven't found a place in my IDE to run that command. I have run it in my Ubuntu console and everything works fine, but I can't find a console in the IDE that I can use to run the command and update that environment. I assume there's an easy solution, but google has not helped much in finding it. Any help would be much appreciated. 回答1: For Rubymine 18.1 and above,

What is the name of the keyboard shortcut &/or method in an IDE which allows me to jump past automatically generated </endtags>?

左心房为你撑大大i 提交于 2019-12-11 05:10:41
问题 This question relates to a prior question which was answered for all practical purposes with a fellow telling me I simply needed to press the "End" key to skip the cursor to the end of the line. But a second respondee told me of other IDE's abilities to this (his words): "In some IDE, pressing the tab key will move your cursor to the next placeholders in the currently auto replaced element, and if there is no more placeholders, brings you past the end of the auto replaced text." What is this

Don't Understand Bundler Interaction with Gems

冷暖自知 提交于 2019-12-11 03:42:49
问题 I thought I understood how Bundler works with gems, but after something that recently happened, I am not sure I have it right. I am developing an Rails application. To start off (and just so I would get familiar with the Rails environment which I haven't worked in before), I did not use an IDE. But, because I'm missing out on some of the advantages of an IDE, I just started using RubyMine. As part of the RubyMine setup, it asked to update all my gems for my existing project. After that, I

How to stop RubyMine/WebStorm from including node_modules when using 'find in path'

六月ゝ 毕业季﹏ 提交于 2019-12-11 00:33:28
问题 I have a node.js project which, after running npm install has a node_modules folder in the project root. Everything works fine, but when I load the project into RubyMine, right-click on the project root folder and choose find in path... , the search includes all of the code inside node_modules , which is not useful. I have tried to mark the node_modules folder as 'excluded', which works, but it still includes the contents in the search. How can I get find in path... to only search my project

Rubymine 6 update/refresh available methods and paths in a rails project?

烂漫一生 提交于 2019-12-10 16:44:12
问题 Here's an example. Say I update routes with resources :foo and that buys me some new paths like: new_foo_session When I begin to type the path in an ERB view I expect it to show me/ suggest with auto complete the names matching the path. So as I type: new_foo_ I would get all the routes that match. Also after installing a gem say devise which has helpers like current_user I would like RubyMine to suggest current_user as I begin to type it, however I am not getting that. How do I update the

RubyMine doesn't recognize gem from git repository

时光总嘲笑我的痴心妄想 提交于 2019-12-10 16:40:15
问题 We have a git repository with a custom gem. To install it Gemfile has a line: gem 'my-gem', :git => 'git@192.168.1.100:my-gem.git' After installing the gem, it is not shown in RubyMine`s External Libraries. How to make the gem be shown in External Libraries and code from the gem be autocompleted? 回答1: We get this error as well, so it's probably a bug in RubyMine. A workaround is to check out that gem repo and tell bundler to use it. Note that the remote repository will not be used anymore.

Does RubyMine have TextMate-style multiple line editing?

强颜欢笑 提交于 2019-12-10 13:18:04
问题 Is there a shortcut key for editing multiple lines in RubyMine (Windows) as you can do with TextMate? I've seen it in TextMate where you can highlight multiple lines, and press a key code, then start typing. All text you type will appear at the end of all of the highlighted lines. I would love to do this with RubyMine as well. Thanks! 回答1: Yes, this feature is called Column Mode and can be enabled via Edit menu or keyboard shortcut. 回答2: RubyMine version 6.3 and later has real multiple line

Running test from RubyMine gives 'cannot load such file'?

怎甘沉沦 提交于 2019-12-10 07:12:28
问题 I have a test which runs as expected from the command line with: bundle exec rake test TEST=test/my_test.rb However, when I run the test from RubyMine I get: require': cannot load such file -- my_test_helper_gem/test_helper (LoadError) When I cmd+click on the require statement in my_test, RubyMine opens the expected source code. Any suggestions of how to resolve this? Possibly it works for the command line due to some magic related to rake ? 来源: https://stackoverflow.com/questions/40002746

If I have IDEA, do I need rubymine for ruby dev or will it do both?

谁说胖子不能爱 提交于 2019-12-10 03:26:07
问题 Does IDEA support all the features of rubymine, or is rubymine more refined for rails and IDEA doesn't have all the rubymine features? 回答1: The Ruby plugin does include all the features of RubyMine, although the latest version of the Ruby plugin usually requires EAP builds of IntelliJ IDEA. (At the moment, the version of the Ruby plugin for IntelliJ IDEA 9.0.3 does not include all of the new features of RubyMine 2.5 - only the version of the plugin for IntelliJ IDEA X EAP does.) RubyMine also

RubyMine debugger with Rake?

时光总嘲笑我的痴心妄想 提交于 2019-12-10 01:28:27
问题 Using RubyMine 3.0, I set up a Rake configuration to run a Unit Test. Then I set some breakpoints, then ran the Rake task. No breakpoints were hit, the test just executed like normal and then exited. Does the RubyMine debugger not work through Rake? 回答1: Try this: Go to Run -> Edit Configurations Expand the Rake node and add new rake configuration for your rake task (if not already done) Go to Run -> Debug... Select your configured rake task. 回答2: The above answer is correct. I just want to