|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
r11568 (ActionScript 3)• Compressed and rewritten Build commands into a single command.
This implementation is now written in ruby and should behave in the same way as the previous Build command. Additionally - when running a build using fcsh and the Terminal the Terminal is activated. To suppress this behavior set TM_FLEX_BACKGROUND_TERMINAL to anything. • 'Intelligent' Run command. Now inspects TM_FLEX_RUN_FILE to see if it's executable, if it is then it runs it. Otherwise it uses `open` as open should correctly identify and open the file using the users default application (ie Safari for a html file, SA Flash Player for a swf). When TM_FLEX_RUN_FILE isn't available a little educated guesswork is used to try an identify a compiled swf to open that matches the current file name. • Tooltip help is now available within flex config files (on ctrl-h). • Spring cleaning for templates and snippets - making sure they're conforming to standards, trimming whitespace etc. • Auto Completion and Build commands abstracted to the bin to try and avoid path problems when the bundle finds itself in the 'Pristine Copy' directory. • Help updated to reflect the changes above. • Added a 'Subclass' drag command. If you drag another class into the current document you'll be presented with options to 'include', 'implement interface' or 'subclass'. • Class Template (tab triggered on cla) now searches across bundles for templates. By default the templates found in the ActionScript 3 and Flex bundles are included. This is easy to expand by adding the names of alternative bundles you want included to the env var TM_AS3_TEMPLATE_BUNDLES (see Settings.tmPreference). Any template which defines holds a 'class.as' file will be included. • All fcsh/mxmlc output parsers now use an instance of MxmlcExhaust. • When detecting if a class has already been imported the regex now only matches full names. Previously partial class names were being picked up, so the UI could report a class was imported when it wasn't. Closes #1 Changed: U trunk/Review/Bundles/ActionScript 3.tmbundle/Commands/Add Import.tmCommand U trunk/Review/Bundles/ActionScript 3.tmbundle/Commands/Auto Complete.tmCommand D trunk/Review/Bundles/ActionScript 3.tmbundle/Commands/Build (ant).tmCommand D trunk/Review/Bundles/ActionScript 3.tmbundle/Commands/Build (custom).tmCommand D trunk/Review/Bundles/ActionScript 3.tmbundle/Commands/Build (mxmlc).tmCommand U trunk/Review/Bundles/ActionScript 3.tmbundle/Commands/Build.tmCommand U trunk/Review/Bundles/ActionScript 3.tmbundle/Commands/Class Templates.tmCommand D trunk/Review/Bundles/ActionScript 3.tmbundle/Commands/Compile Current Class___.tmCommand D trunk/Review/Bundles/ActionScript 3.tmbundle/Commands/Format fsch Terminal Output .tmCommand U trunk/Review/Bundles/ActionScript 3.tmbundle/Commands/Metadata.tmCommand U trunk/Review/Bundles/ActionScript 3.tmbundle/Commands/Run Project___.tmCommand U trunk/Review/Bundles/ActionScript 3.tmbundle/Commands/Search AS3 Language Reference.tmCommand D trunk/Review/Bundles/ActionScript 3.tmbundle/Commands/Simple Getter:Setter.tmCommand U trunk/Review/Bundles/ActionScript 3.tmbundle/Commands/asdoc.tmCommand U trunk/Review/Bundles/ActionScript 3.tmbundle/Commands/package.tmCommand A trunk/Review/Bundles/ActionScript 3.tmbundle/DragCommands/Subclass.tmDragCommand U trunk/Review/Bundles/ActionScript 3.tmbundle/DragCommands/implement interface.tmDragCommand U trunk/Review/Bundles/ActionScript 3.tmbundle/DragCommands/import.tmDragCommand U trunk/Review/Bundles/ActionScript 3.tmbundle/Preferences/Settings.tmPreferences U trunk/Review/Bundles/ActionScript 3.tmbundle/Snippets/asdoc-newline.tmSnippet U trunk/Review/Bundles/ActionScript 3.tmbundle/Snippets/if.tmSnippet U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/bin/as3_template_parser.rb A trunk/Review/Bundles/ActionScript 3.tmbundle/Support/bin/build.rb D trunk/Review/Bundles/ActionScript 3.tmbundle/Support/bin/build_with_fcsh.sh A trunk/Review/Bundles/ActionScript 3.tmbundle/Support/bin/complete.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/bin/parse_fcsh_output.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/bin/parse_mxmlc_out.rb A trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/add_lib.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/as3/completions/completions_list.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/class_parser.rb A trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/config.rb A trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/manifest.rb A trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/mxml.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/property_inspector.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/swf.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/as3/templates/model/class_doc.erb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/as3/templates/model/doc.erb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/as3/templates/snippet_builder.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/as3/templates/snippet_controller.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/as3/templates/snippet_provider.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/as3/tools/source_tools.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/flex_env.rb D trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/flex_utils.sh U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/fm/asd.rb A trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/fm/bundle_tool.rb A trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/fm/compiler.rb A trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/fm/fcd.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/fm/flex_mate.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/fm/log.rb A trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/fm/mxmlc_exhaust.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/fm/sdk.rb A trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/fm/template_machine.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Support/lib/help.rb U trunk/Review/Bundles/ActionScript 3.tmbundle/Syntaxes/ActionScript 3.tmLanguage U trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/Class.tmTemplate/class.as U trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/Class.tmTemplate/info.plist U trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/Error Subclass.tmTemplate/class.as U trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/Error Subclass.tmTemplate/info.plist U trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/Event Subclass.tmTemplate/class.as U trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/Event Subclass.tmTemplate/info.plist U trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/EventDispatcher Subclass.tmTemplate/class.as U trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/Interface.tmTemplate/class.as U trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/Project - Actionscript 3.tmTemplate/Project.as U trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/Project - Actionscript 3.tmTemplate/Project.tmproj.xml U trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/Project - Actionscript 3.tmTemplate/_create_as3_project.sh D trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/Project - Actionscript 3.tmTemplate/compile.sh U trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/Singleton.tmTemplate/class.as U trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/Singleton.tmTemplate/info.plist U trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/Sprite Subclass.tmTemplate/class.as U trunk/Review/Bundles/ActionScript 3.tmbundle/Templates/Sprite Subclass.tmTemplate/info.plist U trunk/Review/Bundles/ActionScript 3.tmbundle/help.mdown U trunk/Review/Bundles/ActionScript 3.tmbundle/info.plist _______________________________________________ textmate-dev mailing list textmate-dev@... http://lists.macromates.com/listinfo/textmate-dev |
|
|
Re: r11568 (ActionScript 3)After updating to this revision ( my last one was one month old) my Build command won't work probaply.
Hitting Build gives me the message down below. I have set my Shell Variable to /Developer/SDKs/flex_sdk_3 I was able to build before the update. It seems that textmate isn't looking in the place of the Shell Variable or did I get something wrong? Please help and thanks for your constant and great work on this bundle! -Marek /bin/bash: /Users/marek/Library/Application Support/TextMate/Pristine Copy/Bundles/ActionScript 3.tmbundle/Support/lib/flex_utils.sh: No such file or directory /bin/bash: line 2: cd_to_tmproj_root: command not found /bin/bash: line 3: try_to_add_flex_bin_to_PATH: command not found /bin/bash: line 11: require_file: command not found /bin/bash: line 12: require_var: command not found Couldn't find mxmlc If you have installed mxmlc, then you need to either update your PATH or set the TM_FLEX_PATH shell variable (please see bundle help). Locations searched: /Users/marek/Library/Application Support/TextMate/Pristine Copy/Bundles/ActionScript 3.tmbundle/Support/bin /Users/marek/Library/Application Support/TextMate/Pristine Copy/Support/bin/CocoaDialog.app/Contents/MacOS /opt/local/bin /opt/local/sbin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/X11/bin /usr/local/git/bin /Users/marek/Library/Application Support/TextMate/Pristine Copy/Support/bin |
|
|
Re: r11568 (ActionScript 3)Hi Simon,
:) I fixed the problem above, but I have another now: -What do I have to change so that the RUN command runs my .swf file in Flash Player and not in the browser? And a workflow problem: It's good that the Terminal is brought to front, but Textmate should be brought to front after that, so one haven't to switch back manually to textmate. Moreover, it's annoying that the “Run Command“ window opens and I have to manually close it everytime I tested my Build. Is it possible to make a Run command without the “Run Command“ window opens (as it was before). Thanks and best regards -Marek |
|
|
Re: r11568 (ActionScript 3)> -What do I have to change so that the RUN command runs my .swf file
> in Flash > Player and not in the browser? Where TM_FLEX_RUN_FILE resolves to a non executable file the run command delegates the task to 'open'. Open should use your default settings (as configured via the Finders file info window). > And a workflow problem: > It's good that the Terminal is brought to front, but Textmate should > be > brought to front after that, so one haven't to switch back manually to > textmate. I had a couple of requests to bring the terminal to the front so I figured I'd try it - the only problem is that I've never found a way to reliably watch what's going on in the terminal, so cant switch back to TM. To get the old behavior you need to set TM_FLEX_BACKGROUND_TERMINAL to anything. > Moreover, it's annoying that the “Run Command“ window opens and I > have to > manually close it everytime I tested my Build. Is it possible to > make a Run > command without the “Run Command“ window opens (as it was before). It's possible do this by creating a custom run script, making it executable, and setting it to TM_FLEX_RUN_FILE. You can then get it to close the window automatically using javascript: '<script>var howLong = 5000;t = null;function closeMe(){t = setTimeout("self.close()",howLong);}</script>' Cheers, Simon _______________________________________________ textmate-dev mailing list textmate-dev@... http://lists.macromates.com/listinfo/textmate-dev |
|
|
Re: r11568 (ActionScript 3)I'm not a fan of the new unified Build command you've added. I've been using the Build (mxmlc) option for a long time now and find it better for a few reasons:
- It pops up an internal TextMate window with compile results. I find this cleaner than opening another Terminal window. - It did a better job of finding that where my .bash_profile specifies to use mxmlc. This current script seems to find my Flex Builder's 2.0.1 SDK and run with that. - Customizing project-level build processes could be done before using TM_ prefixed variables. Or, one could edit the Build (mxmlc) command directly in the bundle editor. Instead, build.rb serves as the build script for all TextMate projects. And to edit this, you'll need to 'Show Package Contents' and dig into the bundle itself - the bundle editor does not expose it for you. - This one-size-fits-all build script specifies the following switches: mxmlc_args="mxmlc -o=#{flex_output} -file-specs=#{file_specs}" `osascript -e 'tell application "Terminal" to activate'` unless ENV['TM_FLEX_BACKGROUND_TERMINAL'] `#{e_sh ENV['TM_BUNDLE_SUPPORT']}/lib/fcsh_terminal \"#{fcsh}\" \"#{mxmlc_args}\" >/dev/null;` This is ineffective because there are some projects where I may want to add more switches than just -o or -file-specs, without relying on the AppName-config.xml to do so. Altogether I don't see the problem this change was trying to solve. What do you think about keeping the previous build scripts in there for legacy support? P.S. A while back I'd written a blog post on how to set up text mate to compile with the previous scripts here: http://bcdef.org/2008/05/30/setting-up-textmate-for-swf-compiling-and-terminal-trace-output/ . Unfortunately this will no longer work with the changes of this revision.
|
|
|
Re: r11568 (ActionScript 3)I'm not a fan of the new unified Build command you've added. I've been using the Build (mxmlc) option for a long time now and find it better for a few reasons:
- It pops up an internal TextMate window with compile results. I find this cleaner than opening another Terminal window. - It did a better job of finding that where my .bash_profile specifies to use mxmlc. This current script seems to find my Flex Builder's 2.0.1 SDK and run with that. - Customizing project-level build processes could be done before using TM_ prefixed variables. Or, one could edit the Build (mxmlc) command directly in the bundle editor. Instead, build.rb serves as the build script for all TextMate projects. And to edit this, you'll need to 'Show Package Contents' and dig into the bundle itself - the bundle editor does not expose it for you. - This one-size-fits-all build script specifies the following switches: mxmlc_args="mxmlc -o=#{flex_output} -file-specs=#{file_specs}" `osascript -e 'tell application "Terminal" to activate'` unless ENV['TM_FLEX_BACKGROUND_TERMINAL'] `#{e_sh ENV['TM_BUNDLE_SUPPORT']}/lib/fcsh_terminal \"#{fcsh}\" \"#{mxmlc_args}\" >/dev/null;` This is ineffective because there are some projects where I may want to add more switches than just -o or -file-specs, without relying on the AppName-config.xml to do so. Altogether I don't see the problem this change was trying to solve. What do you think about keeping the previous build scripts in there for legacy support? P.S. A while back I'd written a blog post on how to set up text mate to compile with the previous scripts here: http://bcdef.org/2008/05/30/setting-up-textmate-for-swf-compiling-and-terminal-trace-output/ . Unfortunately this will no longer work with the changes of this revision.
|
| Free embeddable forum powered by Nabble | Forum Help |