Newbie question...
I am a Java Engineer who is now doing some Rails development. I have been using IntelliJ for the past 5 years and am now using RubyMine with the hopes that it will just as amazing as IntelliJ. I have an open source project that I have set up and running and decided to test out setting up a run/debug configuration. Unfortunately the documentation is pretty sparse. I have added a Rails target and set up what the IP (localhost), the port and so on but I am getting the error:
run configuration error: ruby script not found
Like I said, I am a newbie to Ruby (HA!) and used to IntelliJ. This type of error in IntelliJ is solved by clicking on some button on the dialog. Anyway. Any help would be appreciated - learning a new language is challenging enough - having to learn a new IDE along with the language is definitely hard.
Thanks!
Please sign in to leave a comment.
Hello Bryan,
I think that RM doesn't detect your project as Rails application. Reed my post(Apr 30, 2009 1:49 PM) at http://www.jetbrains.net/devnet/message/5237051#5237051. I think it will help you.
P.S: We have Ruby plugin for IntelliJ IDEA 8.1. If you have idea license you can try it.
Cool. I figured it out from that post - I guess RubyMine is very particular at what you call a project. Rather, it must point to the rails root. For a suggestion, you should introduce the notion of included and excluded directories as well as setting where the sources and tests are. I know that Rails has a baked structure but for usual projects, there are directories with assets that are above the root which it is helpful if Ruby is aware of.
As I said, I have been using IntelliJ since 3.0 and am currently using 8.0 - I decided to forego the plugin in favor of the full app although I am looking at some point to start using JRuby. Still, in IntelliJ, the project configuration is very flexible. For version 1.0 of RM - great job...
Bryan
Bryan,
In RubyMine we try to simplify IDEA's notion of projects. E.g. RubyMine doesn't support project with several modules - there is no sense in such complicated configuration in Ruby world. Also notion of module is hidden in RubyMine - just "project".
See Settings | Project Structure. Here you can configure excluded and tests sources. Also you can setup several content roots, but Rails application should be in first content root.
RubyMine wont support jruby and java<->ruby integration.