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

The plugin doesn't see Haxe libraries

Open iirekm opened this issue 6 years ago • 6 comments

I use Ubuntu 18 and Intellij 2018, installed Haxe as described in https://haxe.org/download/linux/

Now I'm unable to use Haxe standard libraries (located in /usr/share/haxe), whatever I choose in classpath configuration. What's worse when I change classpath configuration and click OK and then reopen it, my paths I just selected disappeared! The plugin seems only to detect Haxe executable in /usr/bin

iirekm avatar May 04 '18 14:05 iirekm

When I use haxe downloaded as .tar.gz file it isn't much better, the plugin detects it but doesn't compile anything

iirekm avatar May 04 '18 14:05 iirekm

the best 'result' I can get with the plugin is:

Information:Working path: /home/irek/workspace/misc/public/demos/haxe-demo
Information:Output path: /home/irek/workspace/misc/public/out
Information:Output file: .n
Information:Running command: /home/irek/apps/haxe_20180221160843_bb7b827/haxe /home/irek/workspace/misc/public/demos/haxe-demo/haxe-demo.hxml
Information:Standard library not found
Information:No additional error information available.
Information:04.05.18 16:46 - Compilation completed with 2 errors and 0 warnings in 9ms
Error: (Command exited with an error code) 1
Error:Compilation failed

iirekm avatar May 04 '18 14:05 iirekm

In the File->Project Strucure... dialog, select the SDK entry, and make sure that the Classpath tab has a single entry: /usr/share/haxe/std (or wherever the root of the std library is located). Also be sure that your project and module have the proper SDK selected.

If std library functions used in your program are displayed in red (e.g. not found), then you do not have the SDK or its Classpath set up correctly.

What versions of IDEA (2018.1.what?), the plugin, and Java are you running?

EricBishton avatar May 07 '18 22:05 EricBishton

Same symptom on Mac 10.12.6 and IntelliJ IDEA 2018.1.4. There is "/usr/local/Cellar/haxe/3.4.7/lib/haxe/std" in Classpath tab on SDKs.

abeq avatar Jun 07 '18 05:06 abeq

@abeq Is "usr/local/Cellar/haxe/3.4.7/lib/haxe/std" the only entry in the Classpath tab? And, is it duplicated in the Sources tab (as the only entry)?

For releases 1.0.2 and below, this is still an issue. For the plugin's nightly (EAP) builds, it should be fixed.

EricBishton avatar Jun 07 '18 16:06 EricBishton

@EricBishton It is duplicated in the Source tab, it is in both of Classpath tab and Source tab. I will wait because I am not in a hurry (I use vscode).

abeq avatar Jun 08 '18 07:06 abeq