jcward / vscode-haxe

Haxe language extension for Visual Studio Code
MIT License
64 stars 10 forks source link

Works on Ubuntu 14.04 #12

Closed ashes999 closed 8 years ago

ashes999 commented 8 years ago

This VS2015 Voice issue got a comment today saying "the community is handling this, please help them or help us help them."

I got this working today on Linux. I just want to say thanks. After a couple of years of fiddling around with Haxe (mostly on Linux), I finally have code-completion.

Great work!!

jcward commented 8 years ago

Excellent, thanks for the feedback. I didn't realize that voice issue had so many comments / votes - cool! VSCode is very slick, and Haxe's completion engine is awesome. Using both together makes learning Haxe (and new libraries) so much faster!

ashes999 commented 8 years ago

Caveat: this doesn't work 100% (as you stated in the README). I'm having a hard time figuring out exactly what does and doesn't work.

What clearly works, is accessing core haxe APIs (most of the type) -- like typing sys.io.File. + CTRL+Space gives me a list of methods.

Typing this. doesn't give me anything reasonable for auto-complete.

Hopefully, some of these things will improve over time. Let me know if you need help testing on Ubuntu.

jcward commented 8 years ago

@ashes999 hmm, this. completion seems to work for me:

image

You can debug the completion server if you (first kill any existing completion servers and then) start the completion server in a terminal by hand:

>pkill haxe
>haxe -v --wait 6000

Perhaps there's an syntax error that's throwing it off?

ashes999 commented 8 years ago

You're on to something. pkill haxe showed that I had two haxe instances running. Killing those off fixed auto-completion for this..

BUT, I noticed quitting VSCode didn't kill the haxe server. This explains how I had two copies already running in the background.

Thoughts?

BTW, I don't have compilation errors -- I'm testing a "good" code state just to get VSCode working.

jcward commented 8 years ago

I noticed quitting VSCode didn't kill the haxe server.

Yep, it's filed here: https://github.com/jcward/vscode-haxe/issues/3 ;)

ashes999 commented 8 years ago

Okay, thanks. I'll let this issue die in peace, then :)