clemos / haxe-sublime-bundle

Sublime Text bundle for Haxe programming language
Apache License 2.0
237 stars 86 forks source link

Standard library not found #240

Open martinfinke opened 9 years ago

martinfinke commented 9 years ago

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.

ghost commented 9 years ago

Try to use this setting:

"haxe_library_path": "/usr/local/haxe/std:."
ghost commented 9 years ago

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

ghost commented 9 years ago

Should be fixed now. Please confirm.

martinfinke commented 9 years ago

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.

ghost commented 9 years ago

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

clemos commented 9 years ago

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