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

Invalid face attribute while using centaur-tabs #30

Closed
CsBigDataHub opened this issue May 16, 2022 · 11 comments
Closed

Invalid face attribute while using centaur-tabs #30

CsBigDataHub opened this issue May 16, 2022 · 11 comments
Labels
external bug Not a problem with the modus-themes

Comments

@CsBigDataHub
Copy link

Hi @protesilaos ,
I am not sure if you are still active in github.

I am reporting a bug here until figure out how to report one on SourceHut.

My *Messages* buffer is flooded with error when using centaur-tabs below -

Invalid face attribute :foreground nil
Invalid face attribute :background nil [5 times]

Theme used - modus-vivendi

I am not sure where this bug needs to be fixed, so I opened a issue in centaur-tabs repo as well.

ema2159/centaur-tabs#187

probably this issue similar to the issue below - ema2159/centaur-tabs#102

@protesilaos
Copy link
Owner

Hello @CsBigDataHub!

It is a bug in the centaur-tabs. I sent a PR some months ago: ema2159/centaur-tabs#179. Maybe you want to mention it in your issue.

@protesilaos protesilaos added the external bug Not a problem with the modus-themes label May 16, 2022
@CsBigDataHub
Copy link
Author

Thanks @protesilaos,

Tested your PR, Invalid face attribute :background nil has disappeared.

Still seeing Invalid face attribute :foreground nil

evil-line-move: Buffer is read-only: #<buffer *Messages*>Invalid face attribute :foreground nil
Invalid face attribute :foreground nil [5 times]
evil-line-move: Buffer is read-only: #<buffer *Messages*>Invalid face attribute :foreground nil
Invalid face attribute :foreground nil [23 times]
evil-line-move: Buffer is read-only: #<buffer *Messages*>Invalid face attribute :foreground nil
Invalid face attribute :foreground nil [35 times]

@protesilaos
Copy link
Owner

protesilaos commented May 16, 2022

My email didn't reach this issue... GitHub seems to have this problem. Copying below.


Tested your PR, Invalid face attribute :background nil has disappeared.

Very well!

Still seeing Invalid face attribute :foreground nil

evil-line-move: Buffer is read-only: #<buffer *Messages*>Invalid face attribute :foreground nil
Invalid face attribute :foreground nil [5 times]
evil-line-move: Buffer is read-only: #<buffer *Messages*>Invalid face attribute :foreground nil
Invalid face attribute :foreground nil [23 times]
evil-line-move: Buffer is read-only: #<buffer *Messages*>Invalid face attribute :foreground nil
Invalid face attribute :foreground nil [35 times]

We need to track the source of 'evil-line-move'. It probably is the
same issue where it expects an explicit :foreground attribute and thus
does not work without one.

EDIT: evil-line-move NOT mode

@CsBigDataHub
Copy link
Author

@protesilaos This is just me pressing <down arrow> on *Messages* buffer(read-only buffer) , which flashes warning bell and Invalid face attribute :foreground nil will appear.

@CsBigDataHub
Copy link
Author

Is there a way to find what is casing this message? toggle-debug-on-error would not trigger any errors when this message appears.

@protesilaos
Copy link
Owner

I am not sure how to debug this. Does it only happen with the down arrow? If yes, then we need to find which command is called by that key (M-x describe-key or C-h k and then down arrow) and continue searching from there.

@CsBigDataHub
Copy link
Author

Thanks again @protesilaos ,

Found the culprit. Setting both options causes this error.

(setq centaur-tabs-set-icons t)
(setq centaur-tabs-plain-icons t)

Just setting one option fixed it. Went with (setq centaur-tabs-set-icons t).

Your PR worked just fine.

protesilaos added a commit that referenced this issue Aug 2, 2022
centaur-tabs has a bug where it cannot read the value of a face if it
uses the standard ':inherit' attribute.  I have sent a patch to fix it,
but have received no response since February:
<ema2159/centaur-tabs#179>.

Relevant reports:

- <#30>
- <https://gitlab.com/protesilaos/modus-themes/-/issues/288>
- <#15>

I am happy to reinstate support for centaur-tabs as soon as the package
gets the maintenance it needs.
@protesilaos
Copy link
Owner

@CsBigDataHub The centaur-tabs maintainer has merged my patch: ema2159/centaur-tabs#179

I will reinstate support for the package at the theme level.

protesilaos added a commit that referenced this issue Sep 20, 2022
I had removed support for centaur-tabs in commit 2235ce5 (done on
2022-08-02).  I wrote:

    centaur-tabs has a bug where it cannot read the value of a face if it
    uses the standard ':inherit' attribute.  I have sent a patch to fix it,
    but have received no response since February:
    <ema2159/centaur-tabs#179>.

    Relevant reports:

    - <#30>
    - <https://gitlab.com/protesilaos/modus-themes/-/issues/288>
    - <#15>

    I am happy to reinstate support for centaur-tabs as soon as the package
    gets the maintenance it needs.

My patch/pull-request is now merged and the package is actively
maintained once again.  Hence the decision to bring back support for it,
as promised.
@CsBigDataHub
Copy link
Author

Thanks @protesilaos

@protesilaos
Copy link
Owner

You are welcome!

@protesilaos
Copy link
Owner

protesilaos commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external bug Not a problem with the modus-themes
Projects
None yet
Development

No branches or pull requests

2 participants