Replies: 2 comments
-
Should pyright be forked by someone who actually cares about editors other than VS code? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, I'll do that later. There's already an Emacs bugs for it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
python-ts-mode
is configuredpyright
is installed andeglot
configured to use it forpython-ts-mode
eglot-prefer-plaintext
isnil
foo = 1
foo
As you can see from the backtrace, Pyright replied with
which then resulted in an attempt to fontify
as Python code. Since this is invalid Python code due to the
(variable)
prefix,python-ts-mode
errored out.Pyright seems to add these prefixes everywhere; e.g., when one hovers over
print
, Pyright replies with(function) def print(...)
.Should Eglot try to strip these prefixes? Should it ignore fontification errors in
eglot--format-markup
?In the meantime, a workaround is to set
eglot-prefer-plaintext
tot
.Beta Was this translation helpful? Give feedback.
All reactions