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 first running counsel-jq #2

Closed
iantor opened this issue Sep 26, 2020 · 6 comments
Closed

error when first running counsel-jq #2

iantor opened this issue Sep 26, 2020 · 6 comments
Labels
question Further information is requested

Comments

@iantor
Copy link

iantor commented Sep 26, 2020

windows 10, emacs 26.3

just installed jq (from chocolatey) and counsel-jq

When in json buffer, M-x counsel-jq, immediately get following:

Error in post-command-hook (icomplete-post-command-hook): (wrong-number-of-arguments (1 . 1) 3)
Quit

Then get prompt for jq query.

@munen
Copy link
Contributor

munen commented Sep 26, 2020

Hi @iantor

Thank you for checking out counsel-jq!

I have no Windows machine to test (I'm running Debian Linux and MacOS), so I'd be happy if you can help debug this issue. Let's check some versions first: I've been running Emacs 26 and now Emacs 27.1 with counsel-jq, so that shouldn't be it. I'm running jq in the latest version 1.6-1.

@munen munen added the question Further information is requested label Sep 26, 2020
@iantor
Copy link
Author

iantor commented Sep 26, 2020

Hi Munen, I have emacs 26.3, and jq 1.6-1
I have some limited debugging experience with emacs, will see if I can get some more details on that error and let you know.

@munen
Copy link
Contributor

munen commented Sep 26, 2020

Hi @iantor

Perfect, thank you very much and good luck!

If you can't find the issue, I think the best I can offer is to have a screen sharing session with you to help with debugging.

@iantor
Copy link
Author

iantor commented Sep 28, 2020

On the track of the issue. I believe it has something to do with icomplete-mode and possibly with some other settings to do with counsel. Saw the same error in a different context. Will try disabling those settings and see what happens.

@iantor
Copy link
Author

iantor commented Sep 28, 2020

problem is solved. It was caused by (icomplete-mode 1) in init.el, which shouldn't have been there since I am using Ivy and Counsel etc.

@iantor iantor closed this as completed Sep 28, 2020
@munen
Copy link
Contributor

munen commented Sep 29, 2020

@iantor Great, thank you for checking it out and getting back on this issue^^

I could have caught this probably in your error message, but I wasn't aware of icomplete-mode. Sorry for that. Personally, I still use ido for some things, but Ivy for most. It's a little complicated to set up, but once done has served me well for years. If it helps, here's my setup: https://github.com/munen/emacs.d/#search--completion The rationale why I'm not using Ivy for everything is here: https://github.com/munen/emacs.d/#where-ivy-doesnt-work-well

All the best and enjoy using counsel-jq 🙏

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

2 participants