rubymine

RubyMine not recognising gems installed with bundler in the editor

ぃ、小莉子 提交于 2019-12-23 13:06:26
问题 I'm having difficulties getting RubyMine to see my gems properly. The problem I'm seeing is that the editor screen does not recognise any classes for any gems eg for MyClass < ActiveRecord::Base, I see a yellow warning: Cannot find 'ActiveRecord' . I'm using bundler and I have my gems configured per project and installed in /some/project_dir/.bundle/gems I've seen this bug: http://youtrack.jetbrains.com/issue/RUBY-14542, so I'm attempting to work round this by launching RubyMine as follows:

How do I tell RubyMine the file type when the file has no extension?

人走茶凉 提交于 2019-12-23 12:29:12
问题 This seems like it should be easy. I'm creating a CLI command gem, so the command is in bin/gem_name which has no .rb extension. When I try to edit that file in RubyMine, it doesn't give it a language mode (sorry, don't know the proper term) to make syntax highlighting and other niftyness in RubyMine work. How can I tell RubyMine that this is, in fact, a Ruby file? 回答1: There are several ways to tell RubyMine that a file is of a particular type: Begin the command file with a hashbang line

How to fix “Run Configuration Error: [No Rails found in SDK]”?

≯℡__Kan透↙ 提交于 2019-12-23 07:38:33
问题 I am looking at a Rails project which I would like to be able to work with using IntelliJ 15.0.3 (full version) under Ubuntu 15.10. The project builds with "bundle install". Rails run from the command line using "rails s". IntelliJ (and RubyMine 8.0.3) does not want to launch Rails but complains with "[No Rails found in SDK]". I have tried the default ruby in Ubuntu. I have tried compiling Ruby 2.3.0 and installing it in my own home folder. There is a rails binary next to the ruby binary. The

Dropdown list for ruby methods of a package in RubyMine IDE?

安稳与你 提交于 2019-12-23 06:08:05
问题 Usually, the dropdown list in IDEs appear by pressing tab after importing the package and typing its names but not in RubyMine. I have Vim emulation on. I opened up the interactive ruby shell irb but cannot get the autocompletion working for the methods of a package. How does the autocompletion works in RubyMine and how to list the methods of a package such as OAuth? 回答1: The RubyMine autocompletion works mostly by completing names and keywords used throughout the project see here for some

Why RubyMine 2.0.2 starts Webrick on different port each time I run/debug my app?

穿精又带淫゛_ 提交于 2019-12-22 10:28:58
问题 Each time I start my Rails 2.3.8 webapp under RubyMine, it's using a different port. This drives me mad, since I've to change the URL in the browser each time I want to test something. I'm unable to find any configuration option to change that. Anyone? 回答1: This may not help because I'm using RubyMine 3, however, there is a dropdown menu in my toolbar for selecting the different development environments (e.g. production, development). The dropdown menu is to the left of the green "Run"

Change GIT login/username in IntelliJ IDEA, RubyMine etc

谁说胖子不能爱 提交于 2019-12-22 08:45:22
问题 Authentication login/username for my GIT account changed. How do I tell this to my IntelliJ product? 回答1: GIT record login-name in remote repository URL. You can change that in IntelliJ product in couple of ways. Quick way Type CTRL + SHIFT + A to open Enter action or option name dialog Type Remotes... to filter the list as in image Select Remotes... for Git (first selection on image) and following dialog is openede In Git Remotes dialog, use pencil icon to open Define Remote dialog Press OK

How can I navigate lines of files with the keyboard quicker in IntelliJ?

China☆狼群 提交于 2019-12-22 08:22:19
问题 Is there a keyboard shortcut or how can I set up a keyboard shortcut in IntelliJ to either: Go up/down several lines at a time (e.g. 5 or 10) Jump up/down a method in a class Go into a method hierarchy and then scroll up and down a method list Or are their better ways to quickly navigate through code files with the keyboard? 回答1: IntelliJ is incredibly flexible with so many shortcuts it's hard to remember them all. I didn't find a current builtin solution for your first shortcut request: "1.

rubyMine 'Unable to attach test reporter to test framework'

懵懂的女人 提交于 2019-12-22 02:03:07
问题 rubyMine 'MiniTest framework was detected' error when running all model tests. I can run all model tests at the regular command line. e.g. rake spec:models When I use rubyMine: I can run one model test ok. However when I try to run all tests in model I get MiniTest framework was detected. It is a limited version of original Test::Unit framework. RubyMine/IDEA Ruby plugin test runner requires full-featured version of the framework, otherwise default console tests reporter will be used instead.

RubyMine error: Unable to run gem 'rails'. Cannot find 'rails'

牧云@^-^@ 提交于 2019-12-21 08:26:46
问题 When I try to create Rails Application with RubyMine, it fails with message "Unable to run gem 'rails'. Cannot find 'rails'". Why? And how to solve it? RubyMine's version is 4.0.2. There's some information about my system: $ ruby -v ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] $ gem -v 1.8.11 $ uname -a Linux somehost 3.2.0-2-amd64 #1 SMP Tue Mar 20 18:36:37 UTC 2012 x86_64 GNU/Linux $ lsb_release -d Description: Debian GNU/Linux testing (wheezy) $ rails -v Rails 3.2.3 Here's

How to move focus to another “tab group” in Intellij IDEs

末鹿安然 提交于 2019-12-21 06:56:37
问题 IDEs based on the IntelliJ platform let you split the editor in various ways, but I don't see an option to move focus from one editor to another using just keyboard (something like other-window from Emacs). Is there an "action" to do that? 回答1: For mac users, the default shortcut is alt+tab 回答2: I think you're already find answer, but for someone who have same question and find this post like me. Go to Prefernces -> Keymap or simple use search in preference and find Goto Next Splitter and