[TxMt] Re: Python/IPython support
unussum at gmail.com
unussum at gmail.com
Mon Oct 19 03:29:12 UTC 2009
Good call, sir.
The Run Script command functions perfectly fine under a different user
account.
If it helps, I also found that the Math->Evaluate Line command also
does not function properly under my user account. It just adds the
equals sign but omits any result (e.g. "2 + 3" becomes "2 + 3 = ").
This also behaves properly under the alternate account.
What might be causing this behavior?
On Oct 18, 2009, at 8:09 PM, Alex Ross wrote:
> Can you make yourself a new user account and test to see if you can
> use the command properly there?
>
> —Alex
>
> On Oct 18, 2009, at 6:32 PM, unussum at gmail.com wrote:
>
>> That doesn't seem to be it. Input is (correctly) set to "Entire
>> Document".
>>
>>
>> On Oct 18, 2009, at 5:53 PM, Alex Ross wrote:
>>
>>> In the bundle editor, find the “Run Script” command in the python
>>> bundle. What is the “Input:” set to? It should be “entire
>>> document”. If it is set to “Nothing” that would explain why your
>>> document is erased by the call to Textmate.save_current_document.
>>>
>>> If “input:” is set incorrectly, that would suggest you have some
>>> old, edited version of the python bundle in either /Library/
>>> Application Support/TextMate or in ~/Library/Application Support/
>>> TextMate. You can just remove those directories to get the default
>>> behavior.
>>>
>>> —Alex
>>>
>>> On Oct 18, 2009, at 3:41 PM, unussum at gmail.com wrote:
>>>
>>>> Well, I just narrowed down the issue a bit further.
>>>>
>>>> It turns out that the line reading "TextMate.save_current_document"
>>>> in
>>>> the Python->Run Script script was instead wiping out my test script
>>>> and replacing it with a blank file. When this blank file then got
>>>> run
>>>> it of course returned no results.
>>>>
>>>> So I commented out that line and instead set the save option to
>>>> "Current File" which presumably achieves the same results without
>>>> the
>>>> odd side-effect.
>>>>
>>>> I still don't understand exactly what caused the issue with the
>>>> save
>>>> method, and why I'm not able to reproduce it on my work computer
>>>> with
>>>> an extremely similar setup, but hopefully this will help anybody
>>>> else
>>>> who runs into the same issue down the road.
>>>>
>>>> On Oct 13, 2009, at 4:50 AM, John Finch wrote:
>>>>
>>>>> Ok. Sounds like you might have a corruption in your setup. I'm
>>>>> using
>>>>> Snow Leopard with its own python 2.6.1 install.
>>>>>
>>>>> My Textmate is version 1.5.9 (1510).
>>>>>
>>>>> If I were you I'd delete my Textmate app as well as ~/Library/
>>>>> Application Support/Textmate folder. Also check you have no
>>>>> Textmate
>>>>> folder under your Macintosh HD Library/Application Support folder.
>>>>>
>>>>> Then re-install Textmate.
>>>>>
>>>>> When you have the python file open make sure that Textmate has
>>>>> type
>>>>> python selected at the bottom of the editor window.
>>>>>
>>>>> You might well have tried these measures but I cannot think of
>>>>> anything else that will help you. It does not seem to be a Snow
>>>>> Leopard issue.
>>>>>
>>>>>
>>>>> On Oct 13, 2009, at 5:23 AM, textmate-request at lists.macromates.com
>>>>> wrote:
>>>>>
>>>>>> Another thing I just noticed, if after running the script with
>>>>>> cmd-
>>>>>> R I
>>>>>> close and re-open the file, it comes up blank.
>>>>>>
>>>>>> It appears to get overwritten whenever I run it with cmd-R.
>>>>>>
>>>>>> On Oct 12, 2009, at 5:15 AM, John Finch wrote:
>>>>>>
>>>>>>> Works here.
>>>>>>> Make sure you have the placed the shebang at the top of the
>>>>>>> file.
>>>>>>>
>>>>>>> #!/usr/bin/env python
>>>>>>>
>>>>>>> That should help.
>>>>>>> Here's the full file:
>>>>>>>
>>>>>>> #!/usr/bin/env python
>>>>>>>
>>>>>>> print('test')
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> textmate mailing list
>>>>> textmate at lists.macromates.com
>>>>> http://lists.macromates.com/listinfo/textmate
>>>>
>>>>
>>>> _______________________________________________
>>>> textmate mailing list
>>>> textmate at lists.macromates.com
>>>> http://lists.macromates.com/listinfo/textmate
>>>
>>>
>>> _______________________________________________
>>> textmate mailing list
>>> textmate at lists.macromates.com
>>> http://lists.macromates.com/listinfo/textmate
>>
>>
>> _______________________________________________
>> textmate mailing list
>> textmate at lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
More information about the textmate
mailing list