HaxeFoundation / intellij-haxe

Haxe plugin for IntelliJ Platform based IDEs (IDEA, Android-Studio)
http://intellij-haxe.org
Apache License 2.0
219 stars 100 forks source link

IntellIJ IDea stops responding when you open a hxml file and start editing it #860

Open qwertykg opened 6 years ago

qwertykg commented 6 years ago

I currently have the following contents in my build.hxml file:

-cp src -main Main -js bin/app.js -dce full

When I open the file in IntellIJ and try to edit it, intellIJ stop responding. I then have to close IntelliJ from the windows task manager. In the task manager the following tasks are open:

intellij

EricBishton commented 6 years ago

@qwertykg Can you please provide details:
Plugin version, IDEA version, OS, Haxe and Haxelib versions?

qwertykg commented 6 years ago

Additional things I noticed, those tasks in my task manager weren't even open by me. If I literally open a new instance of IDEA and type in a hxml file those tasks start running - I don't know why haxe.exe is running since I'm not really running any haxe commands - just editing a file

qwertykg commented 6 years ago

UPDATE: I noticed if I end the tasks for "haxe.exe" - I'm able to modify the file just fine

PrashaanP commented 6 years ago

I can confirm that this is happening on my side as well.

pypmannetjies commented 6 years ago

Happening for me too:

leytilera commented 4 years ago

I have the same problem, has anyone already found a solution?

EricBishton commented 4 years ago

Well, if mayakwd says it was fixed in PR 887 (which is still outstanding -- my fault), then it's because the compiler changed its output channel between Haxe3 and Haxe4 (stderr -> stdout). The ghost versions of Haxe.exe are probably waiting for the output pipe to be drained (the OS holds them open), and the plugin is waiting for output on the wrong pipe. In the mean time, ghost Haxe.exe is holding the .hxml file open, and IDEA can't write to it, thus, a deadlock.

CanIGetaPR commented 5 months ago

I can't reproduce this bug with haxe compiler completion turned on OR off. I think it's fixed.