Closed jonathanwilner closed 1 year ago
Hello @jonathanwilner , Thanks for reporting this.
Can you explain the context in which you are getting this error? I should be able to reproduce it to debug it.
Hi again @jonathanwilner
I've pushed a commit that should solve this. Please let me know if this fixes the issue.
Hi - you are right that it was happening in the mini-buffer. I unfortunately believe it may still be occurring, but now I also know where to explore. I'll keeping going and see if it's either gone or I can consistently reproduce.
Thanks!
I suspect the advice around consult
commands to be the source of this issue. You can disable the advices by dropping this in your config.el
, this can help to identify if this is really the cause of the problem.
(with-eval-after-load 'consult
(dolist (cmd '(consult-line consult-man))
(advice-remove cmd #'+consult--dwim-first-arg-a))
(dolist (cmd '(consult-ripgrep consult-line-multi consult-grep consult-find))
(advice-remove cmd #'+consult--dwim-second-arg-a)))
@abougouffa - THANK YOU ! This looks like it's working.
Nope - it's definitely still happening. When the mini-buffer frame is small, it can prompt an args out of range error. Making the mini-buffer/frame wider will usually (potentially always) solve the problem.
I didn't get it! What steps can I apply to reproduce the issue?
Did you try to add the snippet mentioned above to your config.el
? If yes, then I think the issue should be reported to consult
, the advices are the only tweak I apply to consult
's commands.
Hi - I did try it and it doesn't help. If you squeeze down the size of the Emacs app far enough, you can likely see the error happen pretty consistently. :-(
In this case, I think this should be reported in the consult
repo.
NB: I didn't manage to reproduce the bug!
Hi - I did try it and it doesn't help. If you squeeze down the size of the Emacs app far enough, you can likely see the error happen pretty consistently. :-(
i think you can make prune and reinstall
I switched to a non native-compilation build of Emacs and the problem disappeared. I'm going to close this one and apologize for wasting time !
Aha! It could be related to this https://github.com/abougouffa/minemacs/issues/38#issuecomment-1482611285
This may very well be a personal configuration issue, but I think it's over my head to figure out how to track what's impacting the positioning using consult-line.
I don't get the error every time - and I can't quite figure out how to repro - or in any particular mode. Happy to hunt for this if it's happening to others, or hoping for a tip on how to solve this!