rubymine

Useful customizations in .ideavimrc

萝らか妹 提交于 2019-12-20 19:08:51
问题 I'm interested in hearing how some of you have customized your .ideavimrc file to improve your workflows within your Jetbrains IDE. I'm unsure of its capabilities and would love to know what can be customized. A list of possible customizations would also be helpful. Thanks! 回答1: Basically you can safely source your ~/.vimrc, but be aware that some tricky :map commands may break IntelliJ shortcuts (that was the reason why IdeaVim switched to its own configuration file instead of ~/.vimrc). The

Rubymine Not Locating Gems Specified by BUNDLE_PATH

ⅰ亾dé卋堺 提交于 2019-12-20 12:34:30
问题 I am using RubyMine IDE with RVM for Ruby version management and bundler install --path vendor/bundle to keep my gems local. However, RubyMine doesn't seem to be reading my .bundle/config file which specifies where my gems are located with the BUNDLE_PATH property: BUNDLE_PATH: vendor/bundle BUNDLE_DISABLE_SHARED_GEMS: '1' I have found some sources which indicate that RubyMine should support this, but can't seem to find any explanation of exactly how it works or how to fix it properly. This

RubyMine debugger

荒凉一梦 提交于 2019-12-20 07:18:55
问题 I used rubyMine and want to run debugger but have error what this ,mine and waht need to doing ? screen /home/ivan/.rbenv/versions/2.3.1/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/ivan/host/courses/lesson8/bin/rake spec Testing started at 20:27 ... /home/ivan/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.4/lib/bundler/spec_set.rb:95:in `block in materialize': Could not find rake-11.3.0 in any of the sources (Bundler::GemNotFound) Also I have ruby-2

How to disable RubyMine code completion after comment line ending in period?

限于喜欢 提交于 2019-12-20 04:34:14
问题 I am using RubyMine 6.3.2. When I type the following line and press return/enter: # This is a comment. the editor inserts additional text, resulting in: # This is a comment.after() do end I understand that this happens because "aft" is the first item on the dropdown that appears after typing ".". I can preventing the insertion by pressing space after return/enter, but that adds a space to the end of the line, and I have to remember to do it. Is there a way to disable code completion within

Increase / Decrease code font size keyboard shortcut

非 Y 不嫁゛ 提交于 2019-12-19 09:28:07
问题 I know how to change the setting : https://stackoverflow.com/a/11129039/390330 But I want a more live solution like I get with the mouse: Ctrl + Mouse Wheel shortcut. Except I need it to be a keyboard shortcut (e.g in browsers there is Ctrl + + / Ctrl + - ). Is there such a keystroke / or can one be set 回答1: Nope. Currently only Ctrl+Mouse Wheel Corresponding ticket: http://youtrack.jetbrains.com/issue/IDEA-84884 UPDATE: It has been implemented now (2 months later after writing this answer):

Integrating RubyMine with GitHub for Windows

。_饼干妹妹 提交于 2019-12-19 02:49:13
问题 I am just learning Ruby and Rails, and am using RubyMine on Windows as my IDE. GitHub has just released GitHub for Windows. I installed it, and it seems like a nice interface. However, it does not seem to have installed anything like a git.exe for RubyMine to pick up and work with. So RubyMine whines that it can't find git, and git (in the form of GitHub for Windows) sits there blithely ignoring RubyMine. Naturally, I've looked for information on the GitHub site - nothing. Am I going to have

Running a spec in RubyMine results in “cannot load such file — teamcity/spec/runner/formatter/teamcity/formatter (LoadError)”

大兔子大兔子 提交于 2019-12-18 12:43:33
问题 OS: Arch Linux, Rails version: 4, RubyMine: 6.3 When I run a spec from Tools - Run Rake Task - spec I always get this error: /home/chylli/.rvm/gems/ruby-2.1.2@rails4/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1024:in `require': cannot load such file -- teamcity/spec/runner/formatter/teamcity/formatter (LoadError) but it is OK to run 'debug spec:models'. What I tried: I added 'ruby arguments' under Run - edit configurations: -I$RUBYMINE_HOME/rb/testing/patch/bdd -I$RUBYMINE_HOME/rb

LoadError trying to use MySQL with Ruby on Rails in Windows, RubyMine IDE

大城市里の小女人 提交于 2019-12-18 04:27:14
问题 I am getting the following error when trying to run a simple Ruby on Rails application from RubyMine: C:/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2/mysql2.rb:2:in `require': 126: The specified module could not be found. C:/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2/1.9/mysql2.so (LoadError) The thing is, that file is actually there. Further, I've run 'bundle install', associated the mysql with the project, and everything else I can find.

IDE comment keywords

时光总嘲笑我的痴心妄想 提交于 2019-12-17 22:46:46
问题 So I only recently discovered the TODO comment. For those of you that don't know, most modern IDE's will recognize this word in a comment and flag the comment line a different colour so It stands out. EG. //Need to talk to Bill about refactoring this code //TODO:Need to talk to Bill about refactoring this code You may notice in IDE's like Eclipse or Rubymine highlight the TODO comment and some nice other features to do with it. My question is: What other keywords are there like the TODO? It

Rubymine(Jetbrains) local server. Can I get it to run from localhost root?

不想你离开。 提交于 2019-12-17 20:32:46
问题 Currently when I open the html file I'm working on it takes me to http://localhost:63342/project-folder/index.html Is there a way to set Rubymine to run my project from the root, eg. http://localhost:63342/index.html 回答1: http://localhost:63342/index.html -- you cannot have this kind of URL with built-in web server .. as IDE does not know what project to serve (as it works for ALL your projects a not only currently opened). When built-in web server is in use, the URL has to have some hint (