Hi,
the basic version of this question is:
"Can I set which version of python the python bundle uses, and how?"
The extended version:
<disclaimer: you will see that I am not a specialist... />
in the Bundle editor under "Run Script" I can see that there seems to
be a variable called PYTHONPATH as well as one TM_PYTHON
Do I need to set PYTHONPATH somewhere?
Two additional things:
- under Preferences in the Advanced tab under Shell Variables, there
is a variable called PATH, which points to one python "distribution"
-- is this related to PYTHONPATH or to my problem?
- when I create a python script from a template (File--New from
Template -- Python -- Python Script), then the first line is
#!/usr/bin/env python
1) there's a link under /usr/bin which is called python which points
to one distribution -- could that be critical (the critical link that
needs to be adapted if I want to use another python distribution
2) there is a PATH statement in /usr/bin/env which points to /usr/bin
(see point (1) )
Thank you for your help,
Claus
Hi,
try to insert a query like this below in your php code and see what
happens with TM colours: they will be "broken" after the query.
The problem seems related to the fact that the query has been broken
into more than one line and there are filtered chars like \' or
closing ")" not related to the logic sequence.
Is there any fix to see things well in these situations?
thanks
$var = "SELECT
field_1
,REPLACE
(REPLACE(REPLACE(REPLACE(LOWER(field_2),'\'',''),'/',''),' (the)',
''),'.', '') AS test,
SOUNDEX
(REPLACE
(REPLACE
(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(LOWER(field_2),' (the)',
''),'-',''),'+',''),'(',''),')',''),'/',''),'.','')) as test2
FROM table ORDER BY field_2";
--
Ciao
Fabio
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
Forza Motosport3: spingi pi� di 400 auto straordinarie al limite delle loro possibilit� su oltre 100 circuiti tra i pi� entusiasmanti al mondo!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=9728&d=13-10
Hi,
The author of Ruby HAML bundle for the official TextMate repo
might want to consider renaming the bundle to "HAML" bundle.
This is because HAML is now supported in many other languages
than Ruby.
Also the bundle has no snippets support. Another user's bundle
<http://github.com/seaofclouds/sass-textmate-bundle> has snippets,
completions and drag/drop support.
There is also another bundle here. <http://github.com/mattpolito/ruby-haml.tmbundle/
>
I hope that somebody else will take over the bundle in the official
repository if the current committer is not active.
Takaaki
Dear textmate experts,
I often print textfiles created with textmate to a pdf. As I work on
Mac OS 10.6.1, I use "command+P" to open the print dialog. From there
I can choose the left-most button ("PDF") and then "Save as pdf...".
Now I realized that not only the text file is printed, but also
headers and footers. They can actually be adjusted/removed manually
from the print dialog (click the little arrow-button right in the
first line right next to "Printer"). However, I cannot remove the
horizontal lines that still separate the (empty) header and (empty)
footer from the text. Is there any way to remove these lines as well,
in order to simply have the txt-file printed to pdf?
If I use the textedit.app, I can simply choose "Print header and
footer", so leaving this option blank simply prints the text. Since
this feature is possible with textedit, I assume the problem comes
from textmate, that's why I post it here.
Many thanks,
Marius
Dear textmate experts,
I get the following message out of textmate (Version 1.5.7) on
compiling LaTeX documents (using latexmk):
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/bin/texMate.py:433: DeprecationWarning:
os.popen4 is deprecated. Use the subprocess module. texin,tex =
os.popen4(texCommand)
How can I solve this? I tested on Mac OS X Tiger and Snow Leopard and
get the same error.
Many thanks,
Marius
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')
> I'm new to TextMate and would like to use it for my Python
> development, among other things.
>
> My issue is that I am not able to get the default Python bundle to
> function.
>
> I am running OS X 10.6.1 with python 2.6.1.
>
> For example if I create a new file named test.py, enter the text
> "print
> ('test')", save it, and hit command-R, a window pops up saying the
> script has been run, but the output is blank.
>
> What am I missing here?
>
> My eventual desire is to be able to run the IPython bundle created by
> Matt as well, but I figured it was better to start with just the
> regular Python bundle and get that functioning first.
>
> Thank you for any help you can provide.
Hi all,
I remember that there was a way to disable reloading of the directory
contents of the sidebar (which causes timeouts of several seconds when
switching focus back to TM). I googled, looked in the wiki and the
blog, but couldn't find the post about it any more :-(
Does anybody know how to do it? Should be a quick answer.
Thank you for your help,
Nick
I'm new to TextMate and would like to use it for my Python
development, among other things.
My issue is that I am not able to get the default Python bundle to
function.
I am running OS X 10.6.1 with python 2.6.1.
For example if I create a new file named test.py, enter the text "print
('test')", save it, and hit command-R, a window pops up saying the
script has been run, but the output is blank.
What am I missing here?
My eventual desire is to be able to run the IPython bundle created by
Matt as well, but I figured it was better to start with just the
regular Python bundle and get that functioning first.
Thank you for any help you can provide.
As some of you know I've been working off and on on a new LaTeX
bundle. It started as an extension bundle “LaTeXtra” but lately
I've been focusing on merging that code into a fork of the LaTeX
bundle (http://github.com/alexross/latex.tmbundle).
One of my biggest gripes with the current bundle is that there are
MANY ways to do things. For instance there are 3-4 ways to insert a
new environment, each with different key combinations that I cannot
remember. There is a lot of room for simplification.
Simplification will require the removal of some commands, but I'm sure
there is at least one person using each command. What I'd like is to
get an idea of how people generally use the bundle. So, if you use
the LaTeX bundle, please reply!
1. What typesetting engine do you typically use? (ie. pdflatex,
xelatex, pdflualatex, etc …)
2. PDF Viewer? (Skim.app, Preview.app, …)
3. Do you use any of the completion commands? Which ones? What sort
of LaTeX macros do you commonly complete?
4. Do you use any of the snippets?
5. What commands (besides ⌘R) do you use the most often?
6. Anything that you'd miss terribly if it was removed?
Thanks for your time!
—Alex