Skip to content

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

Open
@JohnDevlopment

Description

@JohnDevlopment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions