counsel-jq icon indicating copy to clipboard operation
counsel-jq copied to clipboard

Error when querying for keys

Open Pentaquark1 opened this issue 3 years ago • 3 comments

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?

Pentaquark1 avatar Apr 05 '21 15:04 Pentaquark1

Yes, encountered the same, but on Windows

mateialexandru avatar Sep 04 '22 20:09 mateialexandru

Might help: make sure icomplete mode is disabled

(icomplete-mode 0)

mateialexandru avatar Sep 04 '22 21:09 mateialexandru

Apologies for not having answered to the original issue :pray: 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 avatar Sep 15 '22 09:09 munen