Comments (8)
might be dupe of #5836
but that said, it would be nice to have more detail repro steps
from pylance-release.
@SDiWK, can you please provide repro steps with code, required packages (inc. versions), etc?
from pylance-release.
@SDiWK, can you please provide repro steps with code, required packages (inc. versions), etc?
@debonte, @heejaechang:
shared repro code via repository SDiWK/5861
(very simple setting:
using v2024.5.1 import of class A can't be resolved)
Hope this helps. Thanks and kind regards :-)
from pylance-release.
@SDiWK github says I dont have access to the repository.
from pylance-release.
@heejaechang Can't say why you ran into trouble accessing it. Sorry for the inconvenience. I just made the repository public. There doesn't seem to be a point in restricting access anyway, in this case.
from pylance-release.
we are talking about this right? https://github.com/SDiWK/5861/tree/main
it has only 2 files in it
A.py
class A:
def __init__():
pass
B.py
from A import A
class B(A):
def __init__():
pass
there is only 1 import statement from A import A
. so I assume you are referring that import statement?
for me, it works fine.
can you provide us some logs as described in the troubleshooting guide?
I need to see your settings and env to find out why it didn't work for you.
from pylance-release.
I think, before submitting the logs I should further elaborate a bit:
In my use case I've had the impression that my class (here B) which incorporates a class A, say, doesn't have access to the methods/members of A, even though it should, at least I expected so, as A is imported. To be more precise about what "have access" means:
What's puzzling me -- B does run, however, during coding, VS Code doesn't provide the members of A for "autocomplete".
I think I need to refine my reproduction setting, in order to pinpoint what I meant, and then recur with more detailed information as outlined by you. Many thanks for your time so far.
from pylance-release.
if from A import A
didn't work properly (such as pylance couldn't resolve either A
), then A
in import A
will be unknown symbol. so pylance won't be able to provide anything off it such as autocomplete after A.
from pylance-release.
Related Issues (20)
- Pylance fails to recognice pkgutil.extend_path on src folders on "python.analysis.extraPaths" HOT 1
- Pylance crashed due to oom HOT 5
- Extra indent on Enter when defining function HOT 2
- Inline type hinting doesn't work (global scope) HOT 6
- autoImportCompletions: auto import completions not working at all HOT 3
- не работает Python HOT 1
- "No definition found for" property HOT 5
- dataclass_transform: Fields without default values cannot appear after fields with default values HOT 1
- pylance performance issue generated by vscode HOT 1
- Doc string for sqlalchemy.column is misformatted HOT 1
- Docstring for `param.Parameter.__init__` doesn't have bolded param names HOT 2
- Symlink would block pylance from working HOT 1
- Support lazy loading individual virtualenvs in a multi-root workspace HOT 1
- type hinting for circular referenced TypedDict HOT 2
- Explore Python IntelliSense in Copilot chat code blocks HOT 3
- Sphinx style docstrings claim that return value is named `out`
- Pylance client: couldn't create connection to server. HOT 1
- Signature help isn't formatted beautifully when class docstring is reused for `__init__`
- Go to Definition always opens up stub `.pyi` file even `.py` file exists HOT 11
- Unbound methods are erroneously marked as incompatible with Callable where first argument is of type owner class HOT 4
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.