-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
[BUG] "h:\code.py" is overriding the stdlib module "code" #106
Comments
This issue is unrelated to the extension. It's occurring due to the way the Pylance language server is configured; Pylance has no concept of CircuitPython or MicroPython and is attempting to treat what it has found in the same way as it would 'proper' Python. I had the same experience, and fixed it like this:
"python.analysis.diagnosticSeverityOverrides" : {
"reportShadowedImports": "none"
} Hope that helps! |
This might be a good thing to add to the extension docs. I ran into it as well. |
According to the documentation:
So an arguably better solution is to name your main program file |
Much better solution (IMHO) is just to rename code.py to main.py: it won't conflict with the standard libraries & will still get run on boot. |
Describe the bug
Error message "h:\code.py" is overriding the stdlib module "code"
To Reproduce
Steps to reproduce the behavior:
Add CIRCUTPY drive with Open Folder
Open code.py
Desktop (please complete the following information):
Additional context
Adafruit Circuit Playground Express with adafruit-circuitpython-circuitplayground_express-en_US-7.3.3.uf2
The text was updated successfully, but these errors were encountered: