-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode can't launch haxe #119
Comments
Is there a reason you use custom tasks, rather than those auto-generated by vshaxe? Together with the Lix VSCode extension, that should work fine. |
@Gama11 It's funny what exactly you ask about it because I started using tasks in this way when I saw something similar in your repository. It seems to me very convenient that for each goal its own task is used and each of them can be configured as you like without changing the |
Have a look at the settings.json in that repo. If you do it that way, the tasks will still be generated by vshaxe. |
Sorry for the noobs questions. I still can’t understand why the usual way to start tasks does not work, but I downloaded
This appears not only for HL, but for all targets. Although, if click |
That only works as long as you already compiled HL successfully before. I'm not sure what's wrong with with your tasks, I was just wondering why you were doing it that way to begin with. Are you using a local or a global lix setup? |
I am successfully compiling HL. The error occurs when |
If you have a local lix setup, you probably want to be calling Haxe through
With a VSCode task? Or on the command line? |
The error occurs even when I use the global setup. Running Haxe from the command line works. But running through a task (with the same arguments) doesn`t work.
Tasks don't work (except for the active configuration task). And since a task is called in the debugger configuration("preLaunchTask": "HL/JIT (debug)"), this also causes an error. |
Have you tried with |
I tried it. Same error. |
I tried to do the same on my old laptop with Windows 7. And it works without errors! Apparently the problem is in VSCode on Windows 10. Sadness. |
Since the tasks still work, if I call |
Hm, I can reproduce that too, not sure why that's happening... |
Ah, you need |
Hmm, really weird, but it solves the problem. It is not clear why the error cannot be reproduced if you install Haxe using the installer. But such a solution is enough for me. Thanks! |
Well, with the regular Haxe installer there's no haxe.cmd, just a haxe.exe. |
I think everything other than that "default value" hint in VSCode is clear now (opened an issue for that: microsoft/vscode#91553), so I'll close. |
I have the following configuration files:
build.hxml
task.json
As you can see, the two tasks differ only in that the first calls command
haxe
, and the second commandhaxe.cmd
.When second task works, first produces an error:
Not sure, but it's possible that this only reproduced on Windows 10, because I don’t remember that I came across this on Windows 7 (now there is no way to check).
And one more important point. A broken task will work without errors if haxe is installed on the system through a standard installer, but the installed version of the compiler is executed, and not the one specified in
.haxerc
.The text was updated successfully, but these errors were encountered: