Thomas and Charles,
   We got this bug report in. I haven't tried it against the latest  
JRuby codebase myself, so it might not still be a problem, but this  
should be valid Ruby code (I think).

Thanks,
Chris

On Jul 10, 2006, at 2:54 AM, Bret Pettichord wrote:

> Thanks for your work with RDT.
>
> I'm getting this error in my .log.
>
> !MESSAGE Can't set variable $~.
> !STACK 0
> org.jruby.lexer.yacc.SyntaxException: Can't set variable $~.
>     at org.jruby.parser.ParserSupport.backrefAssignError  
> (ParserSupport.java:379)
>     at org.jruby.parser.DefaultRubyParser.yyparse 
> (DefaultRubyParser.java:1532)
>     at org.jruby.parser.DefaultRubyParser.yyparse 
> (DefaultRubyParser.java:843)
>     at org.jruby.parser.DefaultRubyParser.parse  
> (DefaultRubyParser.java:3550)
>     at org.rubypeople.rdt.internal.core.parser.RubyParser.parse 
> (Unknown Source)
>     at org.rubypeople.rdt.internal.core.parser.RubyParser.parse 
> (Unknown Source)
>     at  
> org.rubypeople.rdt.internal.core.builder.MassIndexUpdater.processFile  
> (Unknown Source)
>     at  
> org.rubypeople.rdt.internal.core.builder.MassIndexUpdater.processFiles 
> (Unknown Source)
>     at  
> org.rubypeople.rdt.internal.core.builder.MassIndexUpdater.updateProjec 
> ts(Unknown Source)
>     at  
> org.rubypeople.rdt.internal.core.builder.MassIndexUpdaterJob.run 
> (Unknown Source)
>     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
>
> Here's my code.
>
>   def test_match_regexp_found
>     $~ = $ie.contains_text(/Messages ([0-9]+)/)
>     assert_equal('42', $1)
>   end
>
> Using Eclipse 3.1.2 with RDT 0.8.0
>
> I just had to restart Eclipse because of a stack overflow and this  
> was the last error in the log. Do you know of a fix or workaround  
> for this? Another way to write this code in Ruby?


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to