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

Cannot get sjs to produce output #503

Closed
rrthomas opened this issue Feb 15, 2016 · 3 comments
Closed

Cannot get sjs to produce output #503

rrthomas opened this issue Feb 15, 2016 · 3 comments

Comments

@rrthomas
Copy link

When I run sjs 1.0.0-alpha4, installed using npm, on an example I'm trying to whip up, it seems to process it successfully, but fails when it gets to the output stage:

$ sjs -o fsmjs.js fsm.js
fs.js:887
  return binding.lstat(pathModule._makeLong(path));
                 ^

Error: ENOENT: no such file or directory, lstat '/home/rrt/Software/other/gorge-fsm/    '

It seems to have inserted 4 spaces at the end of the path it's complaining about.

disnet added a commit that referenced this issue Feb 15, 2016
@disnet
Copy link
Member

disnet commented Feb 15, 2016

Might be helpful to actually support the -o flag :)

Should work now.

@rrthomas
Copy link
Author

Thanks for your attention to this!

I now have 1.0.0alpha5. I get the following error:

$ sjs -o fsmjs.js fsm.js
/home/rrt/.local/lib/node_modules/sweet.js/bin/sjs:16
var fname = argv._[0];
                ^

TypeError: Cannot read property '_' of undefined
    at Object.<anonymous> (/home/rrt/.local/lib/node_modules/sweet.js/bin/sjs:16:17)

disnet added a commit that referenced this issue Feb 17, 2016
@disnet
Copy link
Member

disnet commented Feb 17, 2016

Was using yargs wrong. Should work now.

@disnet disnet closed this as completed Feb 17, 2016
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