karthink / consult-dir

Insert paths into the minibuffer prompt in Emacs
GNU General Public License v3.0
160 stars 9 forks source link

Error : symbol undefined #12

Closed elkarouh closed 1 year ago

elkarouh commented 2 years ago

I installed consult-die and when running C-x C-d, i get the following error message:

Symbol’s function definition is void: project--read-project-list

Is there something else i need to installed?

karthink commented 2 years ago

Could you tell me (i) what version of Emacs you're on, and (ii) what version of project.el is installed?

To find the latter you can do M-x describe-package RET project

elkarouh commented 2 years ago

Hi, I am using emacs 26.3 The project package is built-in and has no own version

Regards

On Sun, Dec 5, 2021 at 4:32 AM karthink @.***> wrote:

Could you tell me (i) what version of Emacs you're on, and (ii) what version of project.el is installed?

To find the latter you can do M-x describe-package RET project

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/karthink/consult-dir/issues/12#issuecomment-986160057, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXGMAQWQJI2XQ45GCJKLVLUPLMNFANCNFSM5JJVYJMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

karthink commented 2 years ago

Did you install this package manually or via a package manager (package.el, straight, quelpa etc)?

consult-dir depends on project.el v0.60 or higher, installing from a package manager handles this dependency for you. If you want to use it manually you'll need to install project.el from GNU ELPA. (M-x package-install RET project would be the simplest way to do it.)

elkarouh commented 2 years ago

This is a machine at work. All non-officially approved packages need to be installed manually (by copying the files in the load-path).

On Wed, Dec 8, 2021 at 8:21 AM karthink @.***> wrote:

Did you install this package manually or via a package manager (package.el, straight, quelpa etc)?

consult-dir depends on project.el v0.60 or higher, installing from a package manager handles this dependency for you. If you want to use it manually you'll need to install project.el from GNU ELPA. (M-x package-install RET project would be the simplest way to do it.)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/karthink/consult-dir/issues/12#issuecomment-988561912, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXGMAR32RAILISZSUVC3ATUP4BRHANCNFSM5JJVYJMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

NicholasBHubbard commented 2 years ago

I have the same issue when installing through straight.el. I am on emacs version 27.2.

(use-package consult-dir
  :straight t)

When I run M-x consult-dir I get the error consult-dir-project-dirs: Symbol’s function definition is void: project--read-project-list

Here is the backtrace:

Debugger entered--Lisp error: (void-function project--read-project-list)
  project--read-project-list()
  consult-dir-project-dirs()
  consult-dir--project-list-make()
  consult-dir--project-dirs()
  #f(compiled-function () #<bytecode 0x8e29d1>)()
  #f(compiled-function (src) #<bytecode 0xc43549>)((:name "Projects" :narrow 112 :category file :face consult-file :history file-name-history :enabled #f(compiled-function () #<bytecode 0x8e29ad>) :items #f(compiled-function () #<bytecode 0x8e29d1>)))
  mapc(#f(compiled-function (src) #<bytecode 0xc43549>) [(:name "Bookmarks" :narrow 109 :category bookmark :face consult-file :history bookmark-history :items consult-dir--bookmark-dirs) (:name "This directory/project" :narrow 46 :category file :face consult-file :history file-name-history :items consult-dir--default-dirs) (:name "Projects" :narrow 112 :category file :face consult-file :history file-name-history :enabled #f(compiled-function () #<bytecode 0x8e29ad>) :items #f(compiled-function () #<bytecode 0x8e29d1>)) (:name "Recentf dirs" :narrow 114 :category file :face consult-file :history file-name-history :enabled #f(compiled-function () #<bytecode 0x8e299d>) :items consult-dir--recentf-dirs)])
  seq-do(#f(compiled-function (src) #<bytecode 0xc43549>) [(:name "Bookmarks" :narrow 109 :category bookmark :face consult-file :history bookmark-history :items consult-dir--bookmark-dirs) (:name "This directory/project" :narrow 46 :category file :face consult-file :history file-name-history :items consult-dir--default-dirs) (:name "Projects" :narrow 112 :category file :face consult-file :history file-name-history :enabled #f(compiled-function () #<bytecode 0x8e29ad>) :items #f(compiled-function () #<bytecode 0x8e29d1>)) (:name "Recentf dirs" :narrow 114 :category file :face consult-file :history file-name-history :enabled #f(compiled-function () #<bytecode 0x8e299d>) :items consult-dir--recentf-dirs)])
  consult--multi-candidates([(:name "Bookmarks" :narrow 109 :category bookmark :face consult-file :history bookmark-history :items consult-dir--bookmark-dirs) (:name "This directory/project" :narrow 46 :category file :face consult-file :history file-name-history :items consult-dir--default-dirs) (:name "Projects" :narrow 112 :category file :face consult-file :history file-name-history :enabled #f(compiled-function () #<bytecode 0x8e29ad>) :items #f(compiled-function () #<bytecode 0x8e29d1>)) (:name "Recentf dirs" :narrow 114 :category file :face consult-file :history file-name-history :enabled #f(compiled-function () #<bytecode 0x8e299d>) :items consult-dir--recentf-dirs)])
  consult--multi((consult-dir--source-bookmark consult-dir--source-default consult-dir--source-project consult-dir--source-recentf) :prompt "In directory: " :sort nil)
  consult-dir--pick("In directory: ")
  consult-dir()
  funcall-interactively(consult-dir)
  call-interactively(consult-dir record nil)
  command-execute(consult-dir record)
  execute-extended-command(nil "consult-dir" "con")
  funcall-interactively(execute-extended-command nil "consult-dir" "con")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

EDIT: I spoke too soon. I cannot reproduce the issue with emacs -q. I will report back if I figure out what the conflict is.

karthink commented 2 years ago

EDIT: I spoke too soon. I cannot reproduce the issue with emacs -q. I will report back if I figure out what the conflict is.

Sure, please let me know. Project.el is a dependency and should be automatically installed.

jdtsmith commented 2 years ago

I had to recompile project.el from within elpa to get past this error on a fresh recent package install of consult-dir.

karthink commented 1 year ago

I'm assuming this issue is resolved at this point. If not feel free to reopen.