python-language-server icon indicating copy to clipboard operation
python-language-server copied to clipboard

Support extension modules built in-place

Open brettcannon opened this issue 7 years ago • 5 comments

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.

brettcannon avatar Oct 04 '18 19:10 brettcannon

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 avatar Oct 05 '18 21:10 MikhailArkhipov

#1076

MikhailArkhipov avatar Jun 04 '19 01:06 MikhailArkhipov

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

shelper avatar Feb 02 '21 22:02 shelper

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

brettcannon avatar Feb 03 '21 17:02 brettcannon

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

chopin1998 avatar Mar 26 '21 10:03 chopin1998