Skip to content

[Bug] 'True' used before definition (same for 'False') #3339

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

Closed
GeoloeG-IsT opened this issue Nov 14, 2018 · 3 comments
Closed

[Bug] 'True' used before definition (same for 'False') #3339

GeoloeG-IsT opened this issue Nov 14, 2018 · 3 comments
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug

Comments

@GeoloeG-IsT
Copy link

Environment data

  • VS Code version: 1.29.0
  • Extension version (available under the Extensions sidebar): 2018.10.1
  • OS and version: Linux Ubuntu 18.014
  • Python version (& distribution if applicable, e.g. Anaconda): 2.7.15
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

The following warning appears when assigning a variable to True or False:

[Python] 'False' used before definition

Expected behavior

No warning.

Steps to reproduce:

  1. Create a new file called hello.py
  2. Insert the following code:
a = True
print(a)
  1. Wait for the warning to appear...
@asierralozano
Copy link

asierralozano commented Nov 14, 2018

I think that this is the same error as microsoft/python-language-server#387

@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. upstream-language server labels Nov 14, 2018
@jakebailey
Copy link
Member

This is #3274.

@luabud
Copy link
Member

luabud commented Sep 11, 2019

Fixed upstream (microsoft/python-language-server#391)

@luabud luabud closed this as completed Sep 11, 2019
@ghost ghost removed the needs upstream fix label Sep 11, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

5 participants