[Jruby-devel] Re: Issues with octal sequences in regexp translator
Crisis averted! I added back in the single-digit pattern and the issue is gone again. I hadn't noticed that got removed (or never added) to the translator. I also removed the "three digit" octal pattern. David, can you explain that one? It didn't seem to be doing anything the "missing zero" pattern wasn't already handling, but maybe I'm missing something? On 2/14/06, Charles O Nutter <[EMAIL PROTECTED]> wrote: > It seems something isn't quite right. This stack trace is from running > Rails's generate script: > > java.util.regex.PatternSyntaxException: Illegal octal escape sequence > near index 2 > \0 > ^ > at java.util.regex.Pattern.error(Pattern.java:1541) > at java.util.regex.Pattern.o(Pattern.java:2595) > at java.util.regex.Pattern.escape(Pattern.java:1829) > at java.util.regex.Pattern.atom(Pattern.java:1733) > at java.util.regex.Pattern.sequence(Pattern.java:1614) > at java.util.regex.Pattern.expr(Pattern.java:1558) > at java.util.regex.Pattern.compile(Pattern.java:1291) > at java.util.regex.Pattern.(Pattern.java:1047) > at java.util.regex.Pattern.compile(Pattern.java:808) > at org.jruby.RegexpTranslator.translate(RegexpTranslator.java:22) > > -- > Charles Oliver Nutter @ headius.blogspot.com > JRuby Developer @ jruby.sourceforge.net > Application Architect @ www.ventera.com > -- Charles Oliver Nutter @ headius.blogspot.com JRuby Developer @ jruby.sourceforge.net Application Architect @ www.ventera.com --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 ___ Jruby-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jruby-devel
[Jruby-devel] Running Rails
Hello, I'm interested in getting Ruby on Rails running under Java. It looks like you have support slated for March, so I'm wondering if any work has been done on it. I'd be interested in helping out, but I'm figured you guys would know where to start, cause I'm starting from scratch. I'm thinking you'd have to have some sort of Java server that would send raw http requests to ruby/rails through stdin/out. Let me know if you have some direction for me. Thanks, -Ben Kittrell --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 ___ Jruby-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jruby-devel
[Jruby-devel] Problem with block-local variables and eval
There seems to be an issue either with how block-local variables are
stored or how eval'ed code looks them up. The following fails because
x is treated as a local variable, rather than a dyn variable, and so
the interpreter tries to find it in the block's containing scope,
rather than in its dyn var list:
def foo
yield
end
foo { x = "bar"; eval("puts x") }
Obviously this should work. Is it an issue that the parser doesn't
know how to treat the reference to x, and so tries to look it up as a
local var rather than a dvar?
This is the current stopper for Rails' generate script.
--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com
---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
Jruby-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jruby-devel
Re: [Jruby-devel] Running Rails
The "March" timeframe is perhaps from previous presentations? We are still targeting March to get Rails working, but exactly what it will look like is not set in stone. We are looking at a scenario similar to what you describe, with an app server acting to send requests into Rails as Apache would normally. We're actively fixing JRuby issues that prevent Rails from working, but we're not sure when we'll have it up and going. Rest assured that it's a top priority right now, and we're working pretty heavily to get it working. Any help you can offer would also be useful...if you can test out other Rails scripts (we're mainly focused on running the "generate" script and executing a generated Rails app right now) and report any bugs or failures (or successes), it would help further our work. - Charlie On 2/15/06, ben kittrell <[EMAIL PROTECTED]> wrote: > Hello, > > I'm interested in getting Ruby on Rails running under Java. It looks > like you have support slated for March, so I'm wondering if any work > has been done on it. I'd be interested in helping out, but I'm > figured you guys would know where to start, cause I'm starting from > scratch. > > I'm thinking you'd have to have some sort of Java server that would > send raw http requests to ruby/rails through stdin/out. > > Let me know if you have some direction for me. > > Thanks, > -Ben Kittrell > > > --- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642 > ___ > Jruby-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jruby-devel > -- Charles Oliver Nutter @ headius.blogspot.com JRuby Developer @ jruby.sourceforge.net Application Architect @ www.ventera.com --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 ___ Jruby-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jruby-devel
