Autocomplete fails with type mismatch and cast problem (RubyMine EAP 4.0)

I'm running the latest EAP of RubyMine 4 in OS X Lion and I'm having an awful time with autocomplete. In 3.2.4, I'm also seeing slow and incomplete results for autocomplete, but it is at least working.

Issues:
* No auto-complete auto popup at all.
* When I force auto-complete with the keyboard shortcut, sometimes it spins for a few seconds and gives me a list. The list doesn't seem complete (Mongoid models don't have .where, other strangeness as well).
* Other times forcing auto-complete results in IDE errors:


1:34:33 AM Throwable: Stub and PSI element type mismatch in csv.rb: stub org.jetbrains.plugins.ruby.ruby.lang.psi.stubs.impl.RInstanceVariableStubImpl@2c5addee, AST Ruby:Constant; Element(Ruby:Constant)
1:34:44 AM ClassCastException: org.jetbrains.plugins.ruby.ruby.lang.psi.impl.variables.RConstantImpl cannot be cast to org.jetbrains.plugins.ruby.ruby.lang.psi.holders.RContainer: org.jetbrains.plugins.ruby.ruby.lang.psi.impl.variables.RConstantImpl cannot be cast to org.jetbrains.plugins.ruby.ruby.lang.psi.holders.RContainer


I've already tried re-checking out my source (I don't check in the .idea and other project files, so that should have cleared local settings) and invalidating my cache from within RubyMine, all to no avail. I've also double checked my auto-complete settings against a friend's instance of RubyMine that is working, they are identical.

Does anyone have any ideas?

1 comment

Hello Bill,

I'm running the latest EAP of RubyMine 4 in OS X Lion and I'm having an awful time with autocomplete. In 3.2.4, I'm also seeing slow and incomplete results for autocomplete, but it is at least working.

Issues:
* No auto-complete auto popup at all.
* When I force auto-complete with the keyboard shortcut, sometimes it spins for a few seconds and gives me a list. The list doesn't seem complete (Mongoid models don't have .where, other strangeness as well).
* Other times forcing auto-complete results in IDE errors:


1:34:33 AM Throwable: Stub and PSI element type mismatch in csv.rb: stub org.jetbrains.plugins.ruby.ruby.lang.psi.stubs.impl.RInstanceVariableStubImpl@2c5addee, AST Ruby:Constant; Element(Ruby:Constant)
1:34:44 AM ClassCastException: org.jetbrains.plugins.ruby.ruby.lang.psi.impl.variables.RConstantImpl cannot be cast to org.jetbrains.plugins.ruby.ruby.lang.psi.holders.RContainer: org.jetbrains.plugins.ruby.ruby.lang.psi.impl.variables.RConstantImpl cannot be cast to org.jetbrains.plugins.ruby.ruby.lang.psi.holders.RContainer


I've already tried re-checking out my source (I don't check in the .idea and other project files, so that should have cleared local settings) and invalidating my cache from within RubyMine, all to no avail. I've also double checked my auto-complete settings against a friend's instance of RubyMine that is working, they are identical.

Does anyone have any ideas?

All the problems described seem to be consequences of this particular exceptions. At the moment we are working on eleminating the problem.

Regards,
Oleg

0

Please sign in to leave a comment.