(Go: >> BACK << -|- >> HOME <<)

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

unknown conversion error #133

Closed
aminya opened this issue Dec 29, 2019 · 5 comments
Closed

unknown conversion error #133

aminya opened this issue Dec 29, 2019 · 5 comments

Comments

@aminya
Copy link
aminya commented Dec 29, 2019

I have installed cson on Windows globally using npm install --global cson, but I get an unknown conversion error when I try to run the commands from Powershell:

> cson2json in.cson > out.json
Unknown conversion

> cat in.cson | cson2json > out.json
Unknown conversion
@balupton
Copy link
Member

Can you debug on your side? I don't have windows so I cannot test.

To debug follow the contributing.md instructions and run npm link to expose the bins globally.

@mattacosta
Copy link

It looks like the command name isn't being sent along in process.argv:

[
  'C:\\Program Files\\nodejs\\node.exe',
  'C:\\Users\\redacted\\Projects\\redacted\\node_modules\\cson\\bin.js',
  'path/to/file.cson'
]

I tried forcing the issue by using npx cson2json cson2json path/to/file.cson, but then process.argv.length equals 4 and boots me to the if-block that prints usage information.

jingyu9575 added a commit to jingyu9575/multithreaded-download-manager that referenced this issue Jan 28, 2020
@balupton
Copy link
Member

I think I'm going to go back to using two seperate cli files, instead of the merging of one.

@sigod
Copy link
sigod commented Apr 22, 2021

I'm experiencing the same issue. So far I have to manually edit cson/edition-esnext/bin.js to use the parser.

@aminya
Copy link
Author
aminya commented Apr 23, 2021

This was fixed in #136, but it was never merged. You can use that fork instead.

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

4 participants