Hi
I'm just starting using TextMate and at the same time starting to learn Flex/ActionScript 3. I've got a project that I was previously working on in FlexBuilder, and I have managed to get that to build and run through TextMate. I can open mxml files and make changes absolutely fine there, but if I go into a .as file and try to make any sort of alteration then TextMate hangs and I have to Force Quit.
Anyone seen this before, or have an idea?
Cheers L
I've not had that happen here, and as it's on any .as file it's odd. You could try changing the file extensions to .txt to see if the language grammar is to blame.
Which bundle are you using - have you checked out the ActionScript 3 and Flex bundles from the review branch? Or are you using the ActionScript bundle?
Cheers, Simon
On 24 May 2008, at 11:52, Lee Henson wrote:
Hi
I'm just starting using TextMate and at the same time starting to learn Flex/ActionScript 3. I've got a project that I was previously working on in FlexBuilder, and I have managed to get that to build and run through TextMate. I can open mxml files and make changes absolutely fine there, but if I go into a .as file and try to make any sort of alteration then TextMate hangs and I have to Force Quit.
Anyone seen this before, or have an idea?
Cheers L -- View this message in context: http://www.nabble.com/TextMate-hangs-when-editing-an-ActionScript3-file-tp17... Sent from the textmate users mailing list archive at Nabble.com.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Hi
Simon Gregory wrote:
I've not had that happen here, and as it's on any .as file it's odd. You could try changing the file extensions to .txt to see if the language grammar is to blame.
Yeah, txt files do not cause a problem and mxml files are fine too. So far, it appears to only be as files.
Simon Gregory wrote:
Which bundle are you using - have you checked out the ActionScript 3 and Flex bundles from the review branch? Or are you using the ActionScript bundle?
I have both the AS3 and the Flex review bundles, and both are up to date.
Something that might be relevant: I have noticed that the colourization of the code inside the package {} declaration is not as you would expect. All the text is white, as if it has lost track of what file type it is working on. I have also seen similar in my mxml files, within CDATA blocks. The ]]> closing CDATA tag doesn't appear to be spotted, as the colourization seems to suggest that the CDATA block continues until the end of the the file.
I have had a brief look at the language parser in the bundle editor, but I can't see any obvious problems.
On May 25, 2008, at 11:39 AM, Lee Henson wrote:
I've not had that happen here, and as it's on any .as file it's odd. You could try changing the file extensions to .txt to see if the language grammar is to blame.
Yeah, txt files do not cause a problem and mxml files are fine too. So far, it appears to only be as files.
This would likely been a recursion happening in the grammar then, if you can pastie[1] the offending code should be able to tell what is causing it.
[1]: Paste from TextMate using ⌘A (select all), ⌃⌘T (select bundle item), enter ‘paste’ (find the action), end with ↩ (return) — this will paste it online and allow you to post the link here.
http://pastie.textmate.org/private/pdc7ncce9weyg2myz8uqba Hangs TextMate http://pastie.textmate.org/private/ecrerngickkuhu2c3dsyjq CDATA end block not being spotted
Incidentally, I couldn't use the Pastie action in TextMate for the "Hangs TextMate" link below, it...err...hung textmate again. ;)
Lee Henson wrote:
http://pastie.textmate.org/private/pdc7ncce9weyg2myz8uqba Hangs TextMate http://pastie.textmate.org/private/ecrerngickkuhu2c3dsyjq CDATA end block not being spotted
http://pastie.textmate.org/private/pdc7ncce9weyg2myz8uqba Hangs TextMate
I can't replicate the hang, but looking at the link you're not using the ActionScript 3 language - hence the missing package color. As there's no way for TextMate to know whether it should use AS3 or AS2 it picks the first in the list - AS2. There's two ways to change this, the language pop-up menu in the bottom of the edit window, or via ctrl- alt-shift-a.
http://pastie.textmate.org/private/ecrerngickkuhu2c3dsyjq CDATA end block not being spotted
Again, I'm not having problems here.
It's a long shot but have you downloaded and installed my ActionScript Utilities bundle? There's a language file in that I was using to test ideas with. I've recently deleted it but the changes may not be in the zip that's on my blog.
Cheers, Simon
Simon Gregory wrote:
It's a long shot but have you downloaded and installed my ActionScript Utilities bundle?
It might have been a long shot, but it was right on the money. I deleted it and now everything is working as I would expect. Cheers!