Showstopper... so back to Eclipse for me
I can't understand why this has started to happen but IntelliJ is now freezing when I get to a particular location in ruby code .. normally just after the dot when writing (for example)..
foo = Foo.new
foo.
Which sounds a lot like a problem with the autocomplete lookups for method names (which I then turned off).
No matter what I do.. IDEA freezes .. and does not return ... I can see my CPUs spinning via the system monitor of Ubuntu.
I cannot get around this.. every time I kill the process and restart IDEA .. It still trips up at the same spot.
The only stack trace I'm seeing has something like...
java.io.EOFException: input contained no data
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2983)
at org.xmlpull.mxp1.MXParser.more(MXParser.java:3026)
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
I tried upgrading IDEA to 7952 with org.jetbrains.plugins.ruby_5751 but I still have the same issue.
Can anyone offer any suggestsions? ... even just how to have IDEA spew out more meaningful debug.
In the mean time... I'm off back to Eclipse and RadRails... bummer.
Please sign in to leave a comment.
Hello Sam,
>I can't understand why this has started to happen but IntelliJ is now freezing when I get to a particular location in ruby code .. normally just after the dot >when writing (for example)..
>foo = Foo.new
>foo.
It seems like you face with some type inference problem. We fixed one critical bug several days ago.
Please try the last plugin version available in plugin repository #1.5.18930 with IDEA 7.0.4 (#7941).
Maybe this will fix your problem. If it doesn`t help, please let us know!
Regards,
Oleg
No cigar.
I have tried that plugin with intellij versions... 7938, 7941 and 7952.
Is there a ruby plugin I can try with diana 8733 ??
Hello Sam,
No, a Diana version of the Ruby plugin isn't released yet.
You can take a thread dump as described in http://support.jetbrains.com/kb/entry!default.jspa?categoryID=4&externalID=260&fromSearchPage=true
to see where the hang happens.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks Dmitry, thread dump follows...
Hello Sam,
Thanks for the thread dump! I've filed a JIRA issue:
http://www.jetbrains.net/jira/browse/RUBY-1811
Is there a chance to get the source file on which this problem occurs?
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
It happens on ALL ruby files in my project, whenever I put my cursor at the 'dot' as described in my original post.
Just for the record, I've now chosen NetBeans instead of Eclipse as my "interim" editor. I have to say that it's Ruby support is quite good... it's just not as good as an all round editor.
I'm using NetBeans for Ruby and IntelliJ for SVN
It's back.... and unfortunately I cannot explain why. Whatever it had it's knickers in a twist about has left the building.
So... I've moved back to IDEA from NetBeans (for now)... and I'm actually missing a couple of features of NetBeans!... so you may want to consider them for your Ruby plugin...
Code highlighting.. they bold method names, underline unused declared local variables, colourize method params.
Compare the following in the two editors...
In NetBeans it's really easy to see that bar and baz never get used... which can help you pickup on typos.
NetBeans also highlights the var where the cursor is ... which is pretty much an "always on" version of IDEA's "Highlight Usages In File".
NetBeans also has popup doco which is very handy.
>In NetBeans it's really easy to see that bar and baz never get used.
Unused local variable/parameter inspection is in out JIRA issues for 2.0
>NetBeans also has popup doco which is very handy
May be you are talking about Ctrl+Q in IDEA? Ruby plugin supports it. Also you can enable autopopup doc for items in autocompletion list. (see Settings|Code Completion|Autopopup javadoc in (ms))
>they bold method names, colourize method params
You can change code highlighting settings in Settings|Colors&Fonts|Ruby. It isn't difficult for us to extend our code highlighting but nobody asked us for it. Also initially we didn't want to overweight ruby code with a lot of highlighting.
That's great, thanks Roman.
I suppose someone has already requested that the popup doco window be resizable? :) (It's not resizable in NetBeans either)
I can live without the always on 'highlight usages in file' I guess.
Looking forward to the local var inspection.
Hello Sam,
It is actually resizable in IDEA.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"