Hi, I was hoping someone could point out what I'm doing wrong.
I've customized my ActionScript lanugage definition to be "Javadoc aware."
I'm having trouble setting up the foldings regex (being an ActionScripter, I
don't regularly use regex, so maybe that's part of the problem. Can't wait
for AS3, though...).
Here's what I have:
foldingStartMarker = '(/\*|\{\s*$|\[\s*$|\(\s*$)';
foldingStopMarker = '(\*/|^\s*\]|^\s*\}|^\s*\))';
// and later...
{ name = 'comment.javadoc.actionscript';
begin = '/\*\*';
end = '\*/';
},
And here's what happens. I ype "/**". At this point the language
definition knows that I'm in comment.javadoc. I get a downward-pointing
arrow for the top of the code fold area. I've also get snippets set up to
expand /** into
/**
*
*/
and return the caret to the middle line. There is a single space at the
front of the bottom two lines. (I also have it set up to replace a return
press with a return and an asterisk, but that's beside the point) Now, I
don't get the upward-pointing arrow for the bottom of the code fold area. I
just discovered that the space seems to be throwing it off. If I go back to
the closing of the javadoc comment, and remove that initial space, I get
code folding.
So I tried modifying the foldingStopMarker, but with no success. Is there
an easy way to do this? Am I being a moron and doing this completely the
wrong way? I've tried a number of regex's:
foldingStopMarker = '(^\s*\*/|^\s*\]|^\s*\}|^\s*\))';
foldingStopMarker = '(\s*\*/|^\s*\]|^\s*\}|^\s*\))';
foldingStopMarker = '( \*/|^\s*\]|^\s*\}|^\s*\))';
foldingStopMarker = '(^[ \t]*\*/|^\s*\]|^\s*\}|^\s*\))';
And many variations thereof, but with no luck. I may be just
misunderstanding how the foldingStopMarker works in the first place, but if
anyone can point me in the right direction I'd be very appreciative. I like
my asterisk's to line up, and I like my code folding.
Thanks,
Dru
When I run a unit test the results are displayed poorly:
Loaded suite /Applications/TextMate.app/Contents/SharedSupport/
Bundles/Ruby.tmbundle/Support/tmruby Started .F Finished in 0.008257
seconds. 1) Failure: test_outOfRange(TestIntTypes) [/Users/dave/Chips/
DES/bitsteam/decoder/tests/tc_intTypes.rb:40]: exception expected but
was Class: Message: <"uint4 t_uint4 has value: -1 (out of expected
range)"> ---Backtrace--- (eval):4:in `t_uint4=' /Users/dave/Chips/DES/
bitsteam/decoder/tests/tc_intTypes.rb:40:in `test_outOfRange' /Users/
dave/Chips/DES/bitsteam/decoder/tests/tc_intTypes.rb:40:in
`test_outOfRange' --------------- 2 tests, 12 assertions, 1 failures,
0 errors
- it looks like the \n are being ignored. I run the tests by using
command R in the test file.
When I run from the terminal I get:
Loaded suite tc_intTypes
Started
.F
Finished in 0.015976 seconds.
1) Failure:
test_outOfRange(TestIntTypes) [tc_intTypes.rb:40]:
<SyntaxElementError> exception expected but was
Class: <RuntimeError>
Message: <"uint4 t_uint4 has value: -1 (out of expected range)">
---Backtrace---
(eval):4:in `t_uint4='
tc_intTypes.rb:40:in `test_outOfRange'
tc_intTypes.rb:40:in `test_outOfRange'
---------------
2 tests, 12 assertions, 1 failures, 0 errors
Do I have something configured wrong?
Thanks,
Dave.
When I validate a syntax, textmate send me the following message:
Please install PyChecker or PyFlakes for more extensive code checking.
Syntax Errors...
Only say the line of the error. But not which is this.
I already downloaded pychecker and pyflakes, but I didn't find the
way to install in textmate to cheking my code.
Anybody knows how to install this.
On Jun 21, 2006, at 3:18 AM, textmate-request(a)lists.macromates.com
wrote:
> Mailing list subscription confirmation notice for mailing list
> textmate
>
> We have received a request from 201.124.204.149 for subscription of
> your email address, "simonglez(a)yahoo.com.mx", to the
> textmate(a)lists.macromates.com mailing list. To confirm that you want
> to be added to this mailing list, simply reply to this message,
> keeping the Subject: header intact. Or visit this web page:
>
> http://lists.macromates.com/mailman/confirm/textmate/
> 184c6a1473362f87febad79d52838a093629e38f
>
>
> Or include the following line -- and only the following line -- in a
> message to textmate-request(a)lists.macromates.com:
>
> confirm 184c6a1473362f87febad79d52838a093629e38f
>
> Note that simply sending a `reply' to this message should work from
> most mail readers, since that usually leaves the Subject: line in the
> right form (additional "Re:" text in the Subject: is okay).
>
> If you do not wish to be subscribed to this list, please simply
> disregard this message. If you think you are being maliciously
> subscribed to the list, or have any other questions, send them to
> textmate-owner(a)lists.macromates.com.
>
I've just seen the TM screen cast on blogging, so I thought I'd try
the new tool. I've configured so that it has my WP blog URL, when I
try to fetch the Posts I get:
/usr/lib/ruby/1.8/net/protocol.rb:21:in `require': No such file to
load -- socket (LoadError)
from /usr/lib/ruby/1.8/net/protocol.rb:21
from /usr/lib/ruby/1.8/net/http.rb:28:in `require'
from /usr/lib/ruby/1.8/net/http.rb:28
from /usr/lib/ruby/1.8/xmlrpc/client.rb:281:in `require'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:281
from /Applications/Tools/TextMate/TextMate.app/Contents/
SharedSupport/Bundles/Blogging.tmbundle/Support/lib/metaweblog.rb:
1:in `require'
from /Applications/Tools/TextMate/TextMate.app/Contents/
SharedSupport/Bundles/Blogging.tmbundle/Support/lib/metaweblog.rb:1
from /Applications/Tools/TextMate/TextMate.app/Contents/
SharedSupport/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:3:in
`require'
from /Applications/Tools/TextMate/TextMate.app/Contents/
SharedSupport/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:3
from /tmp/temp_textmate.8vs4g5:2:in `require'
from /tmp/temp_textmate.8vs4g5:2
Any suggestions? many thanks
regards, Jonathan
hi,
I am trying to convert Markdown syntax to LaTex, using MultiMarkdown in
TextMate via the Markdown bundle menu, and am getting a parsing error.
With the following simple Markdown example:
> This is a test.
>
> This is another pp.
..I get exactly what I expect if I use MultiMarkdown (via the bundle
dropdown menu) to convert this text to HTML or to RTF, and everything works
fine. However, when I try to convert the text above to LaTex (which is my
ultimate goal here), I get the following error:
> -:3: parser error : Extra content at the end of the document
> <p>This is another pp.</p>
> ^
> unable to parse -
>
Various little tweaks like adding/removing extra newlines at the end (or
adding a section heading at the beginning) made no difference.
I am new to TextMate/MultiMarkdown -- there may be some step I'm skipping or
something obvious I'm doing wrong?
thanks,
Amy
Hi,
I am a BBEdit convert. I must be doing something wrong when I select
text and then expect to move it by mousing-down on the new selection
and moving the cursor. Is this posted in a AQ somewhere?
Thank you!
Art
It seems I only ever speak up to complain. :) So, let me assure you:
I love TextMate beyond all reason.
And now, the bug:
When I run any of the blogging scripts, such as "Fetch Post," I get
this prepended to the file:
> 2006-06-20 17:54:11.197 CocoaDialog[24277] [Amendment] Loaded
> 2006-06-20 17:54:11.575 CocoaDialog[24277] CFLog (21): Error
> loading /Volumes/Data/Users/username/Library/QuickTime/DivX
> 5.component/Contents/MacOS/DivX 5: error code 4, error number 0
> (Library not loaded: /Library/Application Support/DivXNetworks/
> liblame3.92.dylib
> Referenced from: /Volumes/Data/Users/username/Library/QuickTime/
> DivX 5.component/Contents/MacOS/DivX 5
> Reason: image not found)
> 2006-06-20 17:54:11.579 CocoaDialog[24277] CFLog (21): Error
> loading /Volumes/Data/Users/username/Library/QuickTime/DivX
> 5.component/Contents/MacOS/DivX 5: error code 4, error number 0
> (Library not loaded: /Library/Application Support/DivXNetworks/
> liblame3.92.dylib
> Referenced from: /Volumes/Data/Users/username/Library/QuickTime/
> DivX 5.component/Contents/MacOS/DivX 5
> Reason: image not found)
> 2006-06-20 17:54:16.685 CocoaDialog[24290] [Amendment] Loaded
> 2006-06-20 17:54:17.083 CocoaDialog[24290] CFLog (21): Error
> loading /Volumes/Data/Users/username/Library/QuickTime/DivX
> 5.component/Contents/MacOS/DivX 5: error code 4, error number 0
> (Library not loaded: /Library/Application Support/DivXNetworks/
> liblame3.92.dylib
> Referenced from: /Volumes/Data/Users/username/Library/QuickTime/
> DivX 5.component/Contents/MacOS/DivX 5
> Reason: image not found)
> 2006-06-20 17:54:17.103 CocoaDialog[24290] CFLog (21): Error
> loading /Volumes/Data/Users/username/Library/QuickTime/DivX
> 5.component/Contents/MacOS/DivX 5: error code 4, error number 0
> (Library not loaded: /Library/Application Support/DivXNetworks/
> liblame3.92.dylib
> Referenced from: /Volumes/Data/Users/username/Library/QuickTime/
> DivX 5.component/Contents/MacOS/DivX 5
> Reason: image not found)
(Note: I have my home folder in a separate volume named "Data", with
NetInfo edited to point at the proper path; until now, this hasn't
caused a problem. The exact path is munged for privacy purposes.)
This all gets prepended to the text file when I post, as well. But
_not_ into the blog post itself, for which I am grateful. :)
When I drag an image into the blog post, I get this:
> 2006-06-20 18:00:44.946 CocoaDialog[24722] [Amendment] Loaded
> ![Picture 1](http://metacarpal.net/blog/wp-content/uploads/2006/06/
> Picture-1.png)
My initial guess is that some kind of debugging/logging thing is
tripping me up. But who knows?
I'm running today's bleeding edge build.
Can anyone help? Besides this minor inconvenience, this is a dream
come true.
--
Josh DiMauro
josh(a)metacarpal.net
http://blog.metacarpal.net
I just watched the fantastic screencast and got an immense desire to
try it out. Alas, when I try to fetch posts I get this:
/usr/lib/ruby/1.8/xmlrpc/client.rb:535:in `do_rpc': HTTP-Error: 404
(RuntimeError)
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 /Users/haris/Library/Application Support/TextMate/Bundles/
Blogging.tmbundle/Support/lib/metaweblog.rb:31:in `getRecentPosts'
from /Users/haris/Library/Application Support/TextMate/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:542:in `fetch'
from /Users/haris/Library/Application Support/TextMate/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:541:in `popen'
from /Users/haris/Library/Application Support/TextMate/Support/lib/
progress.rb:11:in `call_with_progress'
from /Users/haris/Library/Application Support/TextMate/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:541:in `fetch'
from /tmp/temp_textmate.Eq92Lq:3
Any thoughts on how to troubleshoot this?
Haris
Never really use the "Paste Line to Paste Bin" command, but after
noticing the blog entry (and how much it's improved lately) I figured
I'd give it a shot. Not working quite right, though--it looks like
something is appending "1" to the URL for the paste.
I highlight some text, select the command, and whether I choose "Copy
to Clipboard" or "Open in Browser," I get the same URL: <http://
pastie.caboo.se/15121>, rather than the correct <http://
pastie.caboo.se/1512>.
Any ideas?
--
Chris Biagini
http://assortedgeekery.com/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Just a quick note before I head out on a camping trip. I have added
rudimentary support for user-defined tab commands in the GTD bundle.
To use them, set up the contexts.gtd file as before, and them enter
the command as:
xx @@ [tab]
Where xx is the user -defined trigger and @@ is the GTD tab trigger.
As always, please send me feedback. Thanks.
Alaskamike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFEl06Q4oDM7Rgs0h0RApixAJ458N8mcw0eZUbccjj8Gb5HUjQJTQCaA2Ah
kGKhvWlsmFjrCWZoWcY3Bxo=
=yU1F
-----END PGP SIGNATURE-----