Open nsmarkop opened 8 years ago
Interesting... the display file appears to be:
--display,c:\users\nsmar_~1\appdata\local\temp\ed15d25f472a2ccbc56c31bd0f9b0dcea08711d7\Test.hx
Which is acknowledged just above:
> c:\users\nsmar_~1\appdata\local\temp\ed15d25f472a2ccbc56c31bd0f9b0dcea08711d7/Test.hx:9: characters 8-11 : Unexpected Sys
Stats = 1 files, 1 classes, 1 methods, 0 macros
I wonder why it's now missing. Is there a sequence of events that causes this? I assume by your description that you've never actually seen it working?
You could try disabling the temp directory (set it to an empty string), and perhaps play with the haxeUseTmpAsWorkingDirectory setting (under File -> Preference -> User Settings):
"haxe.haxeTmpDirectory": "auto",
"haxe.haxeUseTmpAsWorkingDirectory": false,
@pleclech - any chance this could be related to PR #22 / #19?
@jcward For the moment no idea, the temporary file is deleted when the real save occurred. Was the display processed just right before the save ? Is this occured every time, or it works sometimes ?
Right, I had never seen it actually working - I just got the errors above when opening the folder in VS Code, adding lines under the string declaration, and typing "test." with no saving or anything. This happened every time for me (I first experienced it by opening up various other projects beforehand with the same end result).
I messed around with the temp directory settings and it seems like specifying one works (in my case I just used a secondary drive "E:\Projects\temp")! Setting haxeUseTmpAsWorkingDirectory with this path specified also works but leaving the directory as "auto" does not work no matter what for me.
When I try to get autocompletion to work I get the error in the title.
build.hxml:
Text.hx (I'm trying to get autocompletion on test):
vscode-project.hxml:
And then here's the output of the completion server: