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
{{ message }}
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
I have a similar issue with my Python.
VS Code version: 1.29.1 (1.29.1)
Extension version (available under the Extensions sidebar): 2018.11.0
OS and version: Ubuntu 18.04.1 LTS
Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.7 64-bit
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Relevant/affected Python packages and their versions: not relevant
Issues disappear if you reload window, but reappear if I make even the slightest edit to the code written. Sometimes they appear as I type (e.g. I type "return True" and issues are " 're' used before definition", " 'ret' used before definition" and so on).
@azdanov commented on Sat Dec 08 2018
Environment data
Expected behaviour
When running provided code snippet there should be no warning.
Actual behaviour
A warning is generated:
'fallbackName' used before definition
Additional Info
This does not happen when type hinting is removed:
Steps to reproduce:
python3 -m venv new/venv
.new/index.py
.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
)@yehorb commented on Sat Dec 08 2018
I have a similar issue with my Python.
VS Code version: 1.29.1 (1.29.1)
Extension version (available under the Extensions sidebar): 2018.11.0
OS and version: Ubuntu 18.04.1 LTS
Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.7 64-bit
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Relevant/affected Python packages and their versions: not relevant
Issues disappear if you reload window, but reappear if I make even the slightest edit to the code written. Sometimes they appear as I type (e.g. I type "return True" and issues are " 're' used before definition", " 'ret' used before definition" and so on).
Issue appears to occur more in longer files.
@azdanov commented on Sat Dec 08 2018
@yehorb Could you create a minimal Github repo with a reproducible error? It will help a lot in fixing this issue.
In my case, this happens because of
typing
.@yehorb commented on Mon Dec 10 2018
Here:
https://github.com/yehorb/VSCode-use-before-def-bug
This is the output I get:








@azdanov commented on Mon Dec 10 2018
@yehorb Awesome, thanks! Now it's just waiting for a maintainer to triage this issue. 🤷♂️
The text was updated successfully, but these errors were encountered: