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

node -c seems to hang and do nothing #13

Open
Gozala opened this issue Apr 2, 2018 · 4 comments
Open

node -c seems to hang and do nothing #13

Gozala opened this issue Apr 2, 2018 · 4 comments

Comments

@Gozala
Copy link

Gozala commented Apr 2, 2018

Hi,

I am trying to get my head around what does shen-js can do and what does compiler actually output. When I attempt to compiler simple .shen file as described here https://github.com/gravicappa/shen-js/blob/master/doc/node.md compiler generates empty .js file and never seems to exit finish.

@Gozala
Copy link
Author

Gozala commented Apr 2, 2018

I am also noticing strange error when just loading the file as well:

./shen-node.js  examples/factorial.shen
factorial
factorial-tail'
factorial-tail
1307674368000

run time: 0 secs
/Users/gozala/Projects/shen-js/shen-node.js:135
        load_files(files, i + 1, callback);
        ^

ReferenceError: load_files is not defined
    at Shen.receive (/Users/gozala/Projects/shen-js/shen-node.js:135:9)
    at Shen.step (/Users/gozala/Projects/shen-js/shen.js:320:14)
    at Timeout._onTimeout (/Users/gozala/Projects/shen-js/shen.js:326:36)
    at ontimeout (timers.js:466:11)
    at tryOnTimeout (timers.js:304:5)
    at Timer.listOnTimeout (timers.js:264:5)

although it does seem that code is loaded and executed.

@gravicappa
Copy link
Owner

I'll investigate.

@Gozala
Copy link
Author

Gozala commented Aug 30, 2018

Any updates ?

@gravicappa
Copy link
Owner

Not having much time lately. Tried once got confused more then given up. Today looked once again and fixed that hang.

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