clemos / haxe-sublime-bundle

Sublime Text bundle for Haxe programming language
Apache License 2.0
237 stars 85 forks source link

Haxe autocompletion not working for classes in the same project, in ST2 #187

Closed xavierstampslafont closed 9 years ago

xavierstampslafont commented 9 years ago

Autocompletion used to work for me for these typical cases:

But I noticed it stopped working in the past week or so. I had recently upgraded all Haxe libraries using haxelib upgrade, and some of them were indeed upgraded but I don't remember which ones exactly.

I've tried uninstalling the Haxe bundle via Sublime Text package control, and reinstalling it, but it didn't help. Any ideas on how to get it to work again? Thank you!

xavierstampslafont commented 9 years ago

To clarify a bit more, ST2 is indeed able to find the classes when I'm instantiating a new instance or calling the class directly, and it knows where they are located. Just the public variables and functions can't be found anymore.

clemos commented 9 years ago

Do you get any error message in the ST console ? Most people now use ST3, including myself, so ST3 support is much better than ST2. You may want to upgrade too.

xavierstampslafont commented 9 years ago

I've now upgraded to ST3, but I still don't have the autocompletion.

No error messages appear in the ST console. I would expect it to show something when I hit the . for fetching (or failing to fetch) things for autocompletion, but nothing appears at all.

xavierstampslafont commented 9 years ago

I'm on Mac OS X 10.9.5, in case that helps.

xavierstampslafont commented 9 years ago

Still no error messages in the ST console, but I noticed in the status bar it says "Class not found : lime.Assets" when I'm typing, including after pressing the .

clemos commented 9 years ago

Then it's very likely a duplicate of #175

xavierstampslafont commented 9 years ago

Yes, adding the lime dependency allows autocompletion to work again! Thank you :)

I'll close this one and add a comment to that other issue that it was affecting me too.