compas imports - work with pylance intellisense
See original GitHub issueFeature Request
Pylance is a feature rich python language plugin for VSCode. It provide code analysis and intellisense.
The intellisense function works with python default functions and types and almost all other libraries I used (such as numpy). However it does not work with compas.
I suspect this is caused by the 2-layer-deep import routing that compas uses. If I write the full path, or in fact keep the default full path that Pylance automatically creates, the intellisense works, See below where intersection_line_plane
is yellow, that one works.
I think @Achillx has faced similar problem.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:13 (13 by maintainers)
Top Results From Across the Web
List comprehension in __all__ definition hides module ...
Importing a function from a sub-package using from package import ... compas imports - work with pylance intellisense compas-dev/compas#621.
Read more >VSCode pylance doesn't IntelliSense for my local modules
I tried to add ./lib/ to the python.autoComplete.extraPaths property in VSCode which didn't work. As seen here it will not show any suggestions ......
Read more >Have you tried Pylance for VS Code? If not, here's why you ...
The Pylance extension offers a feature which automatically adds imports to the top of your Python files when you reference a dependency in...
Read more >Pylance - Visual Studio Marketplace
Fast, feature-rich language support for Python. Pylance is an extension that works alongside Python in Visual Studio Code to provide performant ...
Read more >Announcing Pylance: Fast, feature-rich language support ...
Pylance supercharges your Python IntelliSense experience with rich type information, helping you write better code, faster.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@brgcode and all who worked on this. Just wanted to say thank you. Worked perfectly with VScode and pylance now. 👍
solved since version
1.2.0