Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

compas imports - work with pylance intellisense

See original GitHub issue

Feature 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.

2020-09-23 23_22_21

I think @Achillx has faced similar problem.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

yck011522commented, Apr 29, 2021

@brgcode and all who worked on this. Just wanted to say thank you. Worked perfectly with VScode and pylance now. 👍

brgcodecommented, Mar 18, 2021

solved since version 1.2.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found