While using harpoon and not working in a Project not managed by projectile I encountered an issue when switching files. After executing harpoon-go-to-1 I got this debugger trace:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
harpoon--current-file-directory()
harpoon-project-name-function()
harpoon--cache-key()
harpoon--file-name()
harpoon-go-to(1)
harpoon-go-to-1()
After a bit of investigating the issue seems to stem from the use of thebuffer-file-name variable in the function harpoon--current-file-directory while being called from within a with-temp-buffer macro inside of the function harpoon-go-to. Inside of harpoon-go-to the function buffer-file-name is also used inside of the with-temp-buffer macro which will probably also cause an error with the file-truename function.
While using harpoon and not working in a Project not managed by projectile I encountered an issue when switching files. After executing
harpoon-go-to-1I got this debugger trace:After a bit of investigating the issue seems to stem from the use of the
buffer-file-namevariable in the functionharpoon--current-file-directorywhile being called from within awith-temp-buffermacro inside of the functionharpoon-go-to. Inside ofharpoon-go-tothe functionbuffer-file-nameis also used inside of thewith-temp-buffermacro which will probably also cause an error with thefile-truenamefunction.