jeetelongname / dired-dragon

dragon bindings for our favorite file manager
GNU General Public License v3.0
4 stars 2 forks source link

void-variable dired-dragon-ex-drag-file #3

Closed gvalson closed 1 year ago

gvalson commented 1 year ago

When trying to invoke dired-dragon in a dired buffer, I get the error:

Debugger entered--Lisp error: (void-variable dired-dragon-ex-drag-file)
  #f(compiled-function () #<bytecode -0x14419903c8db36c5>)()
  eval-after-load(evil #f(compiled-function () #<bytecode -0x14419903c8db36c5>))
  byte-code("\300\301\302\"\210\303\304!\207" [eval-after-load evil #f(compiled-function () #<bytecode -0x14419903c8db36c5>) provide dired-dragon] 3)

I understand the bytecode part is not very useful, but I haven't been able to find a good way to display the stack trace.

I am using doom emacs on arch.

jeetelongname commented 1 year ago

Hiya,

Try not bytecompiling the package like so


(package! dired-dragon :recipe (:host github :repo "jeetelongname/dired-dragon"
                                :build (:not compile)))

This is a problem within the package I have not solved. As the package is mostly a dispatch to an external app, the performance dip should not be noticeable.
gvalson commented 1 year ago

I've disabled byte compilation as instructed and the package seems to work. For reference to anyone else, here is the configration I am using (doom emacs). In packages.el:

(package! dired-dragon :recipe (:host github
                                :repo "jeetelongname/dired-dragon"
                                :build (:not compile)))

In config.el:

(use-package! dired-dragon
  :after dired
  :init (setq dired-dragon-location (executable-find "/usr/bin/dragon-drop")))
jeetelongname commented 1 year ago

You should use :config to set the location. This will override mine after mine is set.

In any case I will consider this solved and close this.