Rails Console does not reload

Hi,

I've trying RubyMine for a few days and I can't get the console working properly. Everytime I make any change, for example adding a new validator, I have to open a new console since reload doesn't seem to work. I do know that rails doesn't re-initialize the objects that already exist so that's not the problem. I'm not sure if it's a bug, some misconfiguration or just me being stupid but it's quite annoying start a new console everytime.

BR

7 comments
Comment actions Permalink

Hi,

the problem you describe does look like a bug for me, but before making the final decision some questions to complete the picture:

  • what version of RM do you use?
  • "reload doesn't work" means that you do press "reload" button in Rails Console and it doesn't work? (btw what is the output of the console in this case?)
  • does your project is Rails project? (I'm almost sure it is, but it is better to ask explicitly ;)
  • what version or Rails and Ruby do you use?
  • what OS do you use?


Thanks in advance, Oleg.

0
Comment actions Permalink

Thanks for the quick reply:

  • what version of RM do you use?

     4.0.3

  • "reload doesn't work" means that you do press "reload" button in Rails Console and it doesn't work? (btw what is the output of the console in this case?)

     It means that aparently works but doesn't seem to have any effect. The output is the expected

     >> reload!
     Reloading...
     true
     After this I expected to have all my new code available but is not. As I said adding any new validation or a simple "puts" inside a method doesn't work until I open a new console.

  • does your project is Rails project? (I'm almost sure it is, but it is better to ask explicitly ;)

     It is, yes.

  • what version or Rails and Ruby do you use?

     ruby 1.9.3 and rails 3.2.3

  • what OS do you use?

     OSX 10.7.4 (Lion)

0
Comment actions Permalink

Anything special about file system you use to store the project? (symlinks, compression, etc...)

Thanks, Oleg.

0
Comment actions Permalink

not really, just the regular stuff.

0
Comment actions Permalink

Could you, please, check if the problem is reproducible with the latest 4.5 EAP build.

Thanks in advance, Oleg.

0
Comment actions Permalink

Hi,

what rails environment (development, test, production) do you use to run rails console?
I've just tried with test envirnoment and reload! doesn't work, but it doesn't work even when I run console in command line, so, most likely,
this is the way reload! should work.
In development everything works fine for me.

Hope this helps, Oleg.

0
Comment actions Permalink

You are completely right! I was using test environment and as you said it only works in development even in command line. Thanks a lot!

BR

0

Please sign in to leave a comment.