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

Importing any python file will result in yellow squiggly line #931

Closed
pixelated-stupid opened this issue Feb 9, 2021 · 3 comments
Closed

Comments

@pixelated-stupid
Copy link

pylance
I cant import any python file
even though the python file is in the same folder

To Reproduce
just import any python file

Expected behavior
the code still works
so why does pylance adds the yellow squiggly line

@erictraut
Copy link
Contributor

erictraut commented Feb 9, 2021

It looks like you're using pylance, so I'm moving this issue to pylance-release.

@erictraut erictraut transferred this issue from microsoft/pyright Feb 9, 2021
@jakebailey
Copy link
Member

Because your imports are not rooted from your workspace folder, we can't tell what art means without adding an extraPath that says "I can import from caeser-cipher".

See: https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#unresolved-import-warnings

#253 related.

@jakebailey
Copy link
Member

jakebailey commented Aug 27, 2021

Closing in favor of #68. This issue is technically fixed already via an import heuristic experiment that should already be on for everyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants