syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.69k stars 4.9k forks source link

Enabling `nav-flash` layer causes persistent `Can’t load buffer Makefile: Wrong type argument: overlayp, nil` errors. #15617

Closed pataquets closed 2 years ago

pataquets commented 2 years ago

Description :octocat:

Enabling nav-flash layer causes persistent Can’t load buffer Makefile: Wrong type argument: overlayp, nil errors.

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: On each file open, the following error appears:

Can’t load buffer Makefile: Wrong type argument: overlayp, nil

Also, jumping pages in buffers or directly invoking layer's nav-flash function causes the error to appear.

Expected behaviour: :heart: :smile: No error.

System Info :computer:

thanhvg commented 2 years ago

Does it work if you remove nav-flash-use-pulse t. Also does your w3m work?

lebensterben commented 2 years ago

it turns out that if nav-flash-use-pulse is set to any non-nil value, spacemacs home buffer won't be loaded correctly. Therefore there must be some errors occurred during an invocation of nav-flash.

pataquets commented 2 years ago

Confirming, problem only exists if setting nav-flash-use-pulse to t. Setting it to nil avoids the error. My w3m package works OK, but I only use it occasionally.

lebensterben commented 2 years ago

I'm not able too figure out the cause of the bug. I will make a workaround that force nav-flash-use-pulse to nil while emitting a warning.

(If I set nav-flash-use-pulse to t after Spacemacs started it works though)

lebensterben commented 2 years ago

I find the fix from Doom Emacs and I will push them.