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

wrong-type-argument buffer-or-string-p t when selecting a match #2

Open
ft opened this issue May 21, 2022 · 1 comment
Open

wrong-type-argument buffer-or-string-p t when selecting a match #2

ft opened this issue May 21, 2022 · 1 comment

Comments

@ft
Copy link

ft commented May 21, 2022

When running consult-ag, presenting searches works perfectly well. However when I hit Enter to select a match to go to that position, I get a wrong-type-argument error. When enabling debug-on-error I get this backtrace:

Debugger entered--Lisp error: (wrong-type-argument buffer-or-string-p t)
  consult-ag--grep-position(t #f(compiled-function (&optional name) #<bytecode -0xd9c7602ea9be80b>))
  #f(compiled-function (action cand) #<bytecode 0x1d8a882c9a6812eb>)(#("ROADMAP.org:47:51:ers may decide to rather impleme..." 0 11 (filename "ROADMAP.org" row "47" column "51" face consult-file) 11 12 (filename $
  #f(compiled-function () #<bytecode -0x6e760d6a5ea07ba>)()
  consult--with-preview-1(any #f(compiled-function (action cand) #<bytecode 0x1d8a882c9a6812eb>) #f(compiled-function (input cand) #<bytecode 0x1a6b6dd330dca502>) #f(compiled-function (&rest args2) #<bytecode 0x7$
  consult--read-1(#f(compiled-function (action) #<bytecode 0x19883e7d2866da7c>) :prompt "Consult ag:  (Project makemehappy): " :lookup consult--lookup-member :state #f(compiled-function (action cand) #<bytecode 0$
  consult--read(#f(compiled-function (action) #<bytecode 0x19883e7d2866da7c>) :prompt "Consult ag:  (Project makemehappy): " :lookup consult--lookup-member :state #f(compiled-function (action cand) #<bytecode 0x1$
  consult-ag()
  funcall-interactively(consult-ag)
  command-execute(consult-ag)

This is happening consult-ag with this version information on top of consult-ag.el:

;; Author: Kanon Kakuno <yadex205@outlook.jp>
;; Homepage: https://github.com/yadex205/consult-ag
;; Package-Requires: ((emacs "27.1") (consult "0.16"))
;; Package-Version: 20220419.1721
;; Package-Commit: 2460ae6829e86c9f1186a852304d919526838cb8
;; SPDX-License-Identifier: MIT
;; Version: 0.1.2
@ft
Copy link
Author

ft commented May 21, 2022

Not sure if this is a compatibility issue, but I reinstalled all of my package.el based packages from scratch, and now the issue is gone. Unfortunately I did not check the consult version I had installed before. Now it's 20220508.928 from melpa.

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

1 participant