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

LSP opens a bunch of type stubs when I save a new file in a project #107

Open
JohnDevlopment opened this issue Dec 8, 2024 · 0 comments

Comments

@JohnDevlopment
Copy link

I use basedpyright. In my project, whenever I create a new file, activate LSP mode and save the file, it decides to open a bunch of stub files, as well as all the other files in my project. I have no idea what causes this and it's highly annoying

*lsp-log*

Command "basedpyright-langserver --stdio" is present on the path.
Command "pyls" is not present on the path.
Command "pylsp" is not present on the path.
Command "ruff server" is not present on the path.
Command "semgrep lsp" is not present on the path.
Command "basedpyright-langserver --stdio" is present on the path.
Command "pyls" is not present on the path.
Command "pylsp" is not present on the path.
Command "ruff server" is not present on the path.
Command "semgrep lsp" is not present on the path.
Found the following clients for $HOME/github/.local/jtemplate/jtemplate/prompt.py: (server-id pyright, priority 2)
The following clients were selected based on priority: (server-id pyright, priority 2)
basedpyright language server 1.1.389 starting
Server root directory: file://$OTHER_HOME/github/.local/jtemplate/.venv/lib/python3.12/site-packages/basedpyright/dist
Starting service instance "jtemplate"
Creating watchers for following 7 folders:
  $OTHER_HOME/github/.local/jtemplate
  $OTHER_HOME/github/.local/jtemplate/Jinja2_templates
  $OTHER_HOME/github/.local/jtemplate/Jinja2_templates/temp
  $OTHER_HOME/github/.local/jtemplate/_minted-technical-doc
  $OTHER_HOME/github/.local/jtemplate/jtemplate
  $OTHER_HOME/github/.local/jtemplate/jtemplate/templates
  $OTHER_HOME/github/.local/jtemplate/tests
Loading pyproject.toml file at $HOME/github/.local/jtemplate/pyproject.toml
Setting pythonPath for service "jtemplate": "$HOME/github/.local/jtemplate/.venv/bin/python"
No include entries specified; assuming $HOME/github/.local/jtemplate
Auto-excluding **/node_modules
Auto-excluding **/__pycache__
Auto-excluding **/.*
Found 15 source files

Video

output_half_size.mp4
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