simongregory / actionscript3-tmbundle

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

Support 'Project Information' shell variables #20

Closed cynicaljoy closed 13 years ago

cynicaljoy commented 13 years ago

It would be awesome if you could support shell variables so that per project users could specify a shell variable to be used for their 'source path' so that auto completion could support their project classes.

simongregory commented 13 years ago

Project classes will be used by the autocompletion system. A saved tmproj file is needed to indicate the project root directory, then the values found in TM_AS3_USUAL_SRC_DIRS are used to identify the base directories containing source files. By default these are src, source, test, lib, AS3Lib.

cynicaljoy commented 13 years ago

ok well I finally got back to attempting to get this to work with my project type, I created a demo project and took a screenshot of what is happening for me.

http://cl.ly/48zQ

I created the tmproj file and added a property (as I believe you were instructing above) but when I attempt to import my class (com.demo.ui.BasicSprite) the class path that the bundle is attempting to load is: classes.com.demo.ui.BasicScript, how do I correct this?

Thanks!

cynicaljoy commented 13 years ago

I also tried to go into the ./Actionscript 3.tmbundle/Preferences/Settings.tmPreferences file and over-ride the 'src' with 'src/classes' but same result.

cynicaljoy commented 13 years ago

Never mind, I think I was editing the wrong bundle because I modified the TM_AS3_USUAL_SRC_DIRS value by opening the Bundle Editor and it works as expected. Thanks!

simongregory commented 13 years ago

Cool. Glad you found the solution.