Hi All,
I just got the latest build, Version 1.5.5 (1372), and I noticed that
the python language syntax is now somewhat broken for comment
characters (#) inside regular expression strings r'some regular
expression'.
like:
some_reg_string = r'#'
shows up as illegal / incomplete syntax.
And e.g. all my code following this line:
parentPattern = re.compile(r'^#extends (\w+)\s*$')
becomes:
source.python
meta.function-call.python
meta.function-call.arguments.python
which is a little confusing.
best,
dirk
-----------------------------
Dirk van Oosterbosch
de Wittenstraat 225
1052 AT Amsterdam
the Netherlands
http://labs.ixopusada.com
-----------------------------
This morning I got the notice to update to a new cutting edge build.
Now when I try to use the svn status command I get the following error:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
web_preview.rb:70:in `html_head': undefined method `+' for
nil:NilClass (NoMethodError) from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/web_preview.rb:117:in `html_header' from
(erb):29
svn update gives this error:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
web_preview.rb:70:in `html_head': undefined method `+' for
nil:NilClass (NoMethodError) from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/web_preview.rb:117:in `html_header' from
(erb):29 -:13:in `write': Broken pipe (Errno::EPIPE) from -:13:in
`puts' from -:13 from -:13:in `each_line' from -:13
svn info:
NoMethodError
reason: undefined method `+' for nil:NilClass
trace:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
web_preview.rb:70:in `html_head'
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/format_info.rb:43
I didn't have any reason to test other commands.
Previously I never had any errors. Is there some new setting to get
svn status working again? Or some old setting I might have that would
be throwing it off?
In the advanced prefs I have TM_SVN set to /usr/local/bin/svn and
that's the only svn related change I have made to TextMate.
thanks,
john
Hello,
We have recently moved to an authenticated only proxy..
and when I open TextMate it gives me an error:
Error NSURLLErrorDomain -1012
I've tried to enter the user/pass in SystemPrefs and it doesn't work..
any idea how I could get updates again?
Thanks
hi there,
I see in the change list that
[NEW] Perl bundle: PerlMate will now request for user input when
reading from <STDIN> (Ciarán Walsh)
This seems very handy: Does anyone have an example of a command which
does this? If it is not perl specific, are there examples of syntax
for other languages, like cmd line php?
cheers,
t
If I write the following snippet:
${3:x}${1:$TM_SELECTED_TEXT}$3$2
activate it, then press tab twice so the first 'x' is selected, I would
expect what I type to be mirrored in the other 'x' too. Why isn't it?
Similarly,
${1:x}${2:y}$1$2
doesn't do what I'd expect: the 'x' is mirrored, but the 'y' is not.
What am I missing?
Thanks,
Robin
Hi,
I'm working on a set of XHTML/PHP pages and the document header
resides in a separate file. Is there a way to tell TextMate to insert
tags properly, ie. <br /> instead of <br> etc.?
Thanks!
Christian
To: All TextMate Actionscripters.
I'm looking to find a simple "Hello World" downloadable TextMate
project which demonstrates how to configure and compile with MTASC.
Haven't been successful yet with the Help documentation.
Sincerely,
Tony Jacobson
Ratio Interactive
Hey all,
i'm using 'xbel' for some specific xml file and like to know if it's
possible to let TextMate knows the files with extension xbel are xml
files ?
best,
Yvon
I have just tried enabling using Textmate from Apple's Mail
application to get better text editing. Works fine, but one thing I
miss from Mail is that text at different quote levels is coloured
differently. This would seem a simple enough thing to do (I would
have to do a bit of reading up though), but has anyone already done
this?
Dave.
Hi there
I have a non-public Wordpress blog behind a htpasswd
authentification. Is it someway possible to use the blogging bundle
all the same? When trying to fetch the posts, I get the following
errors:
/usr/lib/ruby/1.8/xmlrpc/client.rb:533:in `do_rpc': Authorization
failed. (RuntimeError)
HTTP-Error: 401 Authorization Required from /usr/lib/ruby/1.8/xmlrpc/
client.rb:409:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/metaweblog.rb:31:in `getRecentPosts'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:547:in `fetch'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:546:in `popen'
from /Library/Application Support/TextMate/Support/lib/progress.rb:
11:in `call_with_progress'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:546:in `fetch'
from /tmp/temp_textmate.V9d44n:3
Thanks for any help in advance!
Oliver
I've just released BlogMate 0.4 which adds support for reading from
and writing to blogs behind HTTP Basic and Digest authentication.
Also, system keychain support is used for storing/fetching username/
password.
hope some of you can check it out.
http://ditchnet.org/blogmate
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools
http://scan.dalo.us
Hi,
I am a new Textmate user, and this is my first post. My initial
interest in Textmate was in using it as a python editor, although as
I learn more about it, I am interested in using it for LaTeX and
Context. The LaTeX bundle is very nice, though the ConTeXt bundle
doesn't seem to have a way to typeset the resulting file (at least as
far as I can see.) I have configured TeXShop to use Textmate as an
external editor---this works, but it is not as nice as working solely
in Textmate.
Is anyone is working on a ConTeXt bundle similar in functionality to
the LaTeX bundle?
Cheers,
-paul
Hi,
I'd link to run a shell command in a bundle and capture the output in
the html window. So I thought scriptmate.rb seems to be a good way to
go, but I am a bit clueless. Running this from the command line gives
me an error.
--------------------------------------------------
#!/usr/bin/env ruby
ENV['TM_SUPPORT_PATH']="/Applications/TextMate.app/Contents/SharedSupport/Support"
$:.unshift ENV['TM_SUPPORT_PATH'] + "/lib"
require 'scriptmate'
cmd_mate("ls")
--------------------------------------------------
nil
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:92:in `waitpid': no implicit conversion from nil to integer (TypeError)
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:92:in `emit_html'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:16:in `cmd_mate'
from ./parse_texrun.rb:42
And scriptmate.rb looks a bit strange to me:
....
def emit_html
emit_header()
stdout, stderr, stack_dump, pid = @command.run
....
is trying to get 4 parameters from @command.run, but UserCommand#run
only returns 3. A related question: is it possible to get a pid from
popen3?
Patrick
> Looking at the diff, the b was previously a <, so the intent was to
> convert \< to \b (because of a change in the regexp library), but
> accidentally all <’s where converted to b’s.
>
> I have now reverted this part of r976, better late than never :)
Excellent! My first bug report and fix! Most exciting. Please
forgive my enthusiasm; I only came to programming in a serious way
about a year ago. I was 'inspired' to do so by a custom program my
company rolled out that was so astonishingly awful that I felt that I
had to demonstrate that better could be done. So, a year later, with
20+ newly purchased yet well worn O'Reilly titles on my shelf, it's
nice to be able to start contributing back to projects I like.
In addition, I have found another small problem with the Python
bundle - it has to do with the way it scopes 'meta.item-
access.python' sections.
In particular, it gets confused by the end ], and does not recognize
it as 'punctuation.definition.arguments.end.python', although it
recognizes the lead [ correctly as
'punctuation.definition.arguments.start.python'. For instance, put
the following in TextMate as Python, and note the scopes/coloring of
the []'s.
pairing_name = findNextWord(packet[row])[0]
The regexes responsible are below, along with my explanation of the
problem and proposed fix:
{ name = 'meta.item-access.python';
begin = '(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*\s*\[)';
end = '(\])';
patterns = (
{ begin = '(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*
\[)';
end = '(?=\s*\[)';
patterns = ( { include = '#dotted_name'; } );
},
{ begin = '(\[)';
end = '(?=\])';
beginCaptures = { 1 = { name =
'punctuation.definition.arguments.begin.python'; }; };
endCaptures = { 1 = { name =
'punctuation.definition.arguments.end.python'; }; };
patterns = ( { include = '$base'; } );
contentName = 'meta.item-access.arguments.python';
},
The problem is that the 'meta.item-access.python' begin regex tags a
LOCATION, specifically the location of the beginning of the first
legit Python dotted name followed by a [, thus correctly allowing the
[ itself to be matched within by
'punctuation.definition.arguments.begin.python'. However, the
'meta.item-access.python' end regex tags not the LOCATION of the
end ], but the end ] itself, thus preventing
'punctuation.definition.arguments.end.python' from selecting the
end ] as it should. In addition, the regex for
'punctuation.definition.arguments.end.python', instead of selecting
the end ], selects the LOCATION followed by an end ], which gives it
no characters in its scope!
My proposed fix swaps the two; both the start and end 'meta.item-
access.python' regexes select for LOCATION, and both
'punctuation.definition.arguments.begin.python' and
'punctuation.definition.arguments.end.python' select for the actual
CHARACTERS [ and ]. The code is below, and I have tested that it
properly scopes the Python constructs now.
{ name = 'meta.item-access.python';
begin = '(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*\s*\[)';
end = '(?<=\])';
patterns = (
{ begin = '(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*
\[)';
end = '(?=\s*\[)';
patterns = ( { include = '#dotted_name'; } );
},
{ begin = '(\[)';
end = '(\])';
beginCaptures = { 1 = { name =
'punctuation.definition.arguments.begin.python'; }; };
endCaptures = { 1 = { name =
'punctuation.definition.arguments.end.python'; }; };
patterns = ( { include = '$base'; } );
contentName = 'meta.item-access.arguments.python';
},
);
},
Hope this is helpful - I am (slowly!) looking through the rest of the
Python language definition to see if there are any other glitches I
can spot. Cheers,
Nick
When connecting to a blog over SSL, various blogging commands (e.g., Fetch Post) will include "warning: peer certificate won't be verified in this SSL session" in their output. Net::HTTP generates this warning when its verify_mode hasn't been set. It then defaults to OpenSSL::SSL::VERIFY_NONE. My patch sets it explicitly to avoid the warning.
I don't work with column editing much at all, but I do instinctively
use "select, drag, option key" to copy text. But most of the time my
clicking option gets me into column select mode.
Is there a way to remap the "select column" off of option so it'll
just drag-and-copy for me?
Thanks.
Hi,
Any tips on how to change the format of a line of Ruby based on it's
content?
In particular I was wanting to try deemphasize logging lines (i.e. starting
with "logger.*") by setting the text font to a gray. Any ideas/tips would
be great. Couldn't seem to see when it would be possible to do this in the
bundle manager.
Tks
Greg
TextMate has a syntax element called "Embedded Source", which is used
for things like the lstlisting environment in LaTeX or JavaScript
code embedded in HTML. The default background color for this element
is a light blue, which is almost identical to the light blue used for
selected text. Because of the similarity, I always get confused and
think I've inadvertently selected some embedded source. I'm wondering
why there is such a similarity between these colors. Was it
deliberate (and if so, what was the reason?) or was this an oversight?
Trevor
Hey folks -
I'm trying to get up-and-running with TextMate, which I will be using
primarily for LaTeX-ing, and I'm having some troubles. I've been
using LaTeX installed via MacPorts/DarwinPorts for a few months now,
so I'd prefer to get TM working with that if possible rather than
abandoning it for MacTex (unless there is really and truly a good
reason to do so).
The main problem I'm having is that when I call the "Insert Label/
Citation Based on Current Word" command, TM spits out "The tex
binaries cannot be located!" I assume this means that I have not
properly told TM where to find my LaTeX installation, but I can't
figure out how to do so. I tried creating a PATH environment
variable equal to the output of "echo $PATH" in Terminal, but I don't
think it helped. Sorry... either I'm doing something dumb or I'm
just not unix-y enough to understand what's going on here.
Any suggestions?
Thanks very much!
Best
- Chris MacMinn
Hi - I was looking over the Python language definition, and I came
upon a regex that I don't understand - or, it might be a bug. The
regex is in the FoldingStartMarker:
<key>foldingStartMarker</key>
<string>^\s*(def|class)\s+([.a-zA-Z0-9_ b]+)\s*(\((.*)\))?\s*:|\{\s*
$|\(\s*$|\[\s*$|^\s*"""(?=.)(?!.*""")</string>
The key mysterious part is right in the first character class, which
I believe is designed to pick out the name of the class/def in question:
[.a-zA-Z0-9_ b]+
Okay, I get it up until the ' b' part. Essentially, the name of a
class or def is a series of characters that are in a-z, A-Z, 0-9, or
are '_' or '.' . What's the point of the ' b' part? Was this meant
to be '\b', signifying a word boundary? Or is there some deeper
meaning to space b that I don't understand? Please forgive if this
is not an appropriate place for this question; I am rather new (well,
completely and totally new) to the use of mailing lists.
Brilliant program, btw - it takes time to appreciate it.
Nick
Hi,
Is there a way to highlight all occurances (e.g. in yellow say) of a
particular piece of text? Say a variable name for example?
Ideally also is there a way to, once such a variable is highlighted
through-out the file, you can change it in one place and it automatically
changes it in real time in other places in the file (I know I had this in
Jbuilder).
Tks
Greg
Hi!
Now I sit at my laptop because my other computer is right now not
available, my blog is set up here exactly (at least I think so) like
at my working-computer and if I use the cat-Snippet from the blogging
bundle I get the following behaviour and error:
TextMate tries to contact the blog for fetching the items and then I
get the error
/usr/lib/ruby/1.8/xmlrpc/client.rb:403:in `call':
XMLRPC::FaultException (XMLRPC::FaultException)
from /tmp/temp_textmate.xQsjEh:27
from /tmp/temp_textmate.xQsjEh:24:in `call'
from /Users/nik/Library/Application
Support/TextMate/Support/lib/progress.rb:36:in `call_with_progress'
from /Users/nik/Library/Application
Support/TextMate/Support/lib/progress.rb:32:in `call'
from /Users/nik/Library/Application
Support/TextMate/Support/lib/progress.rb:43:in `call_with_progress'
from /Users/nik/Library/Application
Support/TextMate/Support/lib/progress.rb:40:in `dialog'
from /Users/nik/Library/Application
Support/TextMate/Support/lib/progress.rb:40:in `call_with_progress'
from /tmp/temp_textmate.xQsjEh:24
Any help appreciated
Niels
Hi,
I am trying to follow this approach in the latex-help file:
In the case where what is expected is a label, then pressing escape
will similarly offer all matching labels from the TeX document.
Depending on your naming conventions, this could for instance offer a
list of all theorems: If the labels for theorems are all of the form
thm:labelname, and you have included the colon (:) in the list of
word characters in TextMate’s preferences, then pressing escape when
the caret is right before the closing brace in \ref{thm} will offer
as completion options all labels corresponding to theorems.
If there are many matching completions, it is often more convenient
to use the pull-down-list versions of the commands, which are
triggered by ⌥⎋.
I do have ":_" (just a colon and an underscore, no quotations)in the
preference pane as Word Characters. Is this ok or do they need to be
separated / in quotations / ... ?
Neither pressing <escape> nor <escape> + <alt> while the caret is
right in front of the closing bracket in latex mode, doesn't do
anything.
Now, I looked into the bundle editor, into the latex bundle in my
installation:
1) <escape> is the key equivalent for bibdesk completion
2) <alt>+<escape> is the key equivalent for "Citation based on
Current Word / Selection" AND for "Label Based on Current Word /
Selection" --- this seems a little weird to me. Is this how it should
be originally? Or have I changed this accidently at some point?
I remember a time when hitting <escape> (I think) actually has
worked and I used "eqn:" and "fig:" for labeling and referencing
equations and figures, respectively. Should the difference between
<alt>+<escape> and <escape> only that <alt>+<escape> should offer a
pull-down list and hitting <escape> multiple times would move through
the possible choices?
Is this something that got changed over the releases (I am working
with cutting edge)? That leads me to another question: when a bundle
gets updated in the bundle repository... do those changes get updated
in each new (cutting edge) release or would I check them out and
update them as I would with any other "default" bundle?
Thanks for your help,
Claus
Hello:)
1) I know that my use of Latex is different from the majorities of
the users because I create especially packages. I need to have a
really different completion. I need for example :
newcommand
renewcommand
RequirePackage
newcounter
setcounter
stepcounter
newlength
etc..
for xkeyval
define@cmdkey
define@boolkey
presetkeys....
for ifthen
ifthenelsee etc....
etc...
I would like to know the good way to obtain this
Is it necessary that I modify LateXCommandCompletions.rb ?
2) But I do not understand why in the LateXCommandCompletions.rb,
there are words like pi, Pi, lim etc ... words with 2 or 3 letters ?
Which is the interest to complement these words?
greetints alain