Skip to content

Python Language Server predefined boolean constants issue #3299

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
Tim-Sobolev opened this issue Nov 11, 2018 · 4 comments
Closed

Python Language Server predefined boolean constants issue #3299

Tim-Sobolev opened this issue Nov 11, 2018 · 4 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

@Tim-Sobolev
Copy link

Tim-Sobolev commented Nov 11, 2018

Environment data

  • VS Code version: 1.29 (5f24c93878bd4bc645a4a17c620e2487b11005f9)
  • Extension version: 2018.10.1
  • OS and version: Debian 9.5
  • Python version: 2.7.13 64-bit
  • Type of virtual environment used: N/A
  • Relevant/affected Python packages and their versions: N/A

Source code:

def x():
    return False

Actual behavior

screenshot

Expected behavior

No warnings

Steps to reproduce:

Use provided source code

Error message:

{
	"resource": "/tmp/test.py",
	"owner": "_generated_diagnostic_collection_name_#0",
	"code": "use-before-def",
	"severity": 4,
	"message": "'False' used before definition",
	"source": "Python",
	"startLineNumber": 2,
	"startColumn": 12,
	"endLineNumber": 2,
	"endColumn": 17
}

First time noticed in 2018.9.2

Logs

Output for Python in the Output panel
(ViewOutput, 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.60.0
Initializing for /usr/bin/python

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

.../workbench.main.js:1446  INFO no standard startup: not the explorer viewlet
.../workbench.main.js:294 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Create file systemwatcher with pattern */python
.../workbench.main.js:294 [Extension Host] Python Extension: Create file systemwatcher with pattern */*/python
.../workbench.main.js:294 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Notify locators are locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Register Intepreter Watcher, Arg 1: undefined, Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Build the workspace interpreter watcher, Arg 1: undefined, Return Value: UNABLE TO DETERMINE VALUE
.../workbench.main.js:294 [Extension Host] Python Extension: Get language server folder name, , Return Value: "languageServer.0.1.60"
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: All locators have completed locating, , Return Value: 
.../workbench.main.js:294 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: 
@DonJayamanne
Copy link

Please could you fill in the rest of the issue template.
We need the missing information to be able to help you.

@Tim-Sobolev
Copy link
Author

Issue was updated to actual state

@jimklo
Copy link

jimklo commented Nov 13, 2018

I'm seeing this same issue however on MacOS.

@brettcannon
Copy link
Member

Duplicate of #3274

@brettcannon brettcannon marked this as a duplicate of #3274 Nov 13, 2018
@brettcannon brettcannon added bug Issue identified by VS Code Team member as probable bug area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. needs upstream fix labels Nov 13, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Dec 11, 2018
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

4 participants