Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run (paths issue?) #14

Open
daurnimator opened this issue Mar 27, 2017 · 1 comment
Open

Unable to run (paths issue?) #14

daurnimator opened this issue Mar 27, 2017 · 1 comment

Comments

@daurnimator
Copy link

Trying to run without linking:

$ ./bin/castl.js 
lua5.2: cannot open ./.code.js.lua: No such file or directory

Trying to run after npm link:

$ castl 
lua5.2: ./.code.js.lua:1: module 'castl.runtime' not found:
	no field package.preload['castl.runtime']
	no file '/usr/share/lua/5.2/castl/runtime.lua'
	no file '/usr/share/lua/5.2/castl/runtime/init.lua'
	no file '/usr/lib/lua/5.2/castl/runtime.lua'
	no file '/usr/lib/lua/5.2/castl/runtime/init.lua'
	no file './castl/runtime.lua'
	no file '/home/daurnimator/.luarocks/share/lua/5.2/castl/runtime.lua'
	no file '/home/daurnimator/.luarocks/share/lua/5.2/castl/runtime/init.lua'
	no file '/usr/share/lua/5.2/castl/runtime.lua'
	no file '/usr/share/lua/5.2/castl/runtime/init.lua'
	no file '/usr/lib/lua/5.2/castl/runtime.so'
	no file '/usr/lib/lua/5.2/loadall.so'
	no file './castl/runtime.so'
	no file '/home/daurnimator/.luarocks/lib/lua/5.2/castl/runtime.so'
	no file '/usr/lib/lua/5.2/castl/runtime.so'
	no file '/usr/lib/lua/5.2/castl.so'
	no file '/usr/lib/lua/5.2/loadall.so'
	no file './castl.so'
	no file '/home/daurnimator/.luarocks/lib/lua/5.2/castl.so'
	no file '/usr/lib/lua/5.2/castl.so'
stack traceback:
	[C]: in function 'require'
	./.code.js.lua:1: in main chunk
	[C]: in ?

After cd lua:

 $ castl 
/home/daurnimator/src/castl/bin/castl.js:170
        throw new SyntaxError("Couldn't transpile JS code: " + e);
        ^

SyntaxError: Couldn't transpile JS code: Error: ENOENT: no such file or directory, open 'code.js'
    at /home/daurnimator/src/castl/bin/castl.js:170:15
    at Object.<anonymous> (/home/daurnimator/src/castl/bin/castl.js:292:2)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:425:7)
    at startup (bootstrap_node.js:146:9)
@curz46
Copy link

curz46 commented Apr 11, 2017

See this: #11.
Also, use the option --babel to get rid of that transpile error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants