Assorted Bugs, Enhancements or simply Howtos (aka Newbie Ignorance)?

+ when typing within a comment (ie, after "#" ) opening a single quote produces another ... annoying when trying to type .. eg, # this foo's bar ... can this be configured so's to only produce the quote pair whilst in code rather than comments?

+ when typing a comment, hitting enter for a new line does not start with # ... but it does if we split an existing comment

+ in Java I can Alt+Up/Down to move cursor from method declaration to method declaraion .. I can seem to do something similar in Ruby .. but it's not taking me to the next method declaration

+ 'insert' (or overwrite) mode does not work in ruby

+ cannot run individual spec test that includes java .... import foo.bar.Baz ... (even when using jruby) .. get error message ... "undefined local variable or method `java' for main:Object (NameError)"

+ typing foo.each do |f| end ... actually comes out as foo.each do |f| end|| ... in java editor it is smart enough to know you have typed the ending } for example ... can I simply turn off the dynamic closing char for | ... or single qoutes? ... or double qoutes?

0
3 comments
Avatar
Permanently deleted user

Hello, Sam!

We appreciate any possible feedback. We have our bug tracker to create/discuss etc any issues you face with using Ruby plugin, feel free adding new feature requests that will be really usefull for you at http://www.jetbrains.net/jira/browse/RUBY. Also, there you can vote or subscribe to issue to track progress on it.

As for now, I`ve created some issues dedicated to your comments:

1. when typing within a comment (ie, after "#" ) opening a single quote produces another ... annoying when trying to type .. eg, # this foo's bar ... can this be configured so's to only produce the quote pair whilst in code rather than comments? - see http://www.jetbrains.net/jira/browse/RUBY-1685

2. when typing a comment, hitting enter for a new line does not start with # ... but it does if we split an existing comment -
It`s common IDEA behavour of handling newlines in comments. But maybe we can add option: force comment after newline

3. in Java I can Alt+Up/Down to move cursor from method declaration to method declaraion .. I can seem to do something similar in Ruby .. but it's not taking me to the next method declaration - see http://www.jetbrains.net/jira/browse/RUBY-1686

4. 'insert' (or overwrite) mode does not work in ruby - What do you mean? Just editor style or maybe override method? Could you please provide some example or something to explain more precisely?

5. cannot run individual spec test that includes java .... import foo.bar.Baz ... (even when using jruby) .. get error message ... "undefined local variable or method `java' for main:Object (NameError)" - Do you use "include Java"? We already have issue for : http://www.jetbrains.net/jira/browse/RUBY-1679

6. typing foo.each do |f| end ... actually comes out as foo.each do |f| end|| ... in java editor it is smart enough to know you have typed the ending } for example ... can I simply turn off the dynamic closing char for | ... or single qoutes? ... or double qoutes?
Ruby uses common IDEA preferences[Settings|Editor|Java tab| Smart Enter] to handle or not dynamic closing for quotes etc.
Could you please describe usecase more presicely with |?

And the last question: do you use Diana EAP or Selena?
---
Regards,
Oleg

0

Thanks Oleg, I'll definitly search through and post to your jira for this sort of thing in future.

I am current using Selena #7938 ... I did not think your plugin was available for Diana just yet?

Re 2.. Apologies, I was sure that this behaviour was found in Java.. but opening a Java project now with my current setup does not confirm this, so please ignore this for now.

Re 4.. I mean the actual "Insert" key on your keyboard which changes the editing mode from "Insert" to "Overwrite" ... it works in a java, text, xml or yml file, but not in Ruby.

Re 5.. Aplogies on this one.. I was looking at a test that is run outside of IntelliJ using http://jtestr.codehaus.org/ ... I'm sure I can configure intellij to invoke org.jtestr.ant.JtestRAntRunner for me.

Re 6.. Basically I'm requesting that | be treated in ruby in exactly the same manner that quotes and braces are in Java.
Namely, even though we have the "Insert Pair .." option enabled when we decide to type the closing char ourselves, the editor realizes it's a
duplicate and simply steps over it. As an example, type the following in Java with "Insert pair quote" enabled..
char c = 'c';
.. when you type the first quote, the second appears after the cursor but you can then type..
c';
and not end up with
char c = 'c';'
In ruby, when I literally type..
foo.each do |f| end
.. I literally end up with ..
foo.each do |f| end||
Unfortunately I cannot turn it off either... because there is no "Insert pair '|'" option to disable on the Editor preferences screen.


Many thanks, and keep up the good work! ... I am much prefering IDEA+Ruby over other options...
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/d3fd1d3bcef60973/7dc0ec5a1a98a0a5?lnk=raot

0
Avatar
Permanently deleted user

Hello Sam,

I did not think your plugin was available for Diana just yet?

No, there are no public plugins yet, but if you want we can give you our internal build plugin for Diana EAP. It`s pretty unstable and buggy yet, but it has debugger support and graphical test runner.

>Re 4.. I mean the actual "Insert" key on your keyboard which changes the editing mode from "Insert" to "Overwrite" ... it works in a java, text, xml or yml > file, but not in Ruby.
See: http://www.jetbrains.net/jira/browse/RUBY-1697.


>Re 6.. Basically I'm requesting that | be treated in ruby in exactly the same manner that quotes and braces are in Java....
See: http://www.jetbrains.net/jira/browse/RUBY-1698.
Sam, could you please add some comments to this issue like:
the code was , caret was after ]]>, i typed '|' character, expected behavour and real. This info will be very usefull to fix this bug.

Thanks,
Oleg

0

Please sign in to leave a comment.