emacsorphanage / git-gutter

Emacs port of GitGutter which is Sublime Text Plugin
834 stars 70 forks source link

git-gutter error on startup: Invalid function #219

Open nikolas opened 2 years ago

nikolas commented 2 years ago

When I open a file in a git repository with emacs after installing git-gutter, I get the following error:

Invalid function: (exec-result (git-gutter:execute-command "git" t "rev-parse" "--is-inside-work-tree"))

My git-gutter info: ;; Package-Version: 20220423.1704 ;; Package-Commit: b43b81e9f4bd559ed02bdbcaeae7431e2d49ed09 ;; Version: 0.92

I'm on Ubuntu 20.04 LTS.

GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian

gonewest818 commented 2 years ago

I'm on vacation and not close to a proper laptop for this. It appears that error is occurring inside thewhen-let macro which was introduced, I believe, in Emacs 25. It's confusing because if that macro is doing its job it wouldn't be attempting to evaluate exec-result as a function at all.

So unlikely but I guess I'll ask if you've made any modifications to Emacs itself, either patching or replacing elisp files? Otherwise possible you have a conflict with some other elisp package, but that would be a sort of painstaking process to figure out which one it is.