Skip to content

Renaming symbols does not work with Poetry venv as interpreter in VSCode #1773

@haavardnk

Description

@haavardnk

Describe the Bug

When using a Poetry virtual environment with Pyrefly in VSCode, the rename symbol function does not work. It returns "The element can't be renamed".

It works when using any system or brew installed python interpreters (3.12, 3.13, 3.14).

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

Using Pyrefly Extension version: 0.44.1

INFO Handling non-canceled request textDocument/prepareRename (300)
INFO Language server processed event LspRequest(textDocument/prepareRename) in 0.00s (0.00s waiting)

Metadata

Metadata

Assignees

No one assigned

    Labels

    language-serverIssues specific to our IDE integration rather than type checking

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions