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

0

Hello Charles,

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"


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!"


0
Avatar
Permanently deleted user

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:

Hello Charles,

>> 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"


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.

0

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

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?


RM just autodetects folders which contains ".idea" folder, e.g. "RubyMine"/"IDEA" directory based projects

0
Avatar
Permanently deleted user

Roman.Chernyatchik wrote:

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


see attached


2. Settings dialog with Rails server run configuration parameters that was automatically generated by RubyMine (e.g. "development: your_project_name")


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.

3. Also screenshot of RubyMine's GemManager tab


see attached.

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?
>
>

RM just autodetects folders which contains ".idea" folder, e.g. "RubyMine"/"IDEA" directory based projects

---
Original message URL: http://www.jetbrains.net/devnet/message/5236955#5236955


0

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

0
Avatar
Permanently deleted user

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:

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 i
f 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

---
Original message URL: http://www.jetbrains.net/devnet/message/5237051#5237051

0
Avatar
Permanently deleted user

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:

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 i
f 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

---
Original message URL: http://www.jetbrains.net/devnet/message/5237051#5237051

0
Avatar
Permanently deleted user

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:

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 i
f 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

---
Original message URL: http://www.jetbrains.net/devnet/message/5237051#5237051

0

As you might have guessed, this project does not use activerecord.

Thanks, we've already fix rails application autodetection in such cases. Fix will be available in next RubyMine EAP build.

0

请先登录再写评论。