List Info

Thread: nekotools server and $loader.path




nekotools server and $loader.path
country flaguser name
France
2007-09-17 13:44:08
Hello list,

I've encountered a problem with nekotools server while
playing around
with haXe. When I change the loader search path, the new
path seems to
be ignored.

So I simply tried in Neko to load a module from a
sub-directory
"./sub/mod.n":

var get_cwd = $loader.loadprim("mod_nekocgi_get_cwd", 0);
$loader.path = $array(get_cwd()+"sub/",
$loader.path);
$print($loader.path+"n");
var module = $loader.loadmodule("mod", $loader);

With nekotools server, I get:

[/home/florent/temp/neko/sub/,[/usr/bin/,[/usr/lib/neko/,nul
l]]]
Called from tools/WebServer.nml line 481
Called from tools/WebServer.nml line 454
Called from Test.neko line 4
Called from tools/WebServer.nml line 454
Exception : Neko_error(load.c(176) : Module not found :
mod)

The printed search path is correct but mod.n is not found.

Changing the loader search path works fine with mod_neko.
The problem is
only with nekotools.

I'm using neko 1.6.0 on Linux (x86_64), gcc 4.1.2

Thanks for any help!
Regards,
-- 
Florent

-- 
Neko : One VM to run them all
(http://nekovm.org)

Re: nekotools server and $loader.path
country flaguser name
France
2007-09-18 05:55:20
> Hello list,
> 
> I've encountered a problem with nekotools server while
playing around
> with haXe. When I change the loader search path, the
new path seems to
> be ignored.

Fixed on CVS ;)

Nicolas

-- 
Neko : One VM to run them all
(http://nekovm.org)

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )