Comments (6)
@heejaechang got it.
Perhaps it would be good to specify this lacking feature in the READ.me
or the documentation more clearly?
I think the reason why issues on this topic keep appearing this is that users can only find outdated information at stackoverflow or old comments in this repo. Maybe I did not find the right section, but if it was addressed clearly (i.e., directly stating "we do not support user file/local discovery, do this instead") it would do wonders for clarity.
from pylance-release.
it is a dup of #5434
currently it is by design. we don't consider alias (import x
or from y import x
) in user files (ones you refer as local import
) for now due to perf issue. (unlike installed packages that dont change once installed, these local imports, we need to repeatedly re-index all dependent files as user change a file)
we are planning to add full
mode for people who wants it (it is opt in since most of people don't want to pay that perf hit) but no specific ETA yet.
from pylance-release.
@irm-codebase it looks like I misunderstood your issue. so you are asking about unresolve import
not add import
code action?
from pylance-release.
Correct. Here, parse_lombadi
is on the same directory as the script calling it.
from pylance-release.
I tried your scenario on both windows
, WSL
, 'Linux` and all worked for me. I guess we need to improve our logging to see what is going on.
from pylance-release.
I added new logging for this case. it will be included in our next pre-release. we probably need that log (unless we can repro it) to figure out what is going on.
from pylance-release.
Related Issues (20)
- Find all references finds references in 3rd party libraries
- Go to definition when already on a definition of a variable jumps to the first use
- Renames are not being applied to notebook cells HOT 1
- Docstring templating HOT 1
- "Add...to extraPaths" doesn't work in multiroot workspace HOT 3
- Installing packages into a kernel doesn't update Pylance HOT 1
- Default package index depth for django should be higher
- performance issue HOT 1
- Support for Go to Definition on pytest fixtures when using indirect parametrize HOT 2
- str const not recognized correctly in function return type annotaion HOT 1
- Structural pattern matching is having an issue narrowing the type of tuple elements when they are unions HOT 1
- Why not to just take the type of variable? Why are you guessing it? HOT 1
- Auto Refactoring - move local variable as function argument with default value [Python] HOT 1
- Completing an overload doesn't auto import the necessary imports HOT 3
- Pylance fails to start on VS Code launch HOT 1
- Pylance failed to start service instance, caused by a regexp error HOT 1
- A type statement can be used only within a module or class scope HOT 3
- Intellisense is popping up parameters when it is definitely NOT needed HOT 2
- Specifying node.exe in an unknown location is not warned by Pylance HOT 2
- Variable inlay type hints not displaying HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylance-release.