-
Notifications
You must be signed in to change notification settings - Fork 217
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
basedpyright cannot execute code action #1117
Comments
Can you give me code for test ? |
OK. Here is the example test code (whole file): if __name__ == '__main__':
print(os.listdir("."))
Thank you! |
From your image, it seems like you are using |
Yes, I just use ruff as code_action backend, haven't test basedpyright's code_action, sorry, too busy recently. |
我记起来了, 一些大佬反馈 pyright 在大项目中启动特别慢, 研究 VSCode 发现, 他们在 basedpyright-langserver 或 pyright 启动后面添加 --cancellationReceive=file:%FILEHASH% 这个参数来解决性能问题。 但是这个性能优化也会导致 pyright lsp server 不会发送诊断消息, 刚好 ruff 的诊断性能很好, 就默认用多服务器来规避这个问题。 具体讨论可以看: https://emacs-china.org/t/lsp-bridge/20786/2568?u=manateelazycat |
For better debugging this issue, I only enabled
basedpyright
single language server.Example python code:

When I run
lsp-bridge-code-action
command onreverse
, it prompts me with this warning:lsp bridge log:
However, when I use
eglot
, I can see the code action list and execute them successfully. Here is the eglot log (beautified json):The text was updated successfully, but these errors were encountered: