Re: [Jruby-devel] PATCH: hacks while working on IRB, was: Need for an IRB that works

2006-02-09 Thread Charles O Nutter
Replies! - I'll check out rubicon, but we're really starting to push the limits of Rubicon. I can change (i.e. break) some pretty core things without Rubicon failing. We may want to consider finding a way to include Ruby's own test cases into our regular run, for a little added juice. - I figured

Re: [Jruby-devel] PATCH: hacks while working on IRB, was: Need for an IRB that works

2006-02-09 Thread Thomas E Enebo
These look fine to me. If rubicon works and you can get previously not working autoload stuff to autoload then this looks like a good start. autoload used to be in Module.getConstant a long time ago. It got ripped out at some point during one of the getConstant refactorings. At that point i

Re: [Jruby-devel] Need for an IRB that works

2006-02-09 Thread Thomas E Enebo
IRB known problems: readline -- Perhaps we can make empty terminal or make irb use Swing/AWT (and make a GUI-based readline) binding -- you have a patch which may be good enough here? trap -- no way to interrupt SIGINT without taking down system. Perhaps a GUI-based irb i

[Jruby-devel] PATCH: hacks while working on IRB, was: Need for an IRB that works

2006-02-09 Thread Charles O Nutter
So I thought I'd try to fix a few things. I'd really like someone to look over the autoload stuff here, as it *seems* to approximate what C ruby does, and it seems to work correctly now, but I don't have any extensive testcases for autoload right now. With these fixes IRB execution dies while tryi

Re: [Jruby-devel] Need for an IRB that works

2006-02-09 Thread wknaka
Apparently there is some kind of support for readline-java on windows (there's a dll in the contrib directory of the 0.8.0 src download) but looking through the list archives, people have been having trouble getting it to work. There's always the original eval.rb (w/o readline support) from the e

Re: [Jruby-devel] Need for an IRB that works

2006-02-09 Thread Charles O Nutter
Actually I spoke too soon...it appears we do have autoload capability, but in this particular case it's not working...hmmm... On 2/9/06, Charles O Nutter <[EMAIL PROTECTED]> wrote: > Thank you Wes, I will definitely have to take a look at that...it > could be very helpful. You are correct in assum

Re: [Jruby-devel] Need for an IRB that works

2006-02-09 Thread Charles O Nutter
Thank you Wes, I will definitely have to take a look at that...it could be very helpful. You are correct in assuming there's no readline for Windows, however, so this may not get me where I want on my Windows machines. What does ruby use under Windows? I do see StdioInputMethod, so I thought I'd tr

Re: [Jruby-devel] Need for an IRB that works

2006-02-09 Thread wknaka
Here's a readline-enabled version of eval.rb that I've had lying around for awhile. It's a modified version of eval.rb and doesn't require any changes to jruby to run. It's not sophisticated at all; it's basically eval.rb with readline's ability to do editing, history, etc. Since I based the re

[Jruby-devel] Re: Need for an IRB that works

2006-02-09 Thread Charles O Nutter
I just found this: http://java-readline.sourceforge.net/ Apparently Jython uses it for terminal control stuff.. - Charlie On 2/9/06, Charles O Nutter <[EMAIL PROTECTED]> wrote: > It's become increasingly irritating that there's nothing equivalent to > IRB that works with JRuby on the command-li

Re: [Jruby-devel] Suggestion for an ENV implementation

2006-02-09 Thread Galarneau, Neil
It seems to me that the Runtime.exec() approach is not guaranteed to find the actual value of the environment variable, only some "default" value of that variable. Jruby could have been launched in a shell with modified environment variables. Just a thought. Maybe its a footnote in the doc. Neil

Re: [Jruby-devel] Need for an IRB that works

2006-02-09 Thread Werner Schuster (murphee)
Charles O Nutter wrote: Could Ruby's IRB be modified to work correctly with JRuby? I know it currently doesn't work because we don't have the terminal reading and manipulating capabilities necessary in Java, but could those requirements be ripped out? I don't know if this helps, but there's

Re: [Jruby-devel] Removed devs not on jruby-devel

2006-02-09 Thread Charles O Nutter
Those seem like appropriate categories, and I agree on the areas that will get the most changes over the next few months. - Charlie On 2/7/06, Thomas E Enebo <[EMAIL PROTECTED]> wrote: > We can provide some documentation at the end of the month under the > benefits of writing slides for javaOne

[Jruby-devel] Need for an IRB that works

2006-02-09 Thread Charles O Nutter
It's become increasingly irritating that there's nothing equivalent to IRB that works with JRuby on the command-line. I'm personally tired of having a stack of test*.rb files around or using cumbersome -e strings to try out every little thing I need to test while working on JRuby. Something better