simongregory / actionscript3-tmbundle

ActionScript 3 TextMate Bundle
http://blog.simongregory.com
MIT License
118 stars 46 forks source link

Error on Run command #17

Closed jantzeno closed 13 years ago

jantzeno commented 14 years ago

Great bundle, exactly what I was looking for. Thank you.

I receive the following error when trying to run (cmd + r):

/Users/jantzen/Library/Application Support/TextMate/Support/lib/tm/process.rb:169:in fcntl': Inappropriate ioctl for device (Errno::ENOTTY) from /Users/jantzen/Library/Application Support/TextMate/Support/lib/tm/process.rb:169:inrun' from /Users/jantzen/Library/Application Support/TextMate/Bundles/ActionScript 3.tmbundle/Support/bin/run.rb:33:in `run' from /Users/jantzen/Library/Application Support/TextMate/Bundles/ActionScript 3.tmbundle/Support/bin/run.rb:49

I have checked out the support folder via svn as the documentation says to. My project is laid out as follows:

Project_Folder -bin -Main.swf -src -Main.as

I have the following project specific environment variables set: TM_FLEX_FILE_SPECS = src/Main.as TM_FLEX_OUTPUT = bin/Main.swf

I can build the swf without any problems and the swf runs in flash player when opened with terminal via "open Main.swf". The run window in TM opens and says "Opening...Main.swf" with the error at the top of the window, but nothing happens.

Am I missing an environment variable or miss using one? This is really more for convenience because I can always open the swf from terminal or finder.

Just to check I created a blank project from the template and it builds, but I get this error when trying to run:

/Users/jantzen/Library/Application Support/TextMate/Support/lib/tm/process.rb:169:in fcntl': Inappropriate ioctl for device (Errno::ENOTTY) from /Users/jantzen/Library/Application Support/TextMate/Support/lib/tm/process.rb:169:inrun' from /Users/jantzen/Library/Application Support/TextMate/Bundles/ActionScript 3.tmbundle/Support/bin/run.rb:33:in `run' from /Users/jantzen/Library/Application Support/TextMate/Bundles/ActionScript 3.tmbundle/Support/bin/run.rb:47

jantzeno commented 14 years ago

My environment variables are TM_FLEX_FILE_SPECS and TM_FLEX_OUTPUT. For some reason they got cutout.

simongregory commented 14 years ago

With your conventional project folder layout you shouldn't need to specify the environmental variables. I can't replicate the problem - and to make sure I created a project in the same way. I'm also using the r11949 of the TM support folder.

Is there any chance that the 'open' command line tool is not on your path?

jantzeno commented 14 years ago

I am running osx 10.6 in 64 bit mode. I figured out yesterday that when I switch to 32 bit mode TextMate behaves as expected and the bundle builds and runs the swf. Again thanks for putting this bundle together.