Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide quick fix for automatic import #3289

Closed
ydmykr opened this issue Sep 6, 2022 · 3 comments
Closed

Provide quick fix for automatic import #3289

ydmykr opened this issue Sep 6, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@ydmykr
Copy link

ydmykr commented Sep 6, 2022

image

image

It is strange that automatic import is not provided in quick repair, which requires me to input it manually

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Sep 6, 2022
@judej judej added the needs investigation Could be an issue - needs investigation label Sep 6, 2022
@bschnurr bschnurr added bug Something isn't working and removed needs investigation Could be an issue - needs investigation labels Sep 6, 2022
@heejaechang
Copy link
Contributor

it is happening because pyngrok's __init__.py is empty. and for third party lib, we only support top level symbols of top __init__.py and we ignore package that is empty.

for this, you first need to enable indexing in your settings.json - "python.analysis.indexing": true,

and need to add this hidden option. - "python.analysis.packageIndexDepths":[["pyngrok", 3, true]]

but that being said, according to https://pyngrok.readthedocs.io/en/latest/index.html
pyngrok.connect doesnt exist. so, I dont think connectc will work.

@heejaechang
Copy link
Contributor

created an issue - #3293

@bschnurr
Copy link
Member

bschnurr commented Sep 6, 2022

Closing due to external and workaround.

@bschnurr bschnurr closed this as completed Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants