vscode-haxe icon indicating copy to clipboard operation
vscode-haxe copied to clipboard

vscode-project.hxml

Open MatthijsKamstra opened this issue 8 years ago • 8 comments

Hi

I just updated VSCode Haxe plugin, and the new thing I encountered:

vscode-project.hxml

which looks very similar to the build.hxml you need for vscode to work.

a new thing or a bug?

MatthijsKamstra avatar Apr 10 '16 13:04 MatthijsKamstra

@MatthijsKamstra it 's an automated file generated file based on your build hxml, it will be deleted when you quit vscode, and it is updated when you edit you build hxml

It contains on other thing the temporary path that is used when you edit your .hx file

pleclech avatar Apr 10 '16 13:04 pleclech

It only shows up when temp directory is enabled, right? Could we put it in the temp directory? Or does it need to be in the project dir?

jcward avatar Apr 10 '16 13:04 jcward

Wouldn't it be easier to just parse the source hxml file and pass arguments from it directly to the compiler? I was doing that in my ST plugin prototype and it worked out quite well: https://github.com/nadako/hxsublime/blob/master/src/BuildHelper.hx

nadako avatar Apr 10 '16 13:04 nadako

@jcward Well it is generated where your build is, if you want to move it on other location you will have to fix the path(s), adding maybe a --cwd inside the generated one Le 10 avr. 2016 15:34, "Jeff Ward" [email protected] a écrit :

It only shows up when temp directory is enabled, right? Could we put it in the temp directory? Or does it need to be in the project dir?

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/jcward/vscode-haxe/issues/26#issuecomment-207985740

pleclech avatar Apr 10 '16 13:04 pleclech

@nadako I m working on similar thing for target selection, but looking around i see that you can have pretty imbricated build.hxml file with or without --next --each

And on other i prefer to have an internal generated file that maybe can be enhanced and used by the ide, who knows...

pleclech avatar Apr 10 '16 13:04 pleclech

There is also an option (not well tested) in the settings to use the tmp directory as your working directory : haxe.haxeUseTmpAsWorkingDirectory (false/true).

It is setted to false by default.

pleclech avatar Apr 10 '16 13:04 pleclech

my 5cents It shouldn't be in the folder next to the build.hxml even if it's removed after you close VSCODE. Usually I commit my code before closing the editor, and now I have to gitignore vscode-project.hxml. Moving it to a temp folder (outside the project) sounds good

It only shows up when temp directory is enabled, right?

Not something I changed by my knowledge

MatthijsKamstra avatar Apr 10 '16 14:04 MatthijsKamstra

@MatthijsKamstra

Not something I changed by my knowledge

It is set now to auto by default, so if not overwritten in your settings it will try to use a tmp directory to avoid the saving problem of your .hx file each time you need completion.

pleclech avatar Apr 10 '16 14:04 pleclech