Hello,
I'm trying to get the MySQL bundle working so I can browse tables.
I get this on my MacBook Pro:
Traceback (most recent call last): File "/Applications/Document/
TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/Support/bin/
tableBrowser.py", line 284, in ? sys.exit(main()) File "/Applications/
Document/TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/
Support/bin/tableBrowser.py", line 109, in main listTables
(dbName,dbHost,dbPort,serverType,passwd,dbUser) File "/Applications/
Document/TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/
Support/bin/tableBrowser.py", line 130, in listTables mycon =
MySQLdb.connect(db=dbName,host=dbHost,port=int
(dbPort),user=dbUser,passwd=passwd) NameError: global name 'MySQLdb'
is not defined
I tried using tablebrowser.py standalone and it failed due to no
MySQLdb module for Python.
Downloaded and installed MySQLdb and now Python works properly with
the module and MySQL.
Alas, TextMate still can't find MySQLdb and fails with the same error.
I note that the first line of tablebrowser.py is:
#!/usr/bin/env python
My python is at:
/usr/bin/python
Is TextMate using some other Python than my native one?
If not, why can I interactively use Python with MySQL, but TextMate
won't work.
I have all the TM environment variables set so I don't think that is it.
Thoughts?
Thanks,
ml
I have the following drag command for zip files to be inserted as snippet:
echo -n "<a href=\"http://$TM_REMOTE_URL/file_download/\${1:file_id}\"
title=\"\${2:"$TM_DROPPED_FILE"}\">\${3:"$TM_DROPPED_FILE"}</a>"
This will insert a download snippet for a default URL on a live server.
However, I would like to strip the path somehow from the variable.
Does anyone know how to do this,through a substitution reg ex maybe ?
Additionally a variable named $TM_FILE_NAME (That would just insert the
name of the file instead of $TM_DROPPED_FILE would make much sense here
for such a drag command, where you don't care
so much about the path.
regards, marios
TM is very sensitive about order in which Alt and mouse button are
released. I often end up with regular selection when I try to select
columns.
I've checked XCode and Word - both requre Alt to be pressed only when
clicking mouse button, not when relasing. I find that much easier to work
with - it's fail-safe and I don't have to hold Alt when selecting.
Is there a reason why TM has selection implemented like this? Can this be
changed or made configurable?
--
regards, porneL
Hi,
I am pretty close to set up my development environment exactly the way I
want it.
The TXP Bundle runs much nicer now, with no warnings in Console output.
In the meanwhile, while using it and testing along, I came across a
problem that has puzzled my for hours.
I hope, that someone might be able to help.
I have a project Folder that uses a local document root Folder in my
Site folder for Testing, no problems with that.
However in order to use the completion command, for completions, that I
want for a special Tag <txp:article />, I have a Preference Item, that
contains the following command:
{ completionCommand = 'find "$TM_DIRECTORY" \
-name "$TM_CURRENT_WORD*article.txfml" -maxdepth 2 \
-exec basename "{}" \;|sort'; }
as described in Section 4.2 of the manual, in order to provide the
filenames of a special folder, that contains the needed filenames that I
need to provide as attribute values for the above mentioned tag.
My first problem here is, that I would need maxdepth 4 and even worser,
maxdepth 4 and 5.
I tried to alter the command, setting maxdepth to 4 and 5, since I need
to maintain the directory structure of my site folders.
This does not seem to work.
The second problem is, that I also have some other completions for Tag
names and attribute names, which are sitting normally in arrays, in some
other pref Items.
I set up another pref Item,
with :
{ disableDefaultCompletion = '1'; }
and scope :
text.html.txp entity.name.tag.single.article.txp
which is the same scope that I have for the above command, in order to
suppress the default completions on article form attribute values,
but the only thing that the escape key cycles through, are the near by
found values in the open document.
What am I doing wrong here ?
(Note also, that the file endings I have, have the form eg.:
.article.txfml, comment.txfml, file.txfml, etc, which are needed,
to fine grade those completions based on this article form completion
command.
Any help appreciated.
regards, marios
Hi,
Is there somewhere a viewer for pages written with MediWiki syntax?
As I do not plan the full install of MediaWiki on my laptop, I'm looking
for a very simple viewer that would allow to see files edited offline in
TextMate.
I've tried pmWiki, that works fine, but does not use the same syntax
as MediaWiki.
Thanks in advance,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
I am working on a design refresh of a site in ColdFusion. As CF is
incompatible with Java SDK > 1.4.2 and there is no way to downgrade
(I am using 1.5/5.0) without reinstalling the OS, I am stuck running
the CF server on another computer. Apparently the internal CF server
is unable to have a web root folder that is hosted on a network
share, so I am also stuck editing via SMB (unless there is some other
option I'm not thinking of?). The funny thing is that when I work o
Now to the TextMate bit: Every time I switch to TextMate, there is a
multi-second pause (sometimes accompanied by the SBOD) before I can
resume editing. This happens before the window regains highlight, if
that helps. This is frustrating, as there is often a change/save/
reload type of flow to my work, particularly editing CSS etc. Has
anyone experienced this or similar behavior, or know of an
alternative solution (I'm hoping to avoid anything like FTP). The
problem does seem particular to TextMate, since I was using skEdit
set up the same way for a while without the same problem. The
problem does not occur when editing on an SMB share hosted on our
linux server.
I'm running TM on a Mac Mini 1.42 g4/1 gb on 10.4.6, and the "server"
is a P4 3.2ghz/1gb ram WinXP SP2... They are connected via 100Mbps
ethernet.
Thanks,
Eric O'Connell
IBA Webmaster
-
941-921-7443 x15
eric(a)bodytalksystem.com
www.bodytalksystem.com
Before the last update I could type something like:
div {
color:red;
}
And all was well and good. Now TM throws a space in automatically
which is fine. I just have to get used to that. But now I can't
overtype the semi-colon. I used to be able when I got to then end of
the statement type ";" and it would overwrite the one that was
already there and place my cursor outside the statement. Now it puts
2 semi-colons and i'm still stuck in the statement.
div {
color: red;;
}
What happened to the ability to Overtype the semi-colons in the css
context? And how do I bring it back?
Josh
I've put together a very basic/simple/uncomplicated/doesn't do much
bundle for Stata, available at:
http://www.landfood.ubc.ca/people/timothy.beatty/page10/page10.html
I'm new to Textmate and so I'm sure the bundle could be improved upon
(there are certainly both typos and thinkos). If anyone has helpful
suggestions, particularly Stata users, they'd be very much
appreciated.
Thanks,
Tim
Hello. I have folders throughout my project called /archive/, in
which I put old versions of things. I would like the "Show TODO
List" command to ignore everything in any folder named archive/. Any
ideas on how to do that?
I looked at the Show TODO List Ruby script, but I don't know Ruby at
all and it was not obvious to me how I would modify (a copy of) the
script to ignore specific subfolders.
Thanks!
--Andreas
p.s. I use hard folders in my projects, and would like to continue to
do so. Moving the /archive/ folders out of the actual folders on my
HD is not an option. However, if there was some way to surpress
those subfolders from appearing in the project at all (other than
actually removing them), that would be fine. Unfortunately, deleting
the references in the project is insufficient; the files in /archive/
nevertheless have their TODOs appear in the list.