Skip to content

[Bug]: Vscode ty does not work with venv #802

@TrapsterDK

Description

@TrapsterDK

What happened?

When using the standard venv, Ty in vscode is not able to find to use the venv due to the pyvenv.cfg using relative paths as far as I could understand.

py_venv(
    name = "venv",
    tags = ["manual"],
    deps = all_requirements,
)

This might be a Ty issue not sure.

Version

Development (host) and target OS/architectures:
Windows

Output of bazel --version:
8.5.1

Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:

Language(s) and/or frameworks involved:

How to reproduce

py_venv(
    name = "venv",
    tags = ["manual"],
    deps = all_requirements,
)
bazel run //:venv
If you select .venv/bin/python3 in vscode as interpreter it makes Ty crash.

Any other information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions