[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] Ruby Editor Plugin for jEdit 0.6 - method completion release

Rob .

5/5/2005 2:05:00 AM

Version 0.6 of jEdit's Ruby Editor Plugin has been released and is
available for download!

For details and downloads go to:

http://www.jedit...

0.6 introduces two major new features that will make you more
productive when you write Ruby code, particularly if you are new to Ruby:

- Method completion for the Ruby core types via a popup that appears
when you type '.' after a variable name. This feature uses the methods
you have already called on a variable to guess it's type, and the
popup is populated accordingly.

- An integrated Ruby documentation viewer (that's modelled after
FreeRide's documentation plugin). While selecting a method via the
completion popup you can see the corresponding method documentation on
the docked documentation viewer.

Have fun! As always, feedback and suggestions are welcome.

Special thanks to all the free software programmers whose work is
being leveraged to create the plugin, particularly those in the JRuby
team for their excellent Ruby parser, and Slava Pestov for jEdit
itself.

The Ruby Editor Plugin and jEdit are released as free software with
full source code, provided under the terms of the GNU General Public
License.

Cheers,
Rob



20 Answers

Alexandru Popescu

5/5/2005 7:16:00 AM

0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

#: Rob . said :: 5/5/2005 4:04 AM :#
> Version 0.6 of jEdit's Ruby Editor Plugin has been released and is
> available for download!
>
> For details and downloads go to:
>
> http://www.jedit...
>
> 0.6 introduces two major new features that will make you more
> productive when you write Ruby code, particularly if you are new to Ruby:
>
> - Method completion for the Ruby core types via a popup that appears
> when you type '.' after a variable name. This feature uses the methods
> you have already called on a variable to guess it's type, and the
> popup is populated accordingly.
>
> - An integrated Ruby documentation viewer (that's modelled after
> FreeRide's documentation plugin). While selecting a method via the
> completion popup you can see the corresponding method documentation on
> the docked documentation viewer.
>
> Have fun! As always, feedback and suggestions are welcome.
>
> Special thanks to all the free software programmers whose work is
> being leveraged to create the plugin, particularly those in the JRuby
> team for their excellent Ruby parser, and Slava Pestov for jEdit
> itself.
>
> The Ruby Editor Plugin and jEdit are released as free software with
> full source code, provided under the terms of the GNU General Public
> License.
>
> Cheers,
> Rob
>
>

Great job Rob!

Is there a ml for the plugin?

:alex |.::the_mindstorm::.|
- --
<<<<<<<<<<<<<<<<<<<--->>>>>>>>>>>>>>>>>>>
#:there are no problems, only solutions:#
<<<<<<<<<<<<<<<<<<<--->>>>>>>>>>>>>>>>>>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail....

iD8DBQFCedW2OCPjdDT2FEURArlkAJ4stX6aeQH+j+lblSSatofhY83qZQCgvQpI
Fcd12hkvpEU/LrVAa1HMTp0=
=v4eT
-----END PGP SIGNATURE-----


Rob .

5/5/2005 9:38:00 AM

0

Alexandru Popescu wrote:> Rob . said:> > Version 0.6 of jEdit's Ruby Editor Plugin has been released and is> > available for download!> >> > http://www.jedit.org... > Great job Rob!Mul?umesc!
> Is there a ml for the plugin?There's no mailing list yet. Feedback via ruby-talk or direct to me isok for now. If it gets high volume I'll start a ml.
Rob

Tom Copeland

5/5/2005 1:13:00 PM

0

On Thu, 2005-05-05 at 18:38 +0900, Rob . wrote:
> Alexandru Popescu wrote:
> > Rob . said:
> > > Version 0.6 of jEdit's Ruby Editor Plugin has been released and is
> > > available for download!
> > >
> > > http://www.jedit...
> >
> > Great job Rob!
> Mul?umesc!

Da, foarte buna!

Tom




Alexandru Popescu

5/5/2005 2:17:00 PM

0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

#: Tom Copeland said :: 5/5/2005 3:12 PM :#
> On Thu, 2005-05-05 at 18:38 +0900, Rob . wrote:
>> Alexandru Popescu wrote:
>> > Rob . said:
>> > > Version 0.6 of jEdit's Ruby Editor Plugin has been released and is
>> > > available for download!
>> > >
>> > > http://www.jedit...
>> >
>> > Great job Rob!
>> Mul?umesc!
>
> Da, foarte buna!
>
> Tom
>
>
>
>

Another romanian speaking ruby-guy?

To Rob:
"a_string_here". => produces an exception


:alex |.::the_mindstorm::.|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail....

iD8DBQFCejh0OCPjdDT2FEURAvQNAJ0S8vpQ/KJSOFhCA3iCMGRj+j9vaQCgkRwZ
4g1aR/gFrN1p+ycX9TN1Mgo=
=/vT2
-----END PGP SIGNATURE-----


Tom Copeland

5/5/2005 2:30:00 PM

0

On Thu, 2005-05-05 at 23:17 +0900, Alexandru Popescu wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> #: Tom Copeland said :: 5/5/2005 3:12 PM :#
> > On Thu, 2005-05-05 at 18:38 +0900, Rob . wrote:
> >> Alexandru Popescu wrote:
> >> > Rob . said:
> >> > > Version 0.6 of jEdit's Ruby Editor Plugin has been released and is
> >> > > available for download!
> >> > >
> >> > > http://www.jedit...
> >> >
> >> > Great job Rob!
> >> Mul?umesc!
> >
> > Da, foarte buna!
> >
> > Tom
> >
> >
> >
> >
>
> Another romanian speaking ruby-guy?

Da, putsin.

Tom




Rob .

5/5/2005 2:35:00 PM

0

Alex, I don't get an exception in this case, but I see what you mean.
The plugin can easily determine the type of the following and provide
the appropriate method popup list. It should be an easy fix. Are there
any others I'm missing apart from these:

irb> {}.class
=> Hash

irb> "".class
=> String

irb> ''.class
=> String

irb> [].class
=> Array

Rob

Alexandru Popescu wrote:
> >> > Rob . said:
> >> > > Version 0.6 of jEdit's Ruby Editor Plugin has been released and is
> >> > > available for download!
> >> > >
> >> > > http://www.jedit...
> >> >
> To Rob:
> "a_string_here". => produces an exception



Belorion

5/5/2005 2:41:00 PM

0

I am also getting an exception ...

jEdit 4.3pre2, WinXP

a = []
a << 1
a.(error now[1])

So far, I *alwas* get this error no matter what I am attempting to complete.

Matt

1. >> Error Msg <<
Error in method invocation: Static method completeMethod(
org.gjt.sp.jedit.View ) not found in class'org.jedit.ruby.RubyActions'
: at Line: 4 : in file: inline evaluation of:
``__internal_action_ruby_complete_method(ns) {
this.callstack.set(0,ns); org.j . . . '' : org .jedit .ruby
RubyActions .completeMethod ( view )

at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:76)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:349)
at bsh.BshMethod.invoke(BshMethod.java:246)
at bsh.BshMethod.invoke(BshMethod.java:171)
at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:507)
at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:195)
at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(DefaultInputHandler.java:356)
at org.gjt.sp.jedit.View.processKeyEvent(View.java:678)
at org.gjt.sp.jedit.textarea.JEditTextArea.processKeyEvent(JEditTextArea.java:4748)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)



