You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extension version (available under the Extensions sidebar): 2018.12.1
OS and version: Debian Buster (kernel 4.19.0-1-amd64)
Python version (& distribution if applicable, e.g. Anaconda): 3.7.2 64 bits
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A (tested with none and conda)
Relevant/affected Python packages and their versions: N/A
Expected behaviour
A variable preceded with a star operator should be detected as a normal variable
Actual behaviour
Variables declared with star operator are not registered as normal variable. They create an issue "[use-before-def]"
Steps to reproduce:
Open blank file
Enter code:
a,*b,c = [1,2,3,4,5]
print(a, b, c)
b is underlined with error: 'b' used before definition [use-before-def]
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Starting Microsoft Python language server.
Microsoft Python Language Server version 0.1.72.0
Initializing for /usr/bin/python3
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
Environment data
Expected behaviour
A variable preceded with a star operator should be detected as a normal variable
Actual behaviour
Variables declared with star operator are not registered as normal variable. They create an issue "[use-before-def]"
Steps to reproduce:
b
is underlined with error:'b' used before definition [use-before-def]
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
)If anything missing or wrong, please let me know
The text was updated successfully, but these errors were encountered: