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

Warnings: nil value is invalid #753

Closed
seagle0128 opened this issue Sep 7, 2022 · 8 comments
Closed

Warnings: nil value is invalid #753

seagle0128 opened this issue Sep 7, 2022 · 8 comments
Labels
is:bug Something isn't working as intended re:emacs29
Milestone

Comments

@seagle0128
Copy link
Contributor

Theme(s)

All themes (base)

What were you expecting?

No warnings

What actually happened?

In recent 29.1, these warnings come out.

Warning: setting attribute ‘:background’ of face ‘ivy-minibuffer-match-face-1’: nil value is invalid, use ‘unspecified’ instead.
...

Steps to reproduce

  1. Installed doom-themes.
  2. Load doom-one theme.

Operating system

All

Emacs version

29.0.50

Installed commit of doom-themes

latest

@seagle0128 seagle0128 added is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet labels Sep 7, 2022
@elken
Copy link
Contributor

elken commented Sep 7, 2022

Think this is related to emacs-mirror/emacs@d0a66f3

AFAIU I don't think we're planning to support HEAD until things start to stabilize a bit.

I would imagine a PR to resolve it wouldn't be rejected though :)

@hlissner hlissner added re:emacs29 and removed needs-triage Issue hasn't been assessed yet labels Sep 7, 2022
@hlissner hlissner added this to Triage Sep 7, 2022
@hlissner hlissner added this to the v2.4.0 milestone Sep 7, 2022
@hlissner hlissner moved this to Unreviewed in Triage Sep 7, 2022
@hlissner hlissner moved this from Unreviewed to Confirmed in Triage Sep 7, 2022
@seagle0128
Copy link
Contributor Author

Make sense...

@hlissner
Copy link
Member

This issue should now be resolved. Let me know if that isn't the case and I'll reopen it. Thanks for bringing it to my attention!

@hlissner hlissner moved this from Confirmed to Resolved in Triage Sep 16, 2022
@seagle0128
Copy link
Contributor Author

seagle0128 commented Jan 16, 2023

Hi @hlissner I still got this error:

Warning: setting attribute ‘:background’ of face ‘font-lock-comment-face’: nil value is invalid, use ‘unspecified’ instead.

@Ethanlinyf
Copy link

I also still have the same issue:

Warning: setting attribute ‘:background’ of face ‘font-lock-comment-face’: nil value is invalid, use ‘unspecified’ instead.

emacs-plus@29 on MacBook Pro 2021 with macOS, Ventura 13.1

@seagle0128
Copy link
Contributor Author

seagle0128 commented Mar 5, 2023

I think this may cause the issue. e.g.

((font-lock-comment-face &override)
    :background (if doom-one-brighter-comments (doom-lighten bg 0.05)))
((font-lock-comment-face &override) :background (if doom-feather-light-brighter-comments base0) :italic t)

@BobenHome
Copy link

Hi @hlissner I still got this error:

Warning: setting attribute ‘:background’ of face ‘font-lock-comment-face’: nil value is invalid, use ‘unspecified’ instead.

How did you fix it later?

hlissner pushed a commit that referenced this issue Sep 8, 2023
Addresses the following warnings:

```
Warning: setting attribute ‘:foreground’ of face ‘mode-line’: nil value is invalid, use ‘unspecified’ instead.
Warning: setting attribute ‘:background’ of face ‘font-lock-comment-face’: nil value is invalid, use ‘unspecified’ instead.
```

Ref: #753
@hlissner
Copy link
Member

hlissner commented Sep 16, 2023

I've slowly been stomping out the lingering nil's in our themes. Though there may be a couple more, I think I can consider this issue mostly resolved for now. Feel free to follow up here if you find an issue that still emits this warning, however. I will track those in #793 in any case.

hlissner added a commit that referenced this issue Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:bug Something isn't working as intended re:emacs29
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants