Closed Dr-Irv closed 5 years ago
This warning has been removed in the latest version, 0.3.39. You should be able to restart VS Code to trigger an update to the latest language server version. If you don't get it automatically, you can force an update via: https://github.com/microsoft/vscode-python/issues/3977
Environment data
"python.jediEnabled"
set to; more info #3977): FalseExpected behaviour
No error message
Actual behaviour
Get message (repeated twice) in "Problems" that says "Function already defined at line 1.Python(function-redefined)"
Line 1 is highlighted indicating there is an error on the
import
statement.Steps to reproduce:
Enter this code, and wait a while until the Python analysis completes:
After pasting the above into the editor, and letting the analysis complete, it may be necessary to add another lambda function to make the next analysis show the error message. In other words, change
to
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)