Can't run server on project from existing sources
Hi there,
Congrats on the 1.0 release. I Just downloaded it, and created a new
project over an existing rails application (ruby 1.8.7)
I can't run it, and I can't manually create a valid run configuration
because it complains that "Run Configuration Error: Ruby script not
specified"
I noticed also, that it did not find the frozen gems in vendor/rails,
but I don't know if these are related.
cheers,
Charles
Updated by Roman.Chernyatchik: "newbie", "ide_configuring" tags added
Please sign in to leave a comment.
Hello Charles,
Please make sure that you select the root directory of your Rails app in
"Open directory", not some other dir (above or below the root). Also, if
the project was previously opened with an older version of RubyMine, it can
help to delete the .idea directory under the root and reopen the directory.
If RubyMine detects your Rails app correctly, it will create Production and
Development run configurations automatically.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hey! I never knew you could do that. That's very handy indeed. I guess
I'm so used to using IntelliJ at this point, that I always go through
the new project wizard. That's much more convenient. I'll have to check
for that feature in IDEA.
Anyway, I closed rubymine, deleted the .idea/ directory, restarted and used
File > Open Directory
but it still did not create the run configurations for me. Is there a
way to give it a hint that this is a rails project, or some file I have
that's missing which would trigger it to recognize the rails?
When I'm browsing for the directory with Open Directory, it does mark
the directory with the rubymine icon, so it recognizes something
rubylike in there, just maybe not rails?
cheers,
Charles
Dmitry Jemerov wrote:
>> Congrats on the 1.0 release. I Just downloaded it, and created a new
>> project over an existing rails application (ruby 1.8.7)
>>
>> I can't run it, and I can't manually create a valid run configuration
>> because it complains that "Run Configuration Error: Ruby script not
>> specified"
Hello Charles,
Is it possible to see several screenshots of your project in RubyMine? May be it will allow us to help you faster. E.g.
1. Project view window with expanded root node - just to check that correct folder is project's root folder
2. Settings dialog with Rails server run configuration parameters that was automatically generated by RubyMine (e.g. "development: your_project_name")
3. Also screenshot of RubyMine's GemManager tab
RM just autodetects folders which contains ".idea" folder, e.g. "RubyMine"/"IDEA" directory based projects
Roman.Chernyatchik wrote:
see attached
There are no run configurations configured by default, so I have a
screenshot of the original, and what happens when I try to add one manually.
see attached.
Thank you for screenshots. I suppose that RM wasn't able to detect that your application uses Rails framework. RM checks that application contains "app", "db", "config/boot.rb" files. As I see on the screenshot "db" folder is missed. It seems we should remove "db" folder check. So all should work if you
1. Close RM
2. delete /home/cowboyd/Projects/SummonR/.idea folder
3. add /home/cowboyd/Projects/SummonR/db folder
4. open SummonR in RM
5. and than delete "db" folder
Roman,
Thanks for the workaround. When I did this, it did create the correct
run configurations for my environments as it should have.
As you might have guessed, this project does not use activerecord.
Roman.Chernyatchik wrote:
Roman,
Thanks for the workaround. When I did this, it did create the correct
run configurations for my environments as it should have.
As you might have guessed, this project does not use activerecord.
Roman.Chernyatchik wrote:
Roman,
Thanks for the workaround. When I did this, it did create the correct
run configurations for my environments as it should have.
As you might have guessed, this project does not use activerecord.
Roman.Chernyatchik wrote:
Thanks, we've already fix rails application autodetection in such cases. Fix will be available in next RubyMine EAP build.