Forum: JRuby keyword arg support

2d1b64aaf61046ad166db3009fa8c7dc?d=identicon&s=25 Charles Monteiro (Guest)
on 2013-06-08 03:53
(Received via mailing list)
aka named arguments which are available in Ruby 2.0

my question is will that only be available when Jruby supports lang
level 2.0 ? If so, then what's the ETA for that ?

thanks

Charles Monteiro
jruby@smallruby.com
F1d37642fdaa1662ff46e4c65731e9ab?d=identicon&s=25 Charles Nutter (headius)
on 2013-06-08 06:36
(Received via mailing list)
It is partially working in JRuby 1.7.5, but there are a lot of cases
that
need work. Give it a try and let us know if you have issues (--2.0
flag).

- Charlie (mobile)
2d1b64aaf61046ad166db3009fa8c7dc?d=identicon&s=25 Charles Monteiro (Guest)
on 2013-06-08 11:30
(Received via mailing list)
ok thanks will do, can I rvm 1.7.5 ? Rubymine does not show 2.0  as a
lang level for the 1.7.4 sdk which I obtained via rvm

Charles Monteiro
jruby@smallruby.com
2d1b64aaf61046ad166db3009fa8c7dc?d=identicon&s=25 Charles Monteiro (Guest)
on 2013-06-08 11:44
(Received via mailing list)
interesting here is what rvm lists as know Jrubies:

# JRuby
jruby-1.2.0
jruby-1.3.1
jruby-1.4.0
jruby-1.6.5.1
jruby-1.6.6
jruby-1.6.7.2
jruby-1.6.8
jruby[-1.7.3]
jruby-head

but i retrieved 1.7.4 via rvm , will I get 1.7.5 via dvm jruby-head ?

thanks

Charles Monteiro
jruby@smallruby.com
F1d37642fdaa1662ff46e4c65731e9ab?d=identicon&s=25 Charles Nutter (headius)
on 2013-06-08 18:15
(Received via mailing list)
Oops, sorry...I mistyped. It is partially working in JRuby *1.7.4*.
1.7.5 is current master.

So, try out 1.7.4 and report issues.

- Charlie
2d1b64aaf61046ad166db3009fa8c7dc?d=identicon&s=25 Charles Monteiro (Guest)
on 2013-06-10 18:59
(Received via mailing list)
Charlie:

I tried 1.7.4 and jruby-head i.e. both via RVM installs and within
Rubymine, both fail to recognize the keyword arg syntax, and in both
cases Rubymine does not provide a lang level option of 2.0 , not sure
where it looks to pick up the options


Charles Monteiro
jruby@smallruby.com
4bfcb18ca5298df54d8eb410244d004f?d=identicon&s=25 Uwe Kubosch (donv)
on 2013-06-12 20:15
(Received via mailing list)
Hi!

The language levels in RubyMine are hard-coded.  You should file an
issue to get them to add the "2.0" level.

Until RubyMine adds the "2.0" language level, you can add "--2.0" in
"Edit configurations" => <your app> => Configuration => Ruby arguments

That will run your app in Ruby 2.0 mode.


On 2013-06-10, at 18:14, Charles Monteiro <jruby@smallruby.com> wrote:

> On Jun 8, 2013, at 12:11 PM, Charles Oliver Nutter <headius@headius.com> wrote:
>>>
>>>
>>>
>>>
>>>> 2.0 ? If so, then what's the ETA for that ?
>>>> To unsubscribe from this list, please visit:
>>   http://xircles.codehaus.org/manage_email
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>

--
Uwe Kubosch
uwe@kubosch.no
http://kubosch.no/
2d1b64aaf61046ad166db3009fa8c7dc?d=identicon&s=25 Charles Monteiro (Guest)
on 2013-06-13 03:23
(Received via mailing list)
thank you so much, works fine. Rubymine will also keep complaining about
the syntax and i don't seem to be able to turn that off an an inspection

Charles Monteiro
jruby@smallruby.com
F1d37642fdaa1662ff46e4c65731e9ab?d=identicon&s=25 Charles Nutter (headius)
on 2013-06-13 04:24
(Received via mailing list)
I'm guessing they don't have 2.0 syntax support yet *at all* so
hopefully
it will be coming soon.

Glad to hear kwargs are at least functional for you! Let us know of you
run
into any issues.

- Charlie (mobile)
2d1b64aaf61046ad166db3009fa8c7dc?d=identicon&s=25 Charles Monteiro (Guest)
on 2013-06-13 16:54
(Received via mailing list)
they appear to have support for 2.0 but in MRI

and I will let you know since will now code with keyword args as default

Charles Monteiro
jruby@smallruby.com
F1d37642fdaa1662ff46e4c65731e9ab?d=identicon&s=25 Charles Nutter (headius)
on 2013-06-13 18:27
(Received via mailing list)
I didn't think they used a different parser for MRI versus JRuby, but
perhaps they actually disable 2.0 support on JRuby because it did not
support 2.0 stuff until recently.

- Charlie (mobile)
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.