Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Auto Complete Exception #10

Open
mokkun opened this issue Mar 12, 2010 · 6 comments
Open

Auto Complete Exception #10

mokkun opened this issue Mar 12, 2010 · 6 comments

Comments

@mokkun
Copy link

mokkun commented Mar 12, 2010

I'm getting the following exception when using auto complete:

Exception
"can't convert Array into String"

Location
/Users/$USER/Library/Application Support/TextMate/Pristine Copy/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/class_parser.rb:518:in directory?' /Users/$USER/Library/Application Support/TextMate/Pristine Copy/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/class_parser.rb:518:inadd_src_dir'
/Users/$USER/Library/Application Support/TextMate/Pristine Copy/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/class_parser.rb:508:in create_src_list' /Users/$USER/Library/Application Support/TextMate/Pristine Copy/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/class_parser.rb:98:ininitialize'
/Users/$USER/Library/Application Support/TextMate/Pristine Copy/Bundles/ActionScript 3.tmbundle/Support/bin/complete.rb:16:in `new'
/Users/$USER/Library/Application Support/TextMate/Pristine Copy/Bundles/ActionScript 3.tmbundle/Support/bin/complete.rb:16

I'm using the version 1.5.9 (1589) of TextMate, the last version of the Actionscript3 bundle and I've already upgraded the Support folder.

Thanks in advance

@simongregory
Copy link
Owner

Looking at the stack trace I'm slight confused as to why your paths have '$USER' in them. ie:

/Users/$USER/Library/Application Support/

if I add an artificial problem on the same line I see:

/Users/simon/Library/Application Support/

Do you really have a username of $USER ?

@artdevgame
Copy link

Same problem here dude. It's working fine on my home computer, work computer I get the following:

/Users/turtle/Library/Application Support/TextMate/Pristine Copy/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/class_parser.rb:565:in `directory?'
/Users/turtle/Library/Application Support/TextMate/Pristine Copy/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/class_parser.rb:565:in `add_src_dir'
/Users/turtle/Library/Application Support/TextMate/Pristine Copy/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/class_parser.rb:555:in `create_src_list'
/Users/turtle/Library/Application Support/TextMate/Pristine Copy/Bundles/ActionScript 3.tmbundle/Support/lib/as3/parsers/class_parser.rb:76:in `initialize'
/Users/turtle/Library/Application Support/TextMate/Pristine Copy/Bundles/ActionScript 3.tmbundle/Support/bin/complete.rb:16:in `new'
/Users/turtle/Library/Application Support/TextMate/Pristine Copy/Bundles/ActionScript 3.tmbundle/Support/bin/complete.rb:16

@mattarau
Copy link

mattarau commented Nov 8, 2010

Same here and my username is ok:
/Users/maraujo/Library/Application Support/

AS3 bundle and Textmate were just installed (Support folder updated via svn).
Thanks

@simongregory
Copy link
Owner

Looking at flyingbuddha's stack trace this may be because the bundle cannot find the Flex SDK. It parses the src included in the SDK to provide the completions list. So setting the env variable TM_FLEX_PATH may help. From within TextMate run Bundles > ActionScript 3 > Help for details on how to do this.

In the meantime I'll test this theory, and if it's right catch the error and warn the user in a more elegant manner.

@simongregory
Copy link
Owner

Ok, I've hidden the SDK's from the bundle on my machine and run the autocomplete command and it still works as expected.

Anyone have more details about their set up?

@mattarau
Copy link

In my case, adding the TM_FLEX_PATH to the shell variables solved the problem. Thanks a lot!!!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants