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

Error when querying for keys #10

Open
Pentaquark1 opened this issue Apr 5, 2021 · 3 comments
Open

Error when querying for keys #10

Pentaquark1 opened this issue Apr 5, 2021 · 3 comments
Labels
question Further information is requested

Comments

@Pentaquark1
Copy link

When I use jq over the cli, querying for keys like this works fine:

code-dev/api » jq 'keys' test.json
[
  "has_more",
  "items",
  "quota_max",
  "quota_remaining"
]

When I try to do the same thing with counsel-jq (query for 'keys') on the same file, I get the following error:
jq: error: syntax error, unexpected INVALID_CHARACTER, expecting $end (Unix shell quoting issues?)

Environment is doom emacs, anyone encounter the same issue yet?

@mateialexandru
Copy link

Yes, encountered the same, but on Windows

@mateialexandru
Copy link

Might help: make sure icomplete mode is disabled

(icomplete-mode 0)

@munen
Copy link
Contributor

munen commented Sep 15, 2022

Apologies for not having answered to the original issue 🙏 I must have missed the notification. Thank you, @mateialexandru for picking it up, again!

Having said so, unfortunately I cannot reproduce the error on my machine:

image

icomplete-mode has a value of nil on my machine. I checked my config and I'm not setting it explicitly. But even when set to 1, it works the same as in the screenshot above.

Hence, I am assuming it's something in your setup. Can you run an unconfigured instance of Emacs (emacs -Q) and only install counsel-jq, for example?

@munen munen added the question Further information is requested label Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants