Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in blamer--safety-renderer: wrong type argument stringp nil #76

Open
tjtrabue opened this issue Feb 22, 2025 · 0 comments
Open

Error in blamer--safety-renderer: wrong type argument stringp nil #76

tjtrabue opened this issue Feb 22, 2025 · 0 comments

Comments

@tjtrabue
Copy link

Hello everyone,

Thank you so much for this cool plugin!!! It has made my life easier for a long time now. I recently returned to using blamer after a hiatus of a year, and I am getting this error when I enable it:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  string-trim-right(nil nil)
  string-trim(nil)
  blamer--async-parse-line-info("\33[34m0c748db93 (Tom Trabue Mar 10 2022      187) \33[m    :hook" #f(compiled-function (commit-info) #<bytecode 0x50bfd9bfa2cd0e5>) 187 (overlay-popup))
  blamer--handle-async-blame-info-result("\33[34m0c748db93 (Tom Trabue Mar 10 2022      187) \33[m    :hook\n" #<buffer my-flycheck.org> 187 (overlay-popup) overlay-popup)
  #f(compiled-function (commit-infos) #<bytecode 0x308e20cdd378b76>)("\33[34m0c748db93 (Tom Trabue Mar 10 2022      187) \33[m    :hook\n")
  blamer--async-start((lambda nil (require 'vc-git) (apply #'vc-git--run-command-string "/home/thegeneral/workspace/dotfiles/link/emacs/plugin-notebook/my-flycheck.org" '("blame" "-L" "187,187"))) #f(compiled-function (commit-infos) #<bytecode 0x308e20cdd378b76>))
  blamer--get-async-blame-info("/home/thegeneral/workspace/dotfiles/link/emacs/plugin-notebook/my-flycheck.org" 187 187 #f(compiled-function (commit-infos) #<bytecode 0x308e20cdd378b76>))
  blamer--render(overlay-popup)
  blamer--safety-render()
  apply(blamer--safety-render nil)
  timer-event-handler([t 0 0 500000 nil blamer--safety-render nil idle 0 nil])

Here is my use-package configuration:

  (use-package blamer
    :demand t
    :custom
    (blamer-idle-time 0.5)
    (blamer-min-offset 70)
    ;; I set this to nil to try to avoid my error
    (blamer-enable-async-execution-p nil)
    (blamer-type 'overlay-popup)
    (blamer--overlay-popup-position 'smart)
    :custom-face
    (blamer-face ((t :foreground "#7a88cf"
                     :background nil
                     :height 140
                     :italic t)))
    :config
    (global-blamer-mode 1))

Do you know what the problem could be?

Thank you so much, and please let me know if there is any further information I can provide for you.

-tjtrabue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant