Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Pylance not compatible with default editable installs in setuptools>64 #84

Open
coretl opened this issue Nov 15, 2022 · 1 comment
Open

Comments

@coretl
Copy link
Contributor

coretl commented Nov 15, 2022

https://github.com/microsoft/pyright/blob/main/docs/import-resolution.md#editable-installs

We should do pip install -e . --config-settings editable_mode=compat in the dev container

@coretl coretl changed the title Pylance not compatible with setuptools>64 Pylance not compatible with default editable installs in setuptools>64 Nov 15, 2022
@coretl
Copy link
Contributor Author

coretl commented Dec 16, 2022

Strict mode appears to be the future, but it creates a directory of softlinks. This means that clicking through takes you to a soft link, not the file itself, which is annoying. You also need to then set the breakpoint on the link not the original. Workarounds exist:

microsoft/debugpy#1152 (comment)

However I think we should use compat mode for as long as it works...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant