I’ve a very annoying issue. I’ve installed haxe toolkit and visual studio code with the following plugins:
codedox
haxe
haxe debug
haxe extension pack
lime
I’ve been told that lime is the one allowing the autocomplete but when I put the “.” and/or use ctrl+space I get a load of useless references instead of just the first properties of a specific object for instance.
I’ve tried reinstalling the whole thing, to no avail, and haxe develope shows a “404 not found” when I test a project.
In that console I get:
Haxe language server started
Restarting Haxe completion server: display arguments changed
Initializing completion cache…
Done.
Then this when I hover over a variable:
Error: Invalid directory: {Project folder}
[Warn - 14:59:31] Request textDocument/completion failed.
Message: Invalid xml data:
Code: -32603
And also:
Error: Invalid directory: {Project folder}
Error parsing diagnostics response: SyntaxError: Unexpected end of JSON input
Make sure you have your build path set correctly. So for example if you’re linking your haxe project to a .hxml file, you’ll only get autocompletion for the flash .hxml file. I run into this problem sometimes because I’ll be testing on multiple platforms, write some code with the wrong .hxml directory, and then I wonder why the code stops autocompleting - it’s always because I have that set wrong.