When I invoke "Run Script (PyMate)" from the Python bundle, I get:
/Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:128:in `initialize': Permission denied - /Users/darylspitzer/Programming/Altera/Perforce/miscellany/infrastructure/integration/integration_status.py (Errno::EACCES) from /Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:128:in `open' from /Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:128:in `initialize' from /Applications/TextMate/TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/PyMate/pymate.rb:24:in `new' from /Applications/TextMate/TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/PyMate/pymate.rb:24
This started happening yesterday, and then went away. Now it's back. How do I make it go away for good?
I'm running 1.5.6 (1405).
/Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/ lib/scriptmate.rb:128:in `initialize': Permission denied - /Users/darylspitzer/Programming/Altera/Perforce/miscellany/ infrastructure/integration/integration_status.py (Errno::EACCES) from /Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/ lib/scriptmate.rb:128:
hmm… why is this Perforce in the trace? Is this the script that you are running? Perhaps you can post a minimal script that causes the crash?
–Alex
Perforce isn't in the trace, it just happens to be the name of a directory that the script I'm trying to run ("integration_status.py") is in.
But that gave me a clue. The script is checked in to version control (Perforce). If it's not opened for edit, then I don't have write permission to the file. Apparently scriptmate.rb requires write access to run it. (I only get this error when the I don't have write access to the file.)
Thanks Alex.
-- Daryl
On 7/11/07, Alex Ross alex.j.ross@gmail.com wrote:
/Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/ lib/scriptmate.rb:128:in `initialize': Permission denied - /Users/darylspitzer/Programming/Altera/Perforce/miscellany/ infrastructure/integration/integration_status.py (Errno::EACCES) from /Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/ lib/scriptmate.rb:128:
hmm… why is this Perforce in the trace? Is this the script that you are running? Perhaps you can post a minimal script that causes the crash?
–Alex ______________________________________________________________________ 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
Yah. ScriptMate does save the file before running it. However it probably shouldn't crash when the file is unwriteable. I'll add an exception handler.
–Alex
On Jul 11, 2007, at 1:54 PM, Daryl Spitzer wrote:
Perforce isn't in the trace, it just happens to be the name of a directory that the script I'm trying to run ("integration_status.py") is in.
But that gave me a clue. The script is checked in to version control (Perforce). If it's not opened for edit, then I don't have write permission to the file. Apparently scriptmate.rb requires write access to run it. (I only get this error when the I don't have write access to the file.)
Thanks Alex.
-- Daryl
On 7/11/07, Alex Ross alex.j.ross@gmail.com wrote:
/Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/ lib/scriptmate.rb:128:in `initialize': Permission denied - /Users/darylspitzer/Programming/Altera/Perforce/miscellany/ infrastructure/integration/integration_status.py (Errno::EACCES) from /Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/ lib/scriptmate.rb:128:
hmm… why is this Perforce in the trace? Is this the script that you are running? Perhaps you can post a minimal script that causes the crash?
–Alex _____________________________________________________________________ _ 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
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
Was this change submitted? I'm still having the same problem. (I'm running version 1.5.7--1436.)
-- Daryl
On 7/11/07, Alex Ross alex.j.ross@gmail.com wrote:
Yah. ScriptMate does save the file before running it. However it probably shouldn't crash when the file is unwriteable. I'll add an exception handler.
–Alex
On Jul 11, 2007, at 1:54 PM, Daryl Spitzer wrote:
Perforce isn't in the trace, it just happens to be the name of a directory that the script I'm trying to run ("integration_status.py") is in.
But that gave me a clue. The script is checked in to version control (Perforce). If it's not opened for edit, then I don't have write permission to the file. Apparently scriptmate.rb requires write access to run it. (I only get this error when the I don't have write access to the file.)
Thanks Alex.
-- Daryl
On 7/11/07, Alex Ross alex.j.ross@gmail.com wrote:
/Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/ lib/scriptmate.rb:128:in `initialize': Permission denied - /Users/darylspitzer/Programming/Altera/Perforce/miscellany/ infrastructure/integration/integration_status.py (Errno::EACCES) from /Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/ lib/scriptmate.rb:128:
hmm… why is this Perforce in the trace? Is this the script that you are running? Perhaps you can post a minimal script that causes the crash?
–Alex _____________________________________________________________________ _ 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
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
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
Daryl,
I am so sorry! Forgot to commit this! It's fixed now as of r8442. Thanks for keeping me in line.
–Alex
On Nov 12, 2007, at 8:03 AM, Daryl Spitzer wrote:
Was this change submitted? I'm still having the same problem. (I'm running version 1.5.7--1436.)
-- Daryl
On 7/11/07, Alex Ross alex.j.ross@gmail.com wrote:
Yah. ScriptMate does save the file before running it. However it probably shouldn't crash when the file is unwriteable. I'll add an exception handler.
–Alex
On Jul 11, 2007, at 1:54 PM, Daryl Spitzer wrote:
Perforce isn't in the trace, it just happens to be the name of a directory that the script I'm trying to run ("integration_status.py") is in.
But that gave me a clue. The script is checked in to version control (Perforce). If it's not opened for edit, then I don't have write permission to the file. Apparently scriptmate.rb requires write access to run it. (I only get this error when the I don't have write access to the file.)
Thanks Alex.
-- Daryl
On 7/11/07, Alex Ross alex.j.ross@gmail.com wrote:
/Applications/TextMate/TextMate.app/Contents/SharedSupport/ Support/ lib/scriptmate.rb:128:in `initialize': Permission denied - /Users/darylspitzer/Programming/Altera/Perforce/miscellany/ infrastructure/integration/integration_status.py (Errno::EACCES) from /Applications/TextMate/TextMate.app/Contents/SharedSupport/ Support/ lib/scriptmate.rb:128:
hmm… why is this Perforce in the trace? Is this the script that you are running? Perhaps you can post a minimal script that causes the crash?
–Alex _____________________________________________________________________ _ 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
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
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
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