#449 ✓hold
Vidmantas

New Hash synthax of Ruby not supported by synthax checking

Reported by Vidmantas | January 6th, 2011 @ 10:10 AM

Synthax checker of ruby doesn't recognise new Hash synthax available from Ruby 1.9. For example:

h = { a: 1, b: 2 } # <= shows as synthax error but works perfectly fine in Ruby 1.9.x

Comments and changes to this ticket

  • tim.felgentreff (at student.hpi.uni-potsdam)

    tim.felgentreff (at student.hpi.uni-potsdam) January 6th, 2011 @ 12:38 PM

    • Assigned user set to “tim.felgentreff (at student.hpi.uni-potsdam)”

    This is due to the fact that JRuby is run in 1.8 mode, an we use the same process for syntax checking that is running Redcar. It should be easily fixable if we run Redcar in 1.9 mode. I'll see if that breaks anything else.

  • tim.felgentreff (at student.hpi.uni-potsdam)
  • Daniel Lucraft

    Daniel Lucraft January 7th, 2011 @ 08:36 AM

    Well, we should be able to just specify to the embedded JRuby parser to use 1.9 mode, we shouldn't need to run the whole editor in it. We can make it configurable in the Syntax Checker menu whether it should use 1.8 or 1.9 mode.

    We should move to 1.9 mode in Redcar anyway though.

  • tim.felgentreff (at student.hpi.uni-potsdam)

    tim.felgentreff (at student.hpi.uni-potsdam) January 7th, 2011 @ 09:51 AM

    Just tried it, seems that JRuby 1.5.3 doesn't support the new Hash syntax, yet. 1.6 will be the first to ship with official 1.9 support and is due to be released soon, I think we should post-pone until then.

  • delisa

    delisa March 10th, 2011 @ 06:36 AM

    • Tag changed from syntax checking to jruby 1.6, syntax checking
    • State changed from “open” to “hold”
  • goodwink (at gmail)

    goodwink (at gmail) May 28th, 2011 @ 11:49 PM

    JRuby 1.6.x has been out a while, is this enhancement still planned? With rails 3.1 using the new syntax it's now a little more useful.

  • Wardrop

    Wardrop October 27th, 2011 @ 02:12 AM

    Wants happening with this. Are there still technical difficulties in implementing syntax checking compatible for 1.9? For an editor built in ruby for ruby, you'd think this would be top priority.

  • Wardrop

    Wardrop December 7th, 2011 @ 10:54 PM

    Still no progress I assume. This is getting hard to live with. I love redcar, but it's a shame such a fundamental feature is broken, and has been so for a year.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A programmer's text editor for Gnome.

Attachments

Pages