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

Inconsistent/random/non-deterministic choice of variable faces #84

Open
gbordyugov opened this issue Apr 6, 2023 · 0 comments
Open

Comments

@gbordyugov
Copy link

gbordyugov commented Apr 6, 2023

Hello,

I'm running lsp-mode-20230401.434 and lsp-pyright-20230225.1118 on emacs 28.2 under macos x.

My problem is that the choice of the face used to render variables seems to be random and inconsistent. More over, it can change if I re-open the file again in a freshly-started emacs.

image

image

Both grey and brown variables are using lsp-face-highlight-read with the cursor on them, but the brown additionally use font-lock-variable-name-face.

For both grey and brown variables, lsp-describe-thing-at-point recognise and report them as variables.

This problem occurs within classes declarations and function bodies.

Am I missing an important piece of face choosing logic?

Using zenburn-theme-20230315.1004, too (disabling it doesn't solve the problem though).

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