I am the one responsible for the new PyMate. It in Ruby because we are moving towards a unified script runner for TextMate which will allow all of the various scripting languages to benefit from an enhanced html output window, while reducing the amount of maintenance required to keep everything working. pymate.rb will eventually be a subclass of a more generalized script runner which will be language indepedent. It will perhaps be in another language, but that doesn't especially matter.
Ruby does not run your python code. Instead, a python subprocess is launched, the code is piped in, and the output is piped to HTML preview. The custom exception handling is done using a special sitecustomize.py Python.bundle/Support/PyMate/, that bit if code is in Python, and is quite nice. To modify PyMate, the sitecustomize.py should be all that you really need to touch.
I actually spent a few hours trying to reimplement pymate.rb in Python, but then realized I was wasting my time after a simple copy-paste from RubyMate had things working in 10 minutes flat.
I think it is a testament to the power of both Python and Ruby that they are so easily melded into a working PyMate.
Anyway, I hope you'll give the new version of PyMate a chance, and report any issues that you have. I really would like it to work for you, regardless of the implementation language.
- Alex
On 11/6/06, Andy Armstrong andy@hexten.net wrote:
On 6 Nov 2006, at 17:33, Fred B wrote:
And if you're so picky about the tools you use, I have a bad news for you: TextMate is not written in python.
And neither is Python (or Perl, or Ruby :)
-- Andy Armstrong, hexten.net
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate