August 1, 2010

Autocomplete not working in the Flex Bundle for Textmate?

I am being very hard headed and determined that I am going to give Textmate a solid try for my actionscript and flex projects. Work on the bundle has been a little lacking but what has been developed so far is pretty great.

I have run into some slight issues but able to figure them out and get things set up pretty well and I have already dug in and started customizing the snippets to suit my needs.

One thing that I have not been able to fix, figure out or find a straight answer for is regarding working with MXML files. AutoComplete for Actionscript files seems to work great but I don’t seem to get the same result when I am editing Actionscript inside the script block in a MXML file.

I am hoping that someone that uses Textmate all the time could through some suggestions my way to help track down the issue. If I am in the actionscript code block and hit (option + esc) I get “no completion available” message.

Please feel free to join the discussion if you have any suggestions stackoverflow.com, or by all means leave a commit here in this post if you like.

Posted via email from Matthew Sloan Wallace

———————————-update————————————–

So I posted this “issue” on the textmate mailing list and I heard back from the creator of the flex bundle. Simon basically told me that he had not enabled autocomplete feature to the flex mxml script blocks yet. This is good to know that my shit wasn’t broke and he offered the following solution so that auto complete will work in mxml script blocks.

There’s no issues, I just haven’t got around to supporting autocompletion from within script blocks embedded in mxml. Although it seems to be pretty stable if you just go ahead and add the right scope (text.xml.mxml source.actionscript.3.embedded.mxml) to the command, as I have done in my dev branch:

http://github.com/simongregory/actionscript3-tmbundle/blob/sg/Commands/Auto%20Complete.tmCommand

You can do the same thing with the auto import command and it’ll add the import to the script block.

Cheers, Simon

July 30, 2007

Installing AS3 and Flex Bundle for Textmate

TextMate Bundle Editor

I am totally not a coding guru just yet, but I have my eyes on the prise and I hope to one day know my stuff, but for now I will admit that I have a little trouble understanding some simple tasks that most programmers would not have any trouble with. We all know and love Textmate. The great text editor for the Mac. Heck I even use it to write my blog posts. You have to check out the blogging bundle if you have not used it for that it is great.

As soon as I got Textmate I started using it for all my actionscript. At the time the bundle was only for AS2. Now that I am starting to dig into AS3 and Flex it would be great to start coding using this editor. It launches way faster than Flex Builder or Eclips. There are some draw backs. The biggest being that you do not get the code hinting quite as much as you do with Flex Builder, but still it is a great tool to work in. In the next few steps I will show you how to install SVN (subversion) client for your Mac so you can utilize all the bundles and updates that are currently being developed for Textmate and most importantly there is an AS3 / Flex bundle that you can download.

Read the rest of this entry »