generated from cloudwego/.github
-
Notifications
You must be signed in to change notification settings - Fork 16
feat: Python parser #53
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…n-lsp/python-lsp-server), and plus the following pull requests: 1. semanticTokens/full: python-lsp/python-lsp-server#645 2. typeDefinition: python-lsp/python-lsp-server#533 Maybe also 3. implementation: python-lsp/python-lsp-server#644
Aside from (partially) implementing the python specification: * fix hardcoded semanticTokens/range availability * remove the unnecessary implementationProvider check
AsterDY
reviewed
Jul 28, 2025
@AsterDY pylsp 是 MIT 许可证的,没问题的话可以合并 |
Hoblovski
commented
Jul 28, 2025
testdata/pyfileimports/main.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
只是测例……………… 过两天统一加 license 把
AsterDY
approved these changes
Jul 30, 2025
现在还是需要用户自己安装pylsp是吧? @Hoblovski |
暂时是的,就是一个 submodule 然后 pip install . 。因为用户可能希望装到不同的 conda/venv 里,这个还是用户确认一下,不用一键脚本弄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
实现 python 的 parser,基于修改后的 python-lsp-server.
LSP 较弱,可能考虑的其他 LSP:jedi,pylance, basedpyright
修改后的 python-lsp-server 在 submodule 中。
安装命令是:
python -m pip install -e .
,然后检查pylsp
是否在 PATH 里。有很多 hack/todo/xxx,但是最紧急的是 integration/system tests.
Check the PR title.
(Optional) Translate the PR title into Chinese.
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en:
zh(optional):
(Optional) Which issue(s) this PR fixes:
(optional) The PR that updates user documentation: