Issues with Rails 3 and RubyMine 2.5 EAP

Hi,

I'm trying out the EAP, which supposively is compatible with Rails 3 beta, I believe.  I should point out that I don't have a license yet, having just found RubyMine a few weeks ago.  I was really enjoying it with Rails 2.3.5, but then decided for various reasons to give Rails 3 beta a try.

I'm having all kinds of trouble getting anything to run when using the rails --pre gem...

1. I can't run generators from RM ("Rails gem isn't activated", although it clearly is)
2. I can't run the server from RM ("Ruby script doesn't exist")
3. Gem manager is totally unaware of Bundler and bundling -> I see this is fixed already - I hope the new EAP comes out soon

I'm basically restricted to using RM as a code editor, and running everything the old fashioned way from the prompt.  (I'm on Win7 x64)

Thanks in advance for any help.

15 comments

Hello Paul,

Did you try to move existing Rails project to rails 3.0?

1. I can't run generators from RM ("Rails gem isn't activated", although it clearly is)

See RubyMine | File | Settings | Ruby SDK and Gems, "Gems" list


2. I can't run the server from RM ("Ruby script doesn't exist")


If you opened existing project it has old(saved early) run configurations for 2.x format. Probably RM should be smarter in such case. Please submit an issue at http://youtrack.jetbrains.net/issues/RUBY
0

Hi Roman, thanks for the response.

I didn't try and move/upgrade the project actually, I was just trying to create a new one.

I spent a lot of time in the gem manager (RubyMine | File | Settings | Ruby SDK and Gems, "Gems" list) - rails is clearly listed as being there, but still gives the "activated" message for some reason.

Where are the run configurations stored? perhaps I can hack them to prevent the "Ruby script doesn't exist" problem.

Thanks!

0

Paul,

could you please specify some additional environment info:
- which rails3 version are you using?
- which version of bundler are you using?

Also, please provide output of Tools | Show Gem Environment and "gem list" from command line

0

Hi Dennis.

Rails: 3.0.0.beta3
Bundler: 0.9.25

Gem environment:

RubyGems Environment:
RUBYGEMS VERSION: 1.3.6
RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]
INSTALLATION DIRECTORY: C:/dev/Ruby18/lib/ruby/gems/1.8
RUBY EXECUTABLE: C:/dev/Ruby18/bin/ruby.exe
EXECUTABLE DIRECTORY: C:/dev/Ruby18/bin
RUBYGEMS PLATFORMS:
  ruby
  x86-mingw32
GEM PATHS:
   C:/dev/Ruby18/lib/ruby/gems/1.8
   C:/Users/Paul/.gem/ruby/1.8
GEM CONFIGURATION:
   :update_sources => true
   :verbose => true
   :benchmark => false
   :backtrace => false
   :bulk_threshold => 1000
REMOTE SOURCES:
   http://rubygems.org/
----------------------
RubyMine SDK Environment:
Sdk: Ruby SDK 1.8.7 (C:\dev\Ruby18\bin\ruby.exe)
Sdk Version: ver.1.8.7
Ruby Interpreter: C:/dev/Ruby18/bin/ruby.exe
RVM Sdk: no
Sdk Language Level: 1.8
Sdk Load Path:
     C:/dev/ruby18/lib/ruby/site_ruby/1.8
     C:/dev/ruby18/lib/ruby/site_ruby/1.8/i386-msvcrt
     C:/dev/ruby18/lib/ruby/site_ruby
     C:/dev/ruby18/lib/ruby/vendor_ruby/1.8
     C:/dev/ruby18/lib/ruby/vendor_ruby/1.8/i386-msvcrt
     C:/dev/ruby18/lib/ruby/vendor_ruby
     C:/dev/ruby18/lib/ruby/1.8
     C:/dev/ruby18/lib/ruby/1.8/i386-mingw32
     C:/dev/RubyMine RM-96.172/rubystubs18
Sdk Gem paths:
     file://C:/Users/Paul/.gem/ruby/1.8/gems
     file://C:/dev/Ruby18/lib/ruby/gems/1.8/gems
     file://C:/Users/Paul/.bundle/ruby/1.8/bundler/gems



Gem list:

abstract (1.0.0)
actionmailer (3.0.0.beta3)
actionpack (3.0.0.beta3)
activemodel (3.0.0.beta3)
activerecord (3.0.0.beta3)
activeresource (3.0.0.beta3)
activesupport (3.0.0.beta3)
addressable (2.1.2)
arel (0.3.3)
builder (2.1.2)
bundler (0.9.25)
dm-core (0.10.3)
erubis (2.6.5)
extlib (0.9.14)
gemcutter (0.5.0)
git (1.2.5)
hoe (2.6.0)
i18n (0.4.0.beta1, 0.3.7)
jeweler (1.4.0)
json_pure (1.4.3)
mail (2.2.0)
memcache-client (1.8.3)
mime-types (1.16)
polyglot (0.3.1)
rack (1.1.0)
rack-mount (0.6.3)
rack-test (0.5.3)
rails (3.0.0.beta3)
railties (3.0.0.beta3)
rake (0.8.7)
rubyforge (2.0.4)
text-format (1.0.0)
text-hyphen (1.0.0)
thor (0.13.6)
treetop (1.4.5)
tzinfo (0.3.20)

0

Ruby script doesn't exist Rails 3

Hello,

While searching for a solution to my current problem I found this discusion.
Additionally I would like to add my configuration as I'm dealing wird a similar problem ("Error running Development: groupify: Ruby script doesn''t exist") when trying to start the development server with RM.

RubyGems Environment:
RUBYGEMS VERSION: 1.3.7
RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]
INSTALLATION DIRECTORY: C:/Ruby/lib/ruby/gems/1.8
RUBY EXECUTABLE: C:/Ruby/bin/ruby.exe
EXECUTABLE DIRECTORY: C:/Ruby/bin
RUBYGEMS PLATFORMS:
  ruby
  x86-mingw32
GEM PATHS:
   C:/Ruby/lib/ruby/gems/1.8
   C:/Users/Marc Bungart/.gem/ruby/1.8
GEM CONFIGURATION:
   :update_sources => true
   :verbose => true
   :benchmark => false
   :backtrace => false
   :bulk_threshold => 1000
REMOTE SOURCES:
   http://rubygems.org/
----------------------
RubyMine SDK Environment:
Sdk: Ruby SDK 1.8.7 (C:\Ruby\bin\ruby.exe)
Sdk Version: ver.1.8.7
Ruby Interpreter: C:/Ruby/bin/ruby.exe
RVM Sdk: no
Sdk Language Level: 1.8
Sdk Load Path:
     C:/Ruby/lib/ruby/site_ruby/1.8
     C:/Ruby/lib/ruby/site_ruby/1.8/i386-msvcrt
     C:/Ruby/lib/ruby/site_ruby
     C:/Ruby/lib/ruby/vendor_ruby/1.8
     C:/Ruby/lib/ruby/vendor_ruby/1.8/i386-msvcrt
     C:/Ruby/lib/ruby/vendor_ruby
     C:/Ruby/lib/ruby/1.8
     C:/Ruby/lib/ruby/1.8/i386-mingw32
     C:/Program Files/JetBrains/RubyMine 2.0.2/rubystubs18
Sdk Gem paths:
     file://C:/Ruby/lib/ruby/gems/1.8/gems
     file://C:/Users/Marc Bungart/.gem/ruby/1.8/gems

I would be glad if anyone can help. Thanks a lot

Kind regards
Marc

0

Hey,

I'm using this post to avoid flooding the forum with EAP's errors.

First of all i can't run the settings window. I've got a lot of a errors displayed on my term when i try to do that.

Here they are :

http://www.chugulu.com/rubymine/file-settings-error.txt


Is this helping ?

PS: I'm running Linux Kubuntu 10.04 x64 with the EAP 96.172 and Rails3 Beta 3
0

Does this still happen after complete RubyMine reinstall?

0

Ok. I made some tests.

The settings are working fine if I reinstall and don't import my settings from the 2.0.2 version.
But it's not working if i choose the setting importation option at the first launch.

It's seems like my settings are corrupted !
This is weird ... Can the settings been corrupted by the Rubymine 2.0.2 upgrade ?

PS: Of course, I haven't manually modified the files into ~/.Rubymine20

0

Please create an issue at http://youtrack.jetbrains.net/issues/RUBY describing this behavour with your settings attached. This will help us to reproduce it.

Best regards,
Oleg

0

Still happening - hope the new version is coming out soon, would dearly love to have RM working again so I can pay you guys for the great IDE   I've tried completely uninstalling all copies of RM and manually deleting the .RubyMine25 under ~, and then not importing settings, but no luck.

RubyGems Environment:
RUBYGEMS VERSION: 1.3.7
RUBY VERSION: 1.9.1 (2010-01-10 patchlevel 378) [i386-mingw32]
INSTALLATION DIRECTORY: C:/dev/Ruby19/lib/ruby/gems/1.9.1
RUBY EXECUTABLE: C:/dev/Ruby19/bin/ruby.exe
EXECUTABLE DIRECTORY: C:/dev/Ruby19/bin
RUBYGEMS PLATFORMS:
  ruby
  x86-mingw32
GEM PATHS:
   C:/dev/Ruby19/lib/ruby/gems/1.9.1
   C:/Users/Paul/.gem/ruby/1.9.1
GEM CONFIGURATION:
   :update_sources => true
   :verbose => true
   :benchmark => false
   :backtrace => false
   :bulk_threshold => 1000
REMOTE SOURCES:
   http://rubygems.org/
----------------------
RubyMine SDK Environment:
Sdk: Ruby SDK 1.9.1 (C:\dev\Ruby19\bin\ruby.exe)
Sdk Version: ver.1.9.1p378 ( revision 26273)
Ruby Interpreter: C:/dev/Ruby19/bin/ruby.exe
RVM Sdk: no
Sdk Language Level: 1.9
Sdk Load Path:
     C:/dev/Ruby19/lib/ruby/site_ruby/1.9.1
     C:/dev/Ruby19/lib/ruby/site_ruby/1.9.1/i386-msvcrt
     C:/dev/Ruby19/lib/ruby/site_ruby
     C:/dev/Ruby19/lib/ruby/vendor_ruby/1.9.1
     C:/dev/Ruby19/lib/ruby/vendor_ruby/1.9.1/i386-msvcrt
     C:/dev/Ruby19/lib/ruby/vendor_ruby
     C:/dev/Ruby19/lib/ruby/1.9.1
     C:/dev/Ruby19/lib/ruby/1.9.1/i386-mingw32
     C:/dev/rubymine_preview/rubystubs19
Sdk Gem paths:
     file://C:/dev/Ruby19/lib/ruby/gems/1.9.1/gems
     file://C:/Users/Paul/.gem/ruby/1.9.1/gems
     file://C:/Users/Paul/.bundle/ruby/1.9/bundler/gems

0

It seems, I've found some problems in rails server script detection and fixed them. But, still I haven't reproduced it exactly your way. So, if you can, could you please provide step-by-step description on how you are creating project, so I can verify that issue is solved or not.

0

Hi Dennis,

I haven't done anything special - I have an existing project that I'm opening using the Open Directory command on startup.

My last attempt to get RM working was:

1. Uninstall RM
2. Delete ~/.RubyMine25
3. Delete project/.idea
4. Reinstall RM
5. On startup, choose not to import any settings
6. Open project directory
7. Wait for indexing to finish, then press green 'play' button to launch development server

If you've already fixed it on your end, it's probably fixed for my case, I guess I just have to wait for a new EAP or the 2.5 release.

0

Next EAP build will be available soon, please reply if ther problem is gone or still there, when it will be available

0

Hi Dennis,

Everything seems to be working now with preview .314, although RM still doesn't seem to know about gems that are included through bundler.  I had to gem install dm-core (DataMapper) and add it to the project before it would run anything.

0

The problem with bundler is fixed and next EAP build will be available later today

0

Please sign in to leave a comment.