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

R

Rob .

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

For details and downloads go to:

http://www.jedit.org/ruby/

Type identification for the method completion popup has been improved
based on the feedback I received today. I was surprised at how quickly
I was able to add some irb style type identification. Our new method
completion technique is unstoppable! ;-)

The 0.6.1 release removes the unnecessary "complete method" action
hook that was causing people problems in 0.6. The completion popup
should appear automatically when you type a '.' after a variable, no
need for an action shortcut.

Have fun. Feedback is welcome. I'm glad to get this method completion
release out the way and to prove to the doubters that type based
method completion is possible and hopefully useful in a Ruby editor.

If you like what you've seen so far please blog about the jEdit Ruby
Editor Plugin or give it a del.icio.us bookmark
<http://www.jedit.org/ruby/>. Thanks.

Cheers,
Rob

---
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.
 
K

Karl von Laudermann

Rob said:
Version 0.6.1 of jEdit's Ruby Editor Plugin has been released and is
available for download!

For details and downloads go to:

http://www.jedit.org/ruby/

I like what you're doing, and as someone who uses jEdit as my primary
source editor for Ruby, I think it's great.

However, and I don't know about anyone else, I'm rather put off by the
political banners that you have at the above site. I don't think that
the download site for a software tool is the appropriate place to make
a political statement. Plus, not everyone who visits the site is in the
UK, so your plea to vote for a particular party doesn't apply to most
people who will see it.
 
K

Karl von Laudermann

Rob said:
Version 0.6.1 of jEdit's Ruby Editor Plugin has been released and is
available for download!

For details and downloads go to:

http://www.jedit.org/ruby/

Oh, BTW, it looks as though the version of ruby.xml that you distribute
at this site is version 0.3, rather than the latest 0.6 version
available at:
http://community.jedit.org/?q=node/view/2124

It's just that I put a lot of work into updating this file to support
*lots* of structures that were previously unsupported. The majority of
the work went into 0.4, whose changes are listed here:
http://community.jedit.org/?q=node/view/1846

Versions 0.5 and 0.6 added a few corrections. If you diff 0.3 and 0.4
you can see just how much stuff I added, and it would be a shame IMHO
if it were to all go to waste.
 
R

Rob .

Karl, I'll merge your ruby.xml with any changes I've made. I
definitely don't want to waste or duplicate any effort here. Thanks
for letting me know about you work on the ruby mode definition.

Rob
 
R

Rob .

Karl, the UK political material was put on the plugin download site as
it is topical to the last two days and the UK election coincided with
the 0.6 release (I stayed up all night working to make sure it did).
It'll probably be replaced with a "no software patents in Europe"
banner this weekend. ;-)

There is however some relevance to free software. The Liberal Democrat
party supports the use of open source software in government, and of
using the open source approach in government projects. I believe Lib
Dem members also oppose changing EU law to allow the patenting of
software.

Since the Lib Dems support free software, I didn't mind using a free
software project to support them. To quote their policy docs
<http://www.makeitpolicy.org.uk/PP-Services-OpenSource.html>:

"a collaborative system in which large numbers of developers can
freely share their work can be of enormous benefit. This has often not
been the case to date with, for example, IT specialists in large
public organisations like the NHS (National Health Service) working
separately to solve the same problems but unable to pool their results
because they are tied in to separate proprietary system suppliers.

Wherever possible consideration should be given to the benefits of
placing software elements into the public domain and developing them
collaboratively amongst the whole developer and user community."

Rob
 
K

Karl von Laudermann

Rob said:
Karl, I'll merge your ruby.xml with any changes I've made. I
definitely don't want to waste or duplicate any effort here. Thanks
for letting me know about you work on the ruby mode definition.

Cool. Thanks.
 
F

Florian Groß

Karl said:
Oh, BTW, it looks as though the version of ruby.xml [...]

By the way: Can .rxml be added to the Ruby mode extensions? Rails uses
that for builder views which only contain Ruby code. Rakefiles are
another thing that might make sense to add.
 
R

Rob .

You can manually configure which file extensions trigger an editing
mode in jEdit:

1) Open the Utilities->Global Options dialog.
2) Click on Editing
3) Select Ruby in the combobox labelled "Change settings for mode:".
4) Unclick "Use default settings"
5) Change the "File name glob:" to *.{rb,rbw,rxml}

Rob

Karl said:
Oh, BTW, it looks as though the version of ruby.xml [...]

By the way: Can .rxml be added to the Ruby mode extensions? Rails uses
that for builder views which only contain Ruby code. Rakefiles are
another thing that might make sense to add.
 
F

Florian Groß

Rob said:
You can manually configure which file extensions trigger an editing
mode in jEdit:

1) Open the Utilities->Global Options dialog.
2) Click on Editing
3) Select Ruby in the combobox labelled "Change settings for mode:".
4) Unclick "Use default settings"
5) Change the "File name glob:" to *.{rb,rbw,rxml}

I didn't know that, but wouldn't it still be a good idea to add more
commonly used Ruby extensions (and filenames like Rakefile) to the list?
 
S

Stefan Mahlitz

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Version 0.6.1 of jEdit's Ruby Editor Plugin has been released and is
available for download!
Have fun. Feedback is welcome. I'm glad to get this method completion
release out the way and to prove to the doubters that type based
method completion is possible and hopefully useful in a Ruby editor.

Can someone confirm a defect I experience on my system (I'm not sure
whether I messed up with getting java on ubuntu).

Thanks.

small ruby-code reproducing the defect inline:

# defect
#
# in sidekick structure browser no parameter is displayed for
# none_1, none_2
#
# in sidekick structure browser only first parameter with opening
# brace and commata is displayed for first_only
class DefectReproduction
def first_only(param1, param2, param3)
# shows first parameter only
end

def correct(param1,param2,param3)
# shows all parameters
end

def none_1 param1, param2, param3
# does not show any parameter
end

def none_2 param1,param2,param3
# does not show any parameter
end
end

P.S.: Thanks to everybody working on jEdit and its plugins
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCgnXB9S2Eui6zfdQRAsXaAKCZrcUomP3bPVZYrfVrS6PszP1wtgCdGY72
1yfhbpgbiJXy7cXKrqFy2Zg=
=6SeC
-----END PGP SIGNATURE-----
 
S

Stefan Mahlitz

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

Stefan said:
Can someone confirm a defect I experience on my system (I'm not sure
whether I messed up with getting java on ubuntu).

Works with current version. Sorry for the noise.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFChxDz9S2Eui6zfdQRAjSfAKCgoX7XBUsWgvzkZ+dKFyNw2UktXQCffPuB
qN8k9UHRk76bWHfmSChbnYg=
=a7f0
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top