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

jq: error: Could not open file : No such file or directory If the file contains special characters like space #32

Open
amalgame21 opened this issue Dec 9, 2024 · 1 comment

Comments

@amalgame21
Copy link

amalgame21 commented Dec 9, 2024

  1. Rename the json file as h e l l o.json
  2. Use :JqxList in nvim
  3. error:
h e l l o.json|| jq: error: Could not open file h: No such file or directory
h e l l o.json|| jq: error: Could not open file e: No such file or directory
h e l l o.json|| jq: error: Could not open file l: No such file or directory
h e l l o.json|| jq: error: Could not open file l: No such file or directory
h e l l o.json|| jq: error: Could not open file o.json: No such file or directory

On NixOS

@gennaro-tedesco
Copy link
Owner

Good morning and thank you for reporting this issue. Yes, if the file contains spaces then jq tries to parse each single letter as argument.

I will have a look if I can parse the filename (perhaps in quotations) so that it is expanded by the shell without conflicting with the rest of the json keys.

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