Open tmythicator opened 3 years ago
Unable to reproduce. But I noticed a small typo in the config, try this
(use-package blamer
:quelpa (blamer :fetcher github :repo "artawower/blamer.el")
:custom
(blamer-idle-time 0.3)
(blamer-min-offset 70)
:custom-face
(blamer-face ((t :foreground "#7a88cf"
:background nil
:height 140
:italic t)))
:config
(global-blamer-mode 1))
Tried to reproduce it on pure emacs (ubuntu 20.04) GNU Emacs 27.2.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20) of 2021-10-26
If the first fix doesn't help, try temporarily using these settings to see if there is a warning
The same error in dashboard
I have tried first and second suggested config as well, still getting this error. Further findings: This config doesn't produce the error:
(use-package blamer
:quelpa (blamer :fetcher github :repo "artawower/blamer.el"))
This config on the other hand produces the error:
(use-package blamer
:quelpa (blamer :fetcher github :repo "artawower/blamer.el")
:config
(global-blamer-mode 1))
Unable to reproduce. But I noticed a small typo in the config, try this
(use-package blamer :quelpa (blamer :fetcher github :repo "artawower/blamer.el") :custom (blamer-idle-time 0.3) (blamer-min-offset 70) :custom-face (blamer-face ((t :foreground "#7a88cf" :background nil :height 140 :italic t))) :config (global-blamer-mode 1))
Tried to reproduce it on pure emacs (ubuntu 20.04) GNU Emacs 27.2.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20) of 2021-10-26
If the first fix doesn't help, try temporarily using these settings to see if there is a warning Full config
I narrowed down the problem. It happens whenever I execute global-blamer-mode
. Stacktrace:
Debugger entered--Lisp error: (file-missing "Setting current directory" "No such file or directory" "/build/emacs/src/emacs-27.2/")
call-process("/bin/bash" nil t nil "-c" "git rev-parse --is-inside-work-tree")
call-process-shell-command("git rev-parse --is-inside-work-tree" nil t)
shell-command("git rev-parse --is-inside-work-tree" t)
shell-command-to-string("git rev-parse --is-inside-work-tree")
blamer--git-exist-p()
blamer-mode()
global-blamer-mode(toggle)
funcall-interactively(global-blamer-mode toggle)
call-interactively(global-blamer-mode record nil)
Its look like emacs is trying to execute shell comand inside directory that doesn't exist..
Could you check the output from
M-:
(or M-x eval-expression) (shell-command "pwd")
? (You can copy result from Message buffer)
And what happens if you execute git rev-parse --is-inside-work-tree
in directory from pwd
command in terminal?
And one more question, did this happen inside your project? (where the .git exists), or does this only happen when starting emacs and buffers without the project?
Could you check the output from
M-:
(or M-x eval-expression)(shell-command "pwd")
? (You can copy result from Message buffer)
(shell-command "pwd")
evaluates as 0
And I got 0 (#o0, #x0, ?\C-@)Invalid face attribute :background nil
in Message buffer.
And what happens if you execute
git rev-parse --is-inside-work-tree
in directory frompwd
command in terminal?fatal: not a git repository. But that is expected, because I don't have one in my
home
folderAnd one more question, did this happen inside your project? (where the .git exists), or does this only happen when starting emacs and buffers without the project?
It happened when starting emacs or calling global-blamer-mode anywhere, whether there is a .git folder or not.
I apologize for such a long reply. A few days ago I encountered a very similar problem, it happened when I tried to make a new yasnippet inside a folder that did not yet exist on my machine. I tried to fix this behavior in the last commit, can anyone check this?
Config used:
Environment: Emacs 27.2 OS: Linux Warning message: Error (use-package): blamer/:config: Setting current directory: No such file or directory, /build/emacs/src/emacs-27.2/