Giter VIP home page Giter VIP logo

Comments (8)

heejaechang avatar heejaechang commented on June 16, 2024

might be dupe of #5836

but that said, it would be nice to have more detail repro steps

from pylance-release.

debonte avatar debonte commented on June 16, 2024

@SDiWK, can you please provide repro steps with code, required packages (inc. versions), etc?

from pylance-release.

SDiWK avatar SDiWK commented on June 16, 2024

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

heejaechang avatar heejaechang commented on June 16, 2024

@SDiWK github says I dont have access to the repository.

from pylance-release.

SDiWK avatar SDiWK commented on June 16, 2024

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

heejaechang avatar heejaechang commented on June 16, 2024

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.

SDiWK avatar SDiWK commented on June 16, 2024

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.

heejaechang avatar heejaechang commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.