haxe-sublime-bundle icon indicating copy to clipboard operation
haxe-sublime-bundle copied to clipboard

Standard library not found

Open martinfinke opened this issue 9 years ago • 6 comments

When I use the bundle on a file that's not in a subdirectory (with package;), the status bar reads:

Main (cpp:Build)

But when I use it with a file in a subdirectory (with package foo;), it reads:

Main (cpp:Build), Standard library not found

My Haxe.sublime-settings:

{
    "haxe_path": "/usr/local/haxe/haxe",
    "haxe_library_path": "/usr/local/haxe/std",
    "haxelib_path": "/usr/local/haxe/haxelib"
}

The haxe and haxelib locations are correct. In /usr/local/haxe/std there are Array.hx, Class.hx, etc.

I'm using the latest version from Package Control with Haxe 3.2.0 and ST3 3083.

martinfinke avatar Jun 26 '15 19:06 martinfinke

Try to use this setting:

"haxe_library_path": "/usr/local/haxe/std:."

ghost avatar Jun 29 '15 09:06 ghost

Try the latest version. Close subleme text and kill all haxe processes.

ghost avatar Jun 29 '15 10:06 ghost

Should be fixed now. Please confirm.

ghost avatar Jun 30 '15 09:06 ghost

Yes the message is ok now. However, when I use Cmd+B to run the Hxml build system, the console shows the message "Standard library not found". This happens for files with package; as well as for files in subdirectories.

martinfinke avatar Jun 30 '15 15:06 martinfinke

Hm, strange. Did you kill haxe process/restart sublime after the update?

ghost avatar Jun 30 '15 15:06 ghost

I believe Cmd+B will use ST's "basic" Build System, which won't use these haxe specific settings. This is due to MacOS not "sharing" environment variables properly, and has been solved in this issue : https://github.com/clemos/haxe-sublime-bundle/issues/216

clemos avatar Jul 01 '15 09:07 clemos