[SVN] r3770 (Ruby)

Allan Odgaard throw-away-1 at macromates.com
Fri Jun 23 18:58:23 UTC 2006


• the beginning of a replacement to the old tmruby.rb

This one runs a new ruby process and injects an exception handler into the new script (using -r, kudos to James for suggesting this approach) -- it passes the script a file descriptor as an environment to which the exception handler can then write a nice stack trace in case of errors.

This fixes half a dozen problems with the old approach, but it’s still work in progress -- currently it starts the new Ruby with the current document as stdin, it should of course prefer the script file, and possibly parse the shebang line for possible arguments.

Changed:
A   trunk/Bundles/Ruby.tmbundle/Commands/Run.tmCommand
A   trunk/Bundles/Ruby.tmbundle/Support/RubyMate/
A   trunk/Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb
A   trunk/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb
A   trunk/Bundles/Ruby.tmbundle/Support/RubyMate/test.rb
U   trunk/Bundles/Ruby.tmbundle/info.plist



More information about the textmate-dev mailing list