microsoft / python-language-server

Microsoft Language Server for Python
Apache License 2.0
910 stars 130 forks source link

function parameters / arguments have the type of the "default" instead of the "type hint" / "type annotation" #1155

Closed tiangolo closed 5 years ago

tiangolo commented 5 years ago

I'm cross-posting https://github.com/microsoft/vscode-python/issues/5877 here as I'm pretty sure the issue is actually here (but I'm not sure).

It seems to be a regression of/related to https://github.com/microsoft/python-language-server/issues/603

Environment data

Expected behaviour

Python type hints (type annotations) should override/declare the type of a variable even when used as part of a function's parameters/arguments with a default:

from typing import Any

class Foo:
    def __init__(self, name: str):
        self.name = name

def func() -> Any:
    return Foo

def test(foo: Foo = func()):
    foo

Inside of the function test(), VS Code should think foo is of type Foo, show completions for Foo (foo.name), type checks, etc.

Actual behaviour

Inside of the function test(), VS Code thinks foo is of type Any. Without completion, type checks, etc.

Selection_058

Nevertheless, if used outside of the signature for the function test(), like in:

foo: Foo = func()

VS Code correctly shows/kowns the type of foo as Foo.

Steps to reproduce:

  1. Copy that code above in VS Code
  2. Hover over foo and see it shows foo: Any instead of foo: Foo.

I believe this is a regression. I have the idea this was happening at some point and was fixed in a previous version.

Related to https://github.com/microsoft/vscode-python/issues/4357, but the workaround is not working anymore.

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.
##########Linting Output - mypy##########
##########Linting Output - flake8##########
[Info  - 7:46:28 PM] GetCurrentSearchPaths /home/user/edited/server/env3.6/bin/python3.6 
[Info  - 7:46:28 PM] Python search paths:
[Info  - 7:46:28 PM]     /home/user/anaconda3/lib/python3.6
[Info  - 7:46:28 PM]     /home/user/anaconda3/lib/python3.6/lib-dynload
[Info  - 7:46:28 PM]     /home/user/edited/server/env3.6/lib/python3.6/site-packages
[Info  - 7:46:28 PM] Configuration search paths:
[Info  - 7:46:28 PM] Microsoft Python Language Server version 0.2.87.0
[Info  - 7:46:28 PM] Initializing for /home/user/edited/server/env3.6/bin/python3.6

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)

[Extension Host] debugger listening on port 2134
workbench.main.js:3855 [prograhammer.tslint-vue]: Command `tslint.fixAllProblems` appears multiple times in the `commands` section.
workbench.main.js:3855 [prograhammer.tslint-vue]: Command `tslint.createConfig` appears multiple times in the `commands` section.
workbench.main.js:3855 [prograhammer.tslint-vue]: Command `tslint.showOutputChannel` appears multiple times in the `commands` section.
workbench.main.js:4342 Overwriting grammar scope name to file mapping for scope source.yaml.
Old grammar file: file:///usr/share/code/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json.
New grammar file: file:///home/user/.vscode/extensions/redhat.vscode-yaml-0.4.1/syntaxes/yaml.tmLanguage.json
register @ workbench.main.js:4342
_handleGrammarExtensionPointUser @ workbench.main.js:4348
_.grammarsExtPoint.setHandler.e @ workbench.main.js:4344
_handle @ workbench.main.js:3018
acceptUsers @ workbench.main.js:3018
_handleExtensionPoint @ workbench.main.js:3855
_handleExtensionPoints @ workbench.main.js:3852
(anonymous) @ workbench.main.js:3851
r @ workbench.main.js:34
Promise.then (async)
l @ workbench.main.js:34
(anonymous) @ workbench.main.js:34
n @ workbench.main.js:34
_startLocalExtensionHost @ workbench.main.js:3851
(anonymous) @ workbench.main.js:3851
r @ workbench.main.js:34
Promise.then (async)
l @ workbench.main.js:34
(anonymous) @ workbench.main.js:34
n @ workbench.main.js:34
_scanAndHandleExtensions @ workbench.main.js:3849
c.runWhenIdle @ workbench.main.js:3844
requestIdleCallback (async)
t.runWhenIdle @ workbench.main.js:104
e.when.then @ workbench.main.js:3844
Promise.then (async)
_startDelayed @ workbench.main.js:3844
e @ workbench.main.js:3840
_createInstance @ workbench.main.js:1386
_createServiceInstance @ workbench.main.js:1388
_createServiceInstanceWithOwner @ workbench.main.js:1388
_createAndCacheServiceInstance @ workbench.main.js:1388
_getOrCreateServiceInstance @ workbench.main.js:1387
get @ workbench.main.js:1385
initLayout @ workbench.main.js:5082
e.invokeFunction.t @ workbench.main.js:5101
invokeFunction @ workbench.main.js:1385
startup @ workbench.main.js:5101
c.domContentLoaded.then @ workbench.main.js:5493
Promise.then (async)
initServices.then.e @ workbench.main.js:5492
Promise.then (async)
open @ workbench.main.js:5492
t.main @ workbench.main.js:5497
(anonymous) @ workbench.js:7
Promise.then (async)
bootstrapWindow.load.removeDeveloperKeybindingsAfterLoad @ workbench.js:7
e @ /usr/share/code/resources/app/out/bootstrap-window.js:9
t._invokeFactory @ /usr/share/code/resources/app/out/vs/loader.js:20
t.complete @ /usr/share/code/resources/app/out/vs/loader.js:20
s._onModuleComplete @ /usr/share/code/resources/app/out/vs/loader.js:30
s._onModuleComplete @ /usr/share/code/resources/app/out/vs/loader.js:31
s._resolve @ /usr/share/code/resources/app/out/vs/loader.js:30
s.defineModule @ /usr/share/code/resources/app/out/vs/loader.js:24
r @ /usr/share/code/resources/app/out/vs/loader.js:31
f @ /usr/share/code/resources/app/out/vs/loader.js:17
(anonymous) @ workbench.main.js:5746
(anonymous) @ workbench.main.js:5748
t._loadAndEvalScript @ /usr/share/code/resources/app/out/vs/loader.js:17
(anonymous) @ /usr/share/code/resources/app/out/vs/loader.js:17
readFileAfterClose @ fs.js:440
workbench.main.js:238 [Extension Host] (node:7991) [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 @ workbench.main.js:238
$logExtensionHostMessage @ workbench.main.js:3178
_doInvokeHandler @ workbench.main.js:3252
_invokeHandler @ workbench.main.js:3252
_receiveRequest @ workbench.main.js:3251
_receiveOneMessage @ workbench.main.js:3249
_protocol.onMessage.e @ workbench.main.js:3248
fire @ workbench.main.js:77
a @ workbench.main.js:321
e @ workbench.main.js:321
fire @ workbench.main.js:77
_receiveMessage @ workbench.main.js:330
S._socketDisposables.push._socketReader.onMessage.e @ workbench.main.js:327
fire @ workbench.main.js:77
acceptChunk @ workbench.main.js:323
_register._socket.onData.e @ workbench.main.js:323
t @ workbench.main.js:332
emit @ events.js:182
addChunk @ _stream_readable.js:279
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onread @ net.js:636
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Display locator refreshing progress, Class name = p, completed in 1ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Create file systemwatcher with pattern */python
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Create file systemwatcher with pattern */*/python
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Register Intepreter Watcher, Class name = p, completed in 6ms, Arg 1: , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Build the workspace interpreter watcher, Class name = h, completed in 13ms, Arg 1: , Return Value: 
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Rule = settings, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Executing next rule from settings
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Detection of Python Interpreter for Command python3.7 and args  failed
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Rule = workspaceEnvs, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Executing next rule from workspaceEnvs
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Current value for rule system is {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Current value for rule currentPath is {"architecture":3,"path":"/home/user/edited/server/env3.6/bin/python3.6","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/home/user/edited/server/env3.6","fileHash":"cf4002cbb71d2e7eef53d7cb6a4980ef1ed3120bf5b4c423f0a71b3cb8efdfb3cc20f91cc0ed4eb219c4cef75f7b4500b9f3ac655090f1f6242493d29f489f6e","type":"Unknown"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Current value for rule windowsRegistry is nothing
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:23: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Interpreters returned by PipEnvService are of count 0
2workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Cached data exists getEnvironmentVariables, 
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Interpreters returned by VirtualEnvService are of count 0
workbench.main.js:238 [Extension Host] Error Python Extension: 2019-06-02 19:49:24: Failed to discover if linter pylint is available, Class name = f, completed in 1ms, Arg 1: {"configService":{"serviceContainer":{"container":{"options":{"autoBindInjectable":false,"defaultScope":"Transient"},"guid":"79a28af3-ec43-2d80-ab57-7d71cb23153d","_bindingDictionary":{"_map":{}},"_snapshots":[],"_middleware":null,"parent":null,"_metadataReader":{}}},"workspaceService":{}},"_product":3,"_id":"pylint","_configFileNames":[".pylintrc","pylintrc"],"workspaceService":{}}, Arg 2: , Return Value: undefined [TypeError: Cannot read property 'uri' of undefined
    at f.isLinterAvailable (/home/user/.vscode/extensions/ms-python.python-2019.5.17517/out/client/extension.js:83:697299)
    at f.module.exports.o.value (/home/user/.vscode/extensions/ms-python.python-2019.5.17517/out/client/extension.js:1:20170)
    at f.promptIfLinterAvailable (/home/user/.vscode/extensions/ms-python.python-2019.5.17517/out/client/extension.js:83:696388)
    at b.enableUnconfiguredLinters (/home/user/.vscode/extensions/ms-python.python-2019.5.17517/out/client/extension.js:83:701408)
    at b.getActiveLinters (/home/user/.vscode/extensions/ms-python.python-2019.5.17517/out/client/extension.js:83:699830)
    at b.isLintingEnabled (/home/user/.vscode/extensions/ms-python.python-2019.5.17517/out/client/extension.js:83:699630)
    at w.shouldLintDocument (/home/user/.vscode/extensions/ms-python.python-2019.5.17517/out/client/extension.js:83:715712)
    at w.lintDocument (/home/user/.vscode/extensions/ms-python.python-2019.5.17517/out/client/extension.js:83:713813)
    at module.exports.t.LinterProvider.onDocumentOpened (/home/user/.vscode/extensions/ms-python.python-2019.5.17517/out/client/extension.js:83:723356)
    at Array.module.exports.t.LinterProvider.constructor.documents.onDidOpenTextDocument.e (/home/user/.vscode/extensions/ms-python.python-2019.5.17517/out/client/extension.js:83:722483)
    at u.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:740)
    at define.constructor._toDispose._documentsAndEditors.onDidAddDocuments.e (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:517:219)
    at u.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:720)
    at u.$acceptDocumentsAndEditorsDelta (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:521:639)
    at d._doInvokeHandler (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:637:1006)
    at d._invokeHandler (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:637:698)
    at d._receiveRequest (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:636:346)
    at d._receiveOneMessage (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:635:167)
    at define.constructor._protocol.onMessage.e (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:633:432)
    at u.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:720)
    at e (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:43:554)
    at u.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:720)
    at a (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:175:685)
    at e (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:175:731)
    at u.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:720)
    at y._receiveMessage (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:184:545)
    at define.constructor._socketDisposables.push._socketReader.onMessage.e (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:181:860)
    at u.fire (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:720)
    at f.acceptChunk (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:178:445)
    at define.constructor._register._socket.onData.e (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:177:781)
    at Socket.t (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:186:22)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:279:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at Pipe.onread (net.js:636:20)]
t.log @ workbench.main.js:238
$logExtensionHostMessage @ workbench.main.js:3178
_doInvokeHandler @ workbench.main.js:3252
_invokeHandler @ workbench.main.js:3252
_receiveRequest @ workbench.main.js:3251
_receiveOneMessage @ workbench.main.js:3249
_protocol.onMessage.e @ workbench.main.js:3248
fire @ workbench.main.js:77
a @ workbench.main.js:321
e @ workbench.main.js:321
fire @ workbench.main.js:77
_receiveMessage @ workbench.main.js:330
S._socketDisposables.push._socketReader.onMessage.e @ workbench.main.js:327
fire @ workbench.main.js:77
acceptChunk @ workbench.main.js:323
_register._socket.onData.e @ workbench.main.js:323
t @ workbench.main.js:332
emit @ events.js:182
addChunk @ _stream_readable.js:279
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onread @ net.js:636
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: setGlobalInterpreter, Class name = f, completed in 732ms, Arg 1: {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}, Arg 2: , Return Value: true
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Rule = cachedInterpreters, result = exit
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: autoSelectInterpreter, Class name = f, completed in 806ms, Arg 1: , Arg 2: , Return Value: undefined
2workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: autoSelectInterpreter, Class name = f, completed in 1037ms, Arg 1: , Arg 2: , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Checking support of .NET, Class name = c, completed in 0ms, , Return Value: true
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Cached data exists getEnvironmentVariables, /home/user/edited/server
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Rule = windowsRegistry, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Executing next rule from windowsRegistry
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Rule = settings, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Executing next rule from settings
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Build the workspace interpreter watcher, Class name = h, completed in 3ms, Arg 1: , Return Value: 
2workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: autoSelectInterpreter, Class name = f, completed in 4ms, Arg 1: , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Selected Interpreter from currentPath, {"architecture":3,"path":"/home/user/edited/server/env3.6/bin/python3.6","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/home/user/edited/server/env3.6","fileHash":"cf4002cbb71d2e7eef53d7cb6a4980ef1ed3120bf5b4c423f0a71b3cb8efdfb3cc20f91cc0ed4eb219c4cef75f7b4500b9f3ac655090f1f6242493d29f489f6e","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Current value for rule system is {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Current value for rule currentPath is {"architecture":3,"path":"/home/user/edited/server/env3.6/bin/python3.6","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/home/user/edited/server/env3.6","fileHash":"cf4002cbb71d2e7eef53d7cb6a4980ef1ed3120bf5b4c423f0a71b3cb8efdfb3cc20f91cc0ed4eb219c4cef75f7b4500b9f3ac655090f1f6242493d29f489f6e","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Current value for rule windowsRegistry is nothing
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Rule = workspaceEnvs, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Executing next rule from workspaceEnvs
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: autoSelectInterpreter, Class name = f, completed in 35ms, Arg 1: , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Interpreters returned by KnownPathsService are of count 19
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Selected Interpreter from system, {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Get language server folder name, Class name = f, completed in 53ms, Arg 1: , Return Value: "languageServer.0.2.87"
2workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Cached data exists getEnvironmentVariables, /home/user/edited/server/sand.py
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Get language server folder name, Class name = f, completed in 78ms, Arg 1: , Return Value: "languageServer.0.2.87"
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:24: Cached data exists getEnvironmentVariables, /home/user/edited/server/sand.py
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: Interpreters returned by CurrentPathService are of count 5
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: Interpreters returned by WorkspaceVirtualEnvService are of count 3
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: setGlobalInterpreter, Class name = f, completed in 254ms, Arg 1: {"architecture":3,"path":"/home/user/edited/server/env3.6/bin/python3.6","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/home/user/edited/server/env3.6","fileHash":"cf4002cbb71d2e7eef53d7cb6a4980ef1ed3120bf5b4c423f0a71b3cb8efdfb3cc20f91cc0ed4eb219c4cef75f7b4500b9f3ac655090f1f6242493d29f489f6e","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: Rule = currentPath, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: Executing next rule from currentPath
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: autoSelectInterpreter, Class name = f, completed in 262ms, Arg 1: , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: setGlobalInterpreter, Class name = f, completed in 243ms, Arg 1: {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: Rule = cachedInterpreters, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: Executing next rule from cachedInterpreters
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: autoSelectInterpreter, Class name = f, completed in 276ms, Arg 1: , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: setGlobalInterpreter, Class name = f, completed in 247ms, Arg 1: {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: Rule = system, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: Executing next rule from system
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: autoSelectInterpreter, Class name = f, completed in 297ms, Arg 1: , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: Interpreters returned by CondaEnvFileService are of count 6
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: Interpreters returned by CondaEnvService are of count 7
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: Checking whether locactors have completed locating, Class name = p, completed in 1ms, , Return Value: true
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: Hide locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:25: All locators have completed locating, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:26: Cached data exists getEnvironmentVariables, 
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:26: Cached data exists getEnvironmentVariables, /home/user/edited/server/sand.py
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:26: Activation Commands received source /home/user/edited/server/env3.6/bin/activate
2workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:26: Cached data exists getEnvironmentVariables, /home/user/edited/server/sand.py
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:26: Has Custom Env Vars
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:26: Activating Environment to capture Environment variables, . /home/user/edited/server/env3.6/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/user/.vscode/extensions/ms-python.python-2019.5.17517/pythonFiles/printEnvVariables.py
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:26: parseEnvironmentOutput, Class name = b, completed in 1ms
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:26: getActivatedEnvironmentVariables, Class name = b, completed in 72ms, Arg 1: 
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:26: Get language server folder name, Class name = f, completed in 2ms, Arg 1: , Return Value: "languageServer.0.2.87"
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:27: Starting Language Server, Class name = d, completed in 2780ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:27: Checking support of .NET, Class name = c, completed in 0ms, , Return Value: true
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:27: Cached data exists getEnvironmentVariables, /home/user/edited/server/sand.py
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Rule = settings, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Executing next rule from settings
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Rule = workspaceEnvs, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Executing next rule from workspaceEnvs
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Current value for rule system is {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Current value for rule currentPath is {"architecture":3,"path":"/home/user/edited/server/env3.6/bin/python3.6","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/home/user/edited/server/env3.6","fileHash":"cf4002cbb71d2e7eef53d7cb6a4980ef1ed3120bf5b4c423f0a71b3cb8efdfb3cc20f91cc0ed4eb219c4cef75f7b4500b9f3ac655090f1f6242493d29f489f6e","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Current value for rule windowsRegistry is nothing
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: setGlobalInterpreter, Class name = f, completed in 30ms, Arg 1: {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}, Arg 2: , Return Value: true
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Rule = cachedInterpreters, result = exit
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: autoSelectInterpreter, Class name = f, completed in 33ms, Arg 1: undefined, Arg 2: , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: autoSelectInterpreter, Class name = f, completed in 35ms, Arg 1: undefined, Arg 2: , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: autoSelectInterpreter, Class name = f, completed in 37ms, Arg 1: undefined, Arg 2: , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Rule = windowsRegistry, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Executing next rule from windowsRegistry
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Rule = settings, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Executing next rule from settings
2workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Cached data exists getEnvironmentVariables, 
2workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: autoSelectInterpreter, Class name = f, completed in 4ms, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Cached data exists getEnvironmentVariables, 
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Selected Interpreter from currentPath, {"architecture":3,"path":"/home/user/edited/server/env3.6/bin/python3.6","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/home/user/edited/server/env3.6","fileHash":"cf4002cbb71d2e7eef53d7cb6a4980ef1ed3120bf5b4c423f0a71b3cb8efdfb3cc20f91cc0ed4eb219c4cef75f7b4500b9f3ac655090f1f6242493d29f489f6e","type":"Unknown"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Display locator refreshing progress, Class name = p, completed in 1ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Notify locators are locating, Class name = p, completed in 2ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Detected refreshing of Interpreters, Class name = p, completed in 2ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Create file systemwatcher with pattern */python
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Create file systemwatcher with pattern */*/python
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Register Intepreter Watcher, Class name = p, completed in 1ms, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Build the workspace interpreter watcher, Class name = h, completed in 1ms, Arg 1: undefined, Return Value: 
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Current value for rule system is {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Current value for rule currentPath is {"architecture":3,"path":"/home/user/edited/server/env3.6/bin/python3.6","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/home/user/edited/server/env3.6","fileHash":"cf4002cbb71d2e7eef53d7cb6a4980ef1ed3120bf5b4c423f0a71b3cb8efdfb3cc20f91cc0ed4eb219c4cef75f7b4500b9f3ac655090f1f6242493d29f489f6e","type":"Unknown"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Current value for rule windowsRegistry is nothing
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Rule = workspaceEnvs, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Executing next rule from workspaceEnvs
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: autoSelectInterpreter, Class name = f, completed in 26ms, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Selected Interpreter from system, {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: setGlobalInterpreter, Class name = f, completed in 50ms, Arg 1: {"architecture":3,"path":"/home/user/edited/server/env3.6/bin/python3.6","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/home/user/edited/server/env3.6","fileHash":"cf4002cbb71d2e7eef53d7cb6a4980ef1ed3120bf5b4c423f0a71b3cb8efdfb3cc20f91cc0ed4eb219c4cef75f7b4500b9f3ac655090f1f6242493d29f489f6e","type":"Unknown"}, Arg 2: 
undefined, Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Rule = currentPath, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Executing next rule from currentPath
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: autoSelectInterpreter, Class name = f, completed in 66ms, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Interpreters returned by PipEnvService are of count 0
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: setGlobalInterpreter, Class name = f, completed in 42ms, Arg 1: {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","cachedEntry":true,"displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Rule = cachedInterpreters, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Executing next rule from cachedInterpreters
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: autoSelectInterpreter, Class name = f, completed in 67ms, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Interpreters returned by WorkspaceVirtualEnvService are of count 3
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: setGlobalInterpreter, Class name = f, completed in 45ms, Arg 1: {"architecture":3,"path":"/home/user/anaconda3/envs/pydantic3.7/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/home/user/anaconda3/envs/pydantic3.7","fileHash":"c4d6deb8043a0c2ecd701b8a0fe0638ccbb92cdd9b659bc025deb4cf13a37aa6cffe316b843ef6ce96b9f12380142f8d28ea820e686663ba17fd0fb8f29b0e89","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/home/user/anaconda3/envs/pydantic3.7","envName":"pydantic3.7","displayName":"Python 3.7.3 64-bit ('pydantic3.7': conda)"}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Rule = system, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Executing next rule from system
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: true
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: Hide locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: All locators have completed locating, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:28: autoSelectInterpreter, Class name = f, completed in 75ms, Arg 1: undefined, Return Value: undefined
2workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-02 19:49:29: Current value for rule workspaceEnvs is {"architecture":3,"path":"/home/user/.local/share/virtualenvs/json-schema-to-pydantic-Ms_GpRIT/bin/python","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/home/user/.local/share/virtualenvs/json-schema-to-pydantic-Ms_GpRIT","fileHash":"b6532aa9469cca48049d4b16f24cd4b79e0feab0f19cf32f6aba7bad2b5f436e7c42c8759fc42e0a73fd16101aaca0ec88c22d9020d060535ade05458fc6b596","type":"PipEnv","pipEnvWorkspaceFolder":"/home/user/code/json-schema-to-pydantic"}
MikhailArkhipov commented 5 years ago

Yes, we should threat Any return as unknown until evaluated.

tiangolo commented 5 years ago

Thanks for checking it.