Brian Schröder

5/5/2005 2:41:00 PM

0

On 05/05/05, Rob . <rob.02004@gmail.com> wrote:
> Alex, I don't get an exception in this case, but I see what you mean.
> The plugin can easily determine the type of the following and provide
> the appropriate method popup list. It should be an easy fix. Are there
> any others I'm missing apart from these:
>
> irb> {}.class
> => Hash
>
> irb> "".class
> => String
>
> irb> ''.class
> => String
>
> irb> [].class
> => Array
>

irb(main):001:0> %().class
=> String
irb(main):002:0> %//.class
=> String
irb(main):003:0> %{}.class
=> String
irb(main):004:0> %|and many more|.class
=> String
irb(main):005:0> %r().class
=> Regexp
irb(main):006:0> %r|and many more|.class
=> Regexp

and the whole % family ;)

regards,

Brian


--
http://ruby.brian-sch...

multilingual _non rails_ ruby based vocabulary trainer:
http://www.vocabu... | http://www.g... | http://www.vok...



Alexandru Popescu

5/5/2005 2:45:00 PM

0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a strange idea - not sure if it worth anything :-S.
It is something like "fuzzy/hippie autocompletion proposal":

1/ if i can determine the type of the variable than the autocompletion proposal should be strict (it
should contain only its methods)

2/ if i cannot determine the type of the variable i always display the super Object methods and than
by scanning backword and foreword propose a set of fuzzy/hippie autocompletion

makes any sense?

:alex |.::the_mindstorm::.|
- --
<<<<<<<<<<<<<<<<<<<--->>>>>>>>>>>>>>>>>>>
#:there are no problems, only solutions:#
<<<<<<<<<<<<<<<<<<<--->>>>>>>>>>>>>>>>>>>

#: Rob . said :: 5/5/2005 4:35 PM :#
> Alex, I don't get an exception in this case, but I see what you mean.
> The plugin can easily determine the type of the following and provide
> the appropriate method popup list. It should be an easy fix. Are there
> any others I'm missing apart from these:
>
> irb> {}.class
> => Hash
>
> irb> "".class
> => String
>
> irb> ''.class
> => String
>
> irb> [].class
> => Array
>
> Rob
>
> Alexandru Popescu wrote:
>> >> > Rob . said:
>> >> > > Version 0.6 of jEdit's Ruby Editor Plugin has been released and is
>> >> > > available for download!
>> >> > >
>> >> > > http://www.jedit...
>> >> >
>> To Rob:
>> "a_string_here". => produces an exception
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail....

iD8DBQFCej7yOCPjdDT2FEURAh/kAJ47r6JzhoTWLIt3DX57gE46CYx8/QCglql0
AvCAUW1jLoMPq+feUhPVxQM=
=4zAv
-----END PGP SIGNATURE-----


Jaypee

5/5/2005 3:07:00 PM

0

Belorion a écrit :
> I am also getting an exception ...
>
> jEdit 4.3pre2, WinXP
>
> a = []
> a << 1
> a.(error now[1])
>
> So far, I *alwas* get this error no matter what I am attempting to complete.
>
> Matt
>
> 1. >> Error Msg <<
> Error in method invocation: Static method completeMethod(
> org.gjt.sp.jedit.View ) not found in class'org.jedit.ruby.RubyActions'
> : at Line: 4 : in file: inline evaluation of:
> ``__internal_action_ruby_complete_method(ns) {
> this.callstack.set(0,ns); org.j . . . '' : org .jedit .ruby
> RubyActions .completeMethod ( view )
>
> at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:76)
> at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
> at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
> at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
> at bsh.BSHBlock.eval(BSHBlock.java:80)
> at bsh.BshMethod.invokeImpl(BshMethod.java:349)
> at bsh.BshMethod.invoke(BshMethod.java:246)
> at bsh.BshMethod.invoke(BshMethod.java:171)
> at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:507)
> at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)
> at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)
> at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:195)
> at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(DefaultInputHandler.java:356)
> at org.gjt.sp.jedit.View.processKeyEvent(View.java:678)
> at org.gjt.sp.jedit.textarea.JEditTextArea.processKeyEvent(JEditTextArea.java:4748)
> at java.awt.Component.processEvent(Unknown Source)
> at java.awt.Container.processEvent(Unknown Source)
> at java.awt.Component.dispatchEventImpl(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
> at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
> at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
> at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
> at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
> at java.awt.Component.dispatchEventImpl(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Window.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
>
>
>
Me too, same exception on Mac OS X 10.4 (Tiger release)
J-P