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

Lots of these message "Invalid face reference: (diff-changed|dif-removed|diff-added) #69

Closed
jangid opened this issue Nov 2, 2020 · 3 comments

Comments

@jangid
Copy link

jangid commented Nov 2, 2020

I get lots of these *Messages* when visiting first file under direnv control:

Invalid face reference: diff-changed
Invalid face reference: diff-removed
Invalid face reference: diff-added
Invalid face reference: diff-changed
Invalid face reference: diff-removed
Invalid face reference: diff-added
Invalid face reference: diff-changed
Invalid face reference: diff-removed

Is this a bug?

@cprussin
Copy link

cprussin commented Jan 16, 2021

Fix for this is to load diff-mode before loading direnv-mode, i.e. something like this if you're using use-package:

(use-package direnv
  :after diff-mode
  :config (direnv-mode))

EDIT but I still think it's a bug, direnv-mode should require its own dependencies properly

@wbolster
Copy link
Owner

wbolster commented Jan 17, 2021

i added (require 'diff-mode) in 381176f

(package-lint doesn't warn about font faces, only about symbols)

@jangid
Copy link
Author

jangid commented Jan 17, 2021

Thanks a lot @wbolster

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

3 participants