New issue 95 by a...@onthewings.net: Completion returned with
error "Standard library not found"
http://code.google.com/p/eclihx/issues/detail?id=95
Using eclihx on Ubuntu 11.10, Eclipse 3.7.0, completion returned with
error "Standard library not found".
My haxe installation is at _/usr/bin/haxe_
Standard lib is at _/usr/share/haxe/std_
_$HAXE_LIBRARY_PATH_ set to _/usr/share/haxe/std:._
Bad formatting :(
It should be:
My haxe installation is at
/usr/bin/haxe
Standard lib is at
/usr/share/haxe/std
$HAXE_LIBRARY_PATH set to
/usr/share/haxe/std:.
Comment #2 on issue 95 by goodwi...@gmail.com: Completion returned with
error "Standard library not found"
http://code.google.com/p/eclihx/issues/detail?id=95
Hello, sorry for a long response. In general this is a error not from
eclihx but from haxe compiler. Please try to activate completion feature
after enabling Error Log view in eclipse (Window -> Show View -> Other ->
Error Log). You should be able to see the exact string of compiler
execution posted as information message to this window. Please confirm that
this message contains an expected path for compiler.
The error log I got:
null
Info
Sun Feb 05 15:05:00 HKT 2012
Eclihx ExecuteProcess.
WorkingDirectory: "/home/andy/workspace/testHaxe".
CommandLine: "[/usr/bin/haxe, -main, Test, -cp, src, --display,
/home/andy/workspace/testHaxe/src/Test.hx@57, --no-output, -neko,
bin/testHaxe.n]".
If I enter the display command from console, I can get the output correctly:
andy@sacredibis:~/workspace/testHaxe$ /usr/bin/haxe -main Test -cp src
--display /home/andy/workspace/testHaxe/src/Test.hx@57 --no-output -neko
bin/testHaxe.n
<list>
<i n="charAt"><t>index : Int -> String</t><d></d></i>
<i n="charCodeAt"><t>index : Int -> Null<Int></t><d></d></i>
<i n="indexOf"><t>str : String -> ?startIndex : Int ->
Int</t><d></d></i>
<i n="lastIndexOf"><t>str : String -> ?startIndex : Int ->
Int</t><d></d></i>
<i n="length"><t>Int</t><d></d></i>
<i n="split"><t>delimiter : String ->
Array<String></t><d></d></i>
<i n="substr"><t>pos : Int -> ?len : Int -> String</t><d></d></i>
<i n="toLowerCase"><t>Void -> String</t><d></d></i>
<i n="toString"><t>Void -> String</t><d></d></i>
<i n="toUpperCase"><t>Void -> String</t><d></d></i>
</list>
Ok, turn out I have to put the following line in "/etc/environment"
HAXE_LIBRARY_PATH="/usr/share/haxe/std:."
Previously I put "export HAXE_LIBRARY_PATH="/usr/share/haxe/std:."
in "~/.bashrc" which eclipse does not read...
It is now working as expected, thanks for the help!
Comment #5 on issue 95 by goodwi...@gmail.com: Completion returned with
error "Standard library not found"
http://code.google.com/p/eclihx/issues/detail?id=95
Thank you for posting, I'm glad it solved now.