microsoft / python-language-server

Microsoft Language Server for Python
Apache License 2.0
911 stars 131 forks source link

Using inline lambda functions causes errors on line 1 to be reported #1365

Closed Dr-Irv closed 5 years ago

Dr-Irv commented 5 years ago

Environment data

Expected 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:

import pandas as pd

def foo():

    somedf = pd.DataFrame({'x': [1, 2], 'y': [3, 4]})

    newdf = (
        somedf
        .assign(
            Abc=lambda df: df.x + df.y,
            Xyz=lambda df: df.x * df.y
        )
    )

    return True

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

            Abc=lambda df: df.x + df.y,
            Xyz=lambda df: df.x * df.y

to

            Abc=lambda df: df.x + df.y,
            Xyz=lambda df: df.x * df.y,
            Hij=lambda df: df.x / df.y

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

User belongs to experiment group 'AlwaysDisplayTestExplorer - experiment'
Starting Microsoft Python language server.
##########Linting Output - pep8##########
[Info  - 8:46:01 PM] Analysis cache path: C:\Users\irv.PCI\AppData\Local\Microsoft\Python Language Server
[Info  - 8:46:02 PM] GetCurrentSearchPaths C:\Anaconda3\python.exe 
[Info  - 8:46:02 PM] Interpreter search paths:
[Info  - 8:46:02 PM]     c:\anaconda3\dlls
[Info  - 8:46:02 PM]     c:\anaconda3\lib
[Info  - 8:46:02 PM]     c:\anaconda3
[Info  - 8:46:02 PM]     c:\anaconda3\lib\site-packages
[Info  - 8:46:02 PM]     c:\anaconda3\lib\site-packages\win32
[Info  - 8:46:02 PM]     c:\anaconda3\lib\site-packages\win32\lib
[Info  - 8:46:02 PM]     c:\anaconda3\lib\site-packages\pythonwin
[Info  - 8:46:02 PM] User search paths:
##########Linting Output - pep8##########
[Info  - 8:47:20 PM] Microsoft Python Language Server version 0.3.38.0
[Info  - 8:47:20 PM] Initializing for C:\Anaconda3\python.exe
##########Linting Output - pep8##########

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)

abstractTextMateService.ts:52 Overwriting grammar scope name to file mapping for scope source.yaml.
Old grammar file: file:///c%3A/Program%20Files/Microsoft%20VS%20Code/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json.
New grammar file: file:///c%3A/Users/irv.PCI/.vscode/extensions/redhat.vscode-yaml-0.4.1/syntaxes/yaml.tmLanguage.json
register @ abstractTextMateService.ts:52
log.ts:173   ERR Error: [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat 'c:\Code\Misc\VSCodeTst\.vscode'
log.ts:173   ERR [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat 'c:\Code\Misc\VSCodeTst\.vscode'
extensionHost.ts:293 [Extension Host] debugger listening on port 42627
extensionHost.ts:201 Extension Host
extensionHost.ts:202 Debugger listening on ws://127.0.0.1:42627/45070a6c-2d5c-47f2-b7a3-194ed19ce0fd
For help, see: https://nodejs.org/en/docs/inspector
console.ts:134 [Extension Host] (node:38300) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ console.ts:134
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Display locator refreshing progress, Class name = p, completed in 3ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Notify locators are locating, Class name = p, completed in 4ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detected refreshing of Interpreters, Class name = p, completed in 5ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detected refreshing of Interpreters, Class name = p, completed in 2ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Create file systemwatcher with pattern *\python.exe
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Create file systemwatcher with pattern *\*\python.exe
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Register Intepreter Watcher, Class name = p, completed in 15ms, Arg 1: <Uri:c:\Code\Misc\VSCodeTst\src\simple.py>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Build the workspace interpreter watcher, Class name = h, completed in 20ms, Arg 1: <Uri:c:\Code\Misc\VSCodeTst\src\simple.py>, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Rule = settings, result = exit
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: autoSelectInterpreter, Class name = f, completed in 6ms, Arg 1: <Uri:c:\Code\Misc\VSCodeTst>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Rule = settings, result = exit
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Build the workspace interpreter watcher, Class name = h, completed in 2ms, Arg 1: <Uri:c:\Code\Misc\VSCodeTst\src\simple.py>, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: autoSelectInterpreter, Class name = f, completed in 7ms, Arg 1: <Uri:c:\Code\Misc\VSCodeTst>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detection of Python Interpreter for Command python3.7 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detection of Python Interpreter for Command python3.6 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detection of Python Interpreter for Command python3 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detection of Python Interpreter for Command python2 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detection of Python Interpreter for Command py and args -3.7 failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:51: Detection of Python Interpreter for Command py and args -3.6 failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Detection of Python Interpreter for Command py and args -3 failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Detection of Python Interpreter for Command py and args -2 failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Selected Interpreter from windowsRegistry, {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Selected Interpreter from currentPath, {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Current value for rule system is {"architecture":3,"path":"C:\\Anaconda3\\envs\\pandas-dev\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3\\envs\\pandas-dev","fileHash":"aad3647123fc6fc53d0a0d423ee7fb6e9d87fb1a6b43846356f00617a0a5be8880772b1e013941261fda2cf493b7b6ae7a83e4495b02ef6e1f6972878a8b9fe5","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Anaconda3\\envs\\pandas-dev","envName":"pandas-dev","displayName":"Python 3.7.3 64-bit ('pandas-dev': conda)"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Current value for rule currentPath is {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Error Python Extension: 2019-07-22 20:45:52: Failed to check if file needs to be fixed { [Error: ENOENT: no such file or directory, open 'c:\Code\Misc\VSCodeTst\.vscode\settings.json']  errno: -4058,  code: 'ENOENT',  syscall: 'open',  path: 'c:\\Code\\Misc\\VSCodeTst\\.vscode\\settings.json' }
t.log @ console.ts:134
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Get language server folder name, Class name = f, completed in 530ms, Arg 1: <Uri:c:\Code\Misc\VSCodeTst\src\simple.py>, Return Value: "languageServer.0.3.38"
2console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: setGlobalInterpreter, Class name = f, completed in 397ms, Arg 1: {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: setGlobalInterpreter, Class name = f, completed in 396ms, Arg 1: {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: setGlobalInterpreter, Class name = f, completed in 393ms, Arg 1: {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Rule = windowsRegistry, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Executing next rule from windowsRegistry
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Rule = currentPath, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Executing next rule from currentPath
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Rule = cachedInterpreters, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Executing next rule from cachedInterpreters
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: autoSelectInterpreter, Class name = f, completed in 684ms, Arg 1: <Uri:c:\Code\Misc\VSCodeTst>, Return Value: undefined
2console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: autoSelectInterpreter, Class name = f, completed in 685ms, Arg 1: <Uri:c:\Code\Misc\VSCodeTst>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Get language server folder name, Class name = f, completed in 150ms, Arg 1: <Uri:c:\Code\Misc\VSCodeTst\src\simple.py>, Return Value: "languageServer.0.3.38"
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Cached data exists getEnvironmentVariables, c:\Code\Misc\VSCodeTst\src\simple.py
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Selected Interpreter from system, {"architecture":3,"path":"C:\\Anaconda3\\envs\\pandas-dev\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3\\envs\\pandas-dev","fileHash":"aad3647123fc6fc53d0a0d423ee7fb6e9d87fb1a6b43846356f00617a0a5be8880772b1e013941261fda2cf493b7b6ae7a83e4495b02ef6e1f6972878a8b9fe5","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Anaconda3\\envs\\pandas-dev","envName":"pandas-dev","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('pandas-dev': conda)"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Interpreters returned by VirtualEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Interpreters returned by KnownPathsService are of count 1
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Cached data exists getEnvironmentVariables, c:\Code\Misc\VSCodeTst\src\simple.py
2console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Interpreters returned by WorkspaceVirtualEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: setGlobalInterpreter, Class name = f, completed in 107ms, Arg 1: {"architecture":3,"path":"C:\\Anaconda3\\envs\\pandas-dev\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3\\envs\\pandas-dev","fileHash":"aad3647123fc6fc53d0a0d423ee7fb6e9d87fb1a6b43846356f00617a0a5be8880772b1e013941261fda2cf493b7b6ae7a83e4495b02ef6e1f6972878a8b9fe5","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Anaconda3\\envs\\pandas-dev","envName":"pandas-dev","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('pandas-dev': conda)"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Rule = system, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Executing next rule from system
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Selected Interpreter from workspaceEnvs, Nothing Selected
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: autoSelectInterpreter, Class name = f, completed in 848ms, Arg 1: <Uri:c:\Code\Misc\VSCodeTst>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: autoSelectInterpreter, Class name = f, completed in 849ms, Arg 1: <Uri:c:\Code\Misc\VSCodeTst>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Cached data exists getEnvironmentVariables, c:\Code\Misc\VSCodeTst\src\simple.py
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Interpreters returned by CurrentPathService are of count 2
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Interpreters returned by WindowsRegistryService are of count 2
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:52: Checking whether locactors have completed locating, Class name = p, completed in 1ms, , Return Value: false
3console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:53: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:56: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:56: Activation Commands received C:/Anaconda3/Scripts/activate,conda activate base for shell cmd
2console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:56: Cached data exists getEnvironmentVariables, c:\Code\Misc\VSCodeTst\src\simple.py
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:56: Has Custom Env Vars
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:56: Activating Environment to capture Environment variables, C:/Anaconda3/Scripts/activate && conda activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python C:/Users/irv.PCI/.vscode/extensions/ms-python.python-2019.6.24221/pythonFiles/printEnvVariables.py
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:58: parseEnvironmentOutput, Class name = b, completed in 0ms
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:58: getActivatedEnvironmentVariables, Class name = b, completed in 6339ms, Arg 1: <Uri:c:\Code\Misc\VSCodeTst\src\simple.py>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:45:58: Get language server folder name, Class name = f, completed in 5ms, Arg 1: <Uri:c:\Code\Misc\VSCodeTst\src\simple.py>, Return Value: "languageServer.0.3.38"
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:46:00: Interpreters returned by CondaEnvFileService are of count 3
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:46:02: Interpreters returned by CondaEnvService are of count 4
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:46:02: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: true
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:46:02: Hide locator refreshing progress, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:46:02: All locators have completed locating, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Error Python Extension: 2019-07-22 20:46:14: Failed to initialize experiments, Class name = b, completed in 23286ms, , Return Value: undefined { [Error: read ECONNRESET    at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)] errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
t.log @ console.ts:134
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:46:35: Cached data exists getEnvironmentVariables, c:\Code\Misc\VSCodeTst\src\simple.py
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:20: Starting Language Server, Class name = d, completed in 88445ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:20: Cached data exists getEnvironmentVariables, c:\Code\Misc\VSCodeTst\src\simple.py
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:20: Rule = settings, result = exit
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:20: autoSelectInterpreter, Class name = f, completed in 0ms, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Display locator refreshing progress, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Notify locators are locating, Class name = p, completed in 2ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Detected refreshing of Interpreters, Class name = p, completed in 2ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Rule = settings, result = exit
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: autoSelectInterpreter, Class name = f, completed in 6ms, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Shell path from user settings 'null'
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Shell path 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe'
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Shell path identified as shell 'powershell'
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Shell path from user env 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe'
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Shell identified as 'powershell'
3console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Selected Interpreter from windowsRegistry, {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","companyDisplayName":"Anaconda, Inc.","type":"Unknown"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Selected Interpreter from currentPath, {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","type":"Unknown"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Current value for rule system is {"architecture":3,"path":"C:\\Anaconda3\\envs\\pandas-dev\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3\\envs\\pandas-dev","fileHash":"aad3647123fc6fc53d0a0d423ee7fb6e9d87fb1a6b43846356f00617a0a5be8880772b1e013941261fda2cf493b7b6ae7a83e4495b02ef6e1f6972878a8b9fe5","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Anaconda3\\envs\\pandas-dev","envName":"pandas-dev","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('pandas-dev': conda)"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Current value for rule currentPath is {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","type":"Unknown"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","companyDisplayName":"Anaconda, Inc.","type":"Unknown"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","companyDisplayName":"Anaconda, Inc.","type":"Unknown"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Create file systemwatcher with pattern *\python.exe
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Create file systemwatcher with pattern *\*\python.exe
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Register Intepreter Watcher, Class name = p, completed in 3ms, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Build the workspace interpreter watcher, Class name = h, completed in 4ms, Arg 1: undefined, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Selected Interpreter from system, {"architecture":3,"path":"C:\\Anaconda3\\envs\\pandas-dev\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3\\envs\\pandas-dev","fileHash":"aad3647123fc6fc53d0a0d423ee7fb6e9d87fb1a6b43846356f00617a0a5be8880772b1e013941261fda2cf493b7b6ae7a83e4495b02ef6e1f6972878a8b9fe5","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Anaconda3\\envs\\pandas-dev","envName":"pandas-dev","displayName":"Python 3.7.3 64-bit ('pandas-dev': conda)"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: setGlobalInterpreter, Class name = f, completed in 57ms, Arg 1: {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","companyDisplayName":"Anaconda, Inc.","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: setGlobalInterpreter, Class name = f, completed in 56ms, Arg 1: {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: setGlobalInterpreter, Class name = f, completed in 54ms, Arg 1: {"architecture":3,"path":"C:\\Anaconda3\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3","fileHash":"717e7367a991a271e3fa6a2586fa165c9a7f5a7d25685d0679f62ad999b31d58b53cd26cfd66ba1e979b261d9509588dcac41d2038e1fdeb3b5f631ff9903011","companyDisplayName":"Anaconda, Inc.","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Rule = windowsRegistry, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Executing next rule from windowsRegistry
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Rule = currentPath, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Executing next rule from currentPath
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Rule = cachedInterpreters, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Executing next rule from cachedInterpreters
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
3console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: autoSelectInterpreter, Class name = f, completed in 145ms, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Interpreters returned by PipEnvService are of count 0
2console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Interpreters returned by WorkspaceVirtualEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: setGlobalInterpreter, Class name = f, completed in 61ms, Arg 1: {"architecture":3,"path":"C:\\Anaconda3\\envs\\pandas-dev\\python.exe","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"C:\\Anaconda3\\envs\\pandas-dev","fileHash":"aad3647123fc6fc53d0a0d423ee7fb6e9d87fb1a6b43846356f00617a0a5be8880772b1e013941261fda2cf493b7b6ae7a83e4495b02ef6e1f6972878a8b9fe5","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Anaconda3\\envs\\pandas-dev","envName":"pandas-dev","displayName":"Python 3.7.3 64-bit ('pandas-dev': conda)"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Rule = system, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Executing next rule from system
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: true
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Hide locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: All locators have completed locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Selected Interpreter from workspaceEnvs, Nothing Selected
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: autoSelectInterpreter, Class name = f, completed in 186ms, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:21: autoSelectInterpreter, Class name = f, completed in 186ms, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:22: Current value for rule workspaceEnvs is nothing
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:47:31: Cached data exists getEnvironmentVariables, c:\Code\Misc\VSCodeTst\src\simple.py
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:52:26: Cached data exists getEnvironmentVariables, c:\Code\Misc\VSCodeTst
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:53:21: Cached data exists getEnvironmentVariables, c:\Code\Misc\VSCodeTst
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:56:08: Cached data exists getEnvironmentVariables, tasks
console.ts:134 [Extension Host] Info Python Extension: 2019-07-22 20:56:12: Cached data exists getEnvironmentVariables, extension-output-#3
jakebailey commented 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