Ruby in Idea - Confusing?
Okay .. I must be missing something
The reason I bought IDEA was because it can do my Java, my PHP and my Ruby..
Now I've never had ALOT of problems with rails applications, but I have had my share of problems.. and I've been able to get around 'em..
Here's the question.. when I'm doing a base ruby file.. no rails application.. I go to File > New Ruby Class
I get one of two errors
Error: Index: 0, Size: 0
or
Error: Classname should be a ruby constant
Now the second error doesn't do anything
the first error.. however creates a blank file, which I would suspect should have created the base ruby structure with the class def..
I guess.. what's going on here.. I would have suspected that this would be a little more polished for the amount of money that gets charged for the application..
Any help would be appreciated.
请先登录再写评论。
Okay.. one of the errors was me being thick.. as I do cross language development I forgot that Classnames in ruby must start with an uppercase letter.. but still the index:0 error I am still getting is odd and confusing ..
Hello David,
File | Invalidate Caches should help against that one.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Yeah that didn't help :)
Not sure what the error means.. and I'm not exactly sure how to fix it.. if you want.. I can email support to put in a "actual" ticket..
Hi David,
I had that issue too - it looks like there is a pretty easy fix/workaround:
http://youtrack.jetbrains.net/issue/RUBY-7504?query=New+Ruby+class
Note that I subsequently removed all text from that Ruby File Header and it continues to work properly - perhaps some reference file just needed to created or something? Not sure....
Hopefully it's something that is addressed in either a newer Ruby plugin version or in IDEA itself (I suspect it's a Ruby plugin issue though).
I'm running:
IntelliJ 10.0.1
IU-99.32
Ruby Plugin 3.1.17317