simongregory / actionscript3-tmbundle

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

LucasDupin AutoCompletion issue. .swc files with capitalized names cause runtime error. #26

Open kristoferjoseph opened 13 years ago

kristoferjoseph commented 13 years ago

When a swc has a capitalized name as in Foo.swc the parser assumes it is a directory to look into instead of a swc which causes a runtime error.

simongregory commented 13 years ago

Recreated, with the following stack trace:

/Users/simon/Library/Application Support/TextMate/Bundles/ActionScript 3.tmbundle/Support/lib/fm/as3project.rb:288:in `open'
/Users/simon/Library/Application Support/TextMate/Bundles/ActionScript 3.tmbundle/Support/lib/fm/as3project.rb:288:in `entries'
/Users/simon/Library/Application Support/TextMate/Bundles/ActionScript 3.tmbundle/Support/lib/fm/as3project.rb:288:in `dump_swcs'
/Users/simon/Library/Application Support/TextMate/Bundles/ActionScript 3.tmbundle/Support/lib/fm/as3project.rb:277:in `each'
/Users/simon/Library/Application Support/TextMate/Bundles/ActionScript 3.tmbundle/Support/lib/fm/as3project.rb:277:in `dump_swcs'
/Users/simon/Library/Application Support/TextMate/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/class_parser.rb:555:in `create_src_list'
/Users/simon/Library/Application Support/TextMate/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/class_parser.rb:76:in `initialize'
/Users/simon/Library/Application Support/TextMate/Bundles/ActionScript 3.tmbundle/Support/bin/complete:16:in `new'
/Users/simon/Library/Application Support/TextMate/Bundles/ActionScript 3.tmbundle/Support/bin/complete:16
kristoferjoseph commented 13 years ago

There seem to be some other run time errors around swc naming. I will add some tests for the cases I am seeing.