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

Can't install SDK - IntelliJ 2019.1 - Mac

Open douglasmccarroll opened this issue 5 years ago • 3 comments

Hi,

I've downloaded and installed the Haxe toolkit on my Mac. When I try to install it (/usr/local/lib/haxe/) as an SDK in IntelliJ 2019.1 it appears to install, but displays as "Haxe NA".

Issue 970 says "If the SDK is "Haxe NA" it means that the plugin couldn't find (or didn't have permissions to run) the Haxe executable" so, clearly, something is amiss.

I'm an experienced programmer but new to Haxe. What should I do next?

Thanks,

Douglas

douglasmccarroll avatar Jan 07 '20 18:01 douglasmccarroll

Hi Douglas,

If the haxe executable was not found, then its directory (and those of haxelib and neko, if different) needs to be added to your system path. If you only add it to your login script (e.g. .bashrc), then toolkit will only be available if you start idea from the command line. There are several recipes available for how to add directories to the system path on the Mac. Unfortunately, it changes with the OS version. This discussion may be able to help you: https://stackoverflow.com/questions/25385934/setting-environment-variables-via-launchd-conf-no-longer-works-in-os-x-yosemite

Let me know how it goes!

EricBishton avatar Jan 29 '20 19:01 EricBishton

I just did a fresh install of IDEA 2019.3.3 and I'm getting the same issue. I'm fairly certain it isn't a path issue, as the terminal within IDEA can find it:

$ haxe --version
4.0.5

I'm running macOS Mojave, if that matters.

EDIT: Are there any plans to make the plugin use the default haxe lib path? I get macOS is a pain for some things, but as a development platform, it typically isn't this painful. Is there a way to help get the plugin working out of the box with the default haxe installation?

tsal avatar Feb 13 '20 12:02 tsal

Version 1.4.7 now checks some default paths for linux and macOS, perhaps this remedies this issue ?

m0rkeulv avatar Jul 17 '23 23:07 m0rkeulv

Suggesting this issue is closed, lacking feedback from the issue author and a new issue created if the problem persists on updated plugin and IDE versions.

CanIGetaPR avatar Apr 22 '24 12:04 CanIGetaPR