Salutations, list! When running scripts using the Python bundle, I noticed a
complaint from python3 about the use of reload() in sitecustomize.py. Since
reload is no longer a built in function in python3, this little one line
patch will fix the issue while still supporting python2.
Index: Python.tmbundle/Support/sitecustomize.py
===================================================================
--- Python.tmbundle/Support/sitecustomize.py (revision 11288)
+++ Python.tmbundle/Support/sitecustomize.py (working copy)
@@ -18,6 +18,7 @@
# now import local sitecustomize
try:
import sitecustomize
+ if sys.version_info[0] >= 3: from imp import reload # python 3 support
reload(sitecustomize)
except ImportError: pass
I am currently using TM 1.5.7 (1436), and everything is working swimmingly.
When I update to the latest "minor update," I end up with the following
message when I ask LaTeX to typeset my document:
env: ruby: No such file or directory
Now, I can see from searching around this forum and elsewhere that this is
somewhat a common problem. I've seen
http://manual.macromates.com/en/shell_commands this and several posts
trying to solve this issue. In particular, I am running Leopard, and have
not replaced Ruby. Both ruby and env are sitting in /usr/bin, and my path
has /usr/bin as the first entry. Furthermore, ~/.MacOSX/environment.plist
reads { PATH = "/usr/bin"; }.
At this point, I'm not sure what to do, and would appreciate some help.
Fortunately, I was able to roll back to v1436 via Time Machine, and
everything is working fine again. But I'd like to be able to use the latest
minor update. Any suggestions?
--
View this message in context: http://www.nabble.com/Error-on-Update%3A-env%3A-ruby%3A-No-such-file-or-dir…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all-
What became of the BibTex.tmbundle? I have it on my computer, but
didn't see it listed in the SVN. Googling didn't find a definitive
statement on it's fate.
Was it merged into the LaTex.tmbundle? Am I hallucinating, inattentive,
stoopid?
Any info greatly appreciated!
Best, Charles
Hello all,
I've searched the texmate documentation for the latex bunde and then list
archive but did not find any query towards this functionality, so I am
posting my suggestion here.
I've recently moved to the mac from working in windows and was quickly
convinced by a friend to use textmate both for programming and LaTeX
editing. In the LaTeX department, I have noticed that there is no shortcut
to execute this sequence of commands: latex + bibtex + latex + latex. In the
windows incarnation of LaTeX, mikTeX has an executable that does this, but I
believe this is easily done by a script under MacOS. It would not be
extremely hard to create a script to do this, and smart it up by checking
for the existence of a bbl file and comparing its date with the source files
in a textmate project and decide on the most efficient sequence of commands.
I would greatly appreciate it if (assuming people liked the idea, of
course) someone with more experience in textmate could add this
functionality, otherwise I may have to learn how the bundles work and try to
do it myself.
Regards,
--
___________________________
Felipe Rech Meneguzzi
http://fmeneguzzi.blogspot.com
___________________________
The sitecustomize.py script in the Python.tmbundle in build 1498 seems
to have an error, which keeps the traceback from the user script from
being formatted.
It seems the error offset (e.offset) is a NoneType instead of an int.
This diff fixes the output:
diff --git a/Python.tmbundle/Support/sitecustomize.py b/
Python.tmbundle/Support/sitecustomize.py
index ffb3525..a30c6d0 100644
--- a/Python.tmbundle/Support/sitecustomize.py
+++ b/Python.tmbundle/Support/sitecustomize.py
@@ -47,6 +47,7 @@ def tm_excepthook(e_type, e, tb):
# if this is a SyntaxError, then tb == None
filename, line_number, offset, text = e.filename, e.lineno,
e.offset, e.text
url, display_name = '', 'untitled'
+ offset = offset if offset else 0
io.write("<pre>%s\n%s</pre>\n" % (escape(e.text).rstrip(),
" " * (offset-1) + "↑"))
io.write("<blockquote><table border='0' cellspacing='0'
cellpadding='0'>\n")
if filename and path.exists(filename) and
"TM_SCRIPT_IS_UNTITLED" not in environ:
I searched on the gmane list and couldn't find anything, so I hope
this might prove helpful.
Thanks,
Jaremy Creechley
Last week I read an article re. where a bundle 'RubyFrontier' was
mentioned. Reading the documentation I got the impression that this
bundle is somewhere available but I do not see it when I use the
GetBundles-Bundle.
Maybe someone can tell me where to find this RubyFrontier-Bundle? Or
confirm that it is not available yet.
Thanks,
Gert
I'm getting this message only the first time I cmd-R a ruby script.
*LoadError:* no such file to load — builder
method gem_original_require<txmt://open?line=27&url=file:///System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb>
in *custom_require.rb* at line 27method
require<txmt://open?line=27&url=file:///System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb>
in *custom_require.rb* at line 27*at top
level*<txmt://open?line=56&url=file:///Users/david/scripts/getAndaleSales.rb>
in *getAndaleSales.rb* at line 56
If I cmd-R a second time, the script runs normally. If I restart TM, I get
the same failure again on first run, works on second run.
I followed the troubleshooting instructions & removed a local copy of the
Ruby bundle that I had downloaded previously via svn.
Thanks for any suggestions.
---
David Carter
david(a)carter.net
I have noticed that when I updated, if I have comments in a function,
before the start bracket(see below, it is no longer color-coding as it
used to. I really preferred the way it used to handle this, where it
would just comment it as normal. Was this change by design?
Andrew Sapperstein
University of Michigan-Class of 2012
McDonogh School-Class of 2008
Hi all,
is there a scopes' hierarchical list?
I am trying to style a theme but I am confused on which scope to use
and their hierarchical order.
Thanks a lot to everyone.
TextMate just updated itself, now at version 1.5.8. Suddenly, the C++
highlighting is slightly broken. Example:
#include <stdio.h>
#include <stdlib.h>
#include "vector/Cartesian3Vector.h"
#define C3V Cartesian3Vector
#define PI acos(-1.0)
int main(int argc, char *argv[])
{
vector<Track> * tracks;
McGossip mcg;
double z0;
<more code...>
}
gives weird wrong highlighting. But if you add a semi-colon in a
strategic place, everything is fine again.
#include <stdio.h>
#include <stdlib.h>
#include "vector/Cartesian3Vector.h"
#define C3V Cartesian3Vector
#define PI acos(-1.0); // Added semi-colon, but you don't want
this in real code
int main(int argc, char *argv[])
{
vector<Track> * tracks;
McGossip mcg;
double z0;
<more code...>
}
Or if you move the #define ending with a parenthesis up one line it's
happy again:
#include <stdio.h>
#include <stdlib.h>
#include "vector/Cartesian3Vector.h"
#define PI acos(-1.0)
#define C3V Cartesian3Vector
int main(int argc, char *argv[])
{
vector<Track> * tracks;
McGossip mcg;
double z0;
<more code...>
}
So I guess the line ending in closed paren is throwing it off. It
didn't do this before the update.