Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Support extension modules built in-place #197

Open
brettcannon opened this issue Oct 4, 2018 · 5 comments
Open

Support extension modules built in-place #197

brettcannon opened this issue Oct 4, 2018 · 5 comments

Comments

@brettcannon
Copy link
Member

microsoft/vscode-python#2466

If you do python3 setup.py build_ext --inplace for e.g. _hellomodule.c on maOS you end up with a _hello.cpython-37m-darwin.so file in the same directory as setup.py. The language server is not picking the module up for analysis even though it can be imported thanks to being in the current working directory.

@MikhailArkhipov
Copy link

This is b/c we do not watch the workspace paths. If we did't we'd be reloading modules on each file save including temp backups VS Code creates. The solution needs mechanism on what to watch and what to ignore in order to determine what changed in the importable set.

@MikhailArkhipov
Copy link

#1076

@shelper
Copy link

shelper commented Feb 2, 2021

any update? the completion support for such module works in native python shell. why it has problem with the language server?

@brettcannon
Copy link
Member Author

@shelper there's no update and development of MPLS has mostly moved over to Pylance at this point.

@chopin1998
Copy link

similar problem. a C module (*.so lib file) can dynamic detected by ipython, but vscode cannot

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

4 participants