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

@tiangolo commented on Sun Jun 02 2019

Environment data

VS Code version: 1.34.0
Extension version (available under the Extensions sidebar): 2019.5.17517
OS and version: Ubuntu 18.04
Python version (& distribution if applicable, e.g. Anaconda): Anaconda Python 3.6
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv (pipenv shows the same behavior)
Relevant/affected Python packages and their versions: FastAPI, any version, any Python code that relies on type hints.

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.

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:

Copy that code above in VS Code
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 (View→Output, 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 <IP_ADDRESS>
[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.
 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"}

@DonJayamanne commented on Mon Jun 03 2019
Works for me in Jedi, and not in Language Server version 0.2.87

Identical to #1155


CAMPD Glossary Page Design (need by 9/13)

@tlageman-epa
Here are the links to the Glossary screens.
Glossary
Glossary (dev)
Please let me know if you have any questions.
Thanks

Have made changes that were discussed on 9/13 in wireframes


Attention/AdditiveAttention Issue

I have the following functions to return two models:
def get_question_model(self, embedding):
        question_input = Input(shape=(None,), name='question_input')
        question_embedding = embedding(question_input)

        cnn_1d = Conv1D(128, 4, padding='same', activation='relu', strides=1)(question_embedding)
        cnn_1d = AveragePooling1D(pool_size=3)(cnn_1d)

        model = Model(question_input, cnn_1d)
        return model

def get_sentence_model(self, embedding, question_model):
        sentence_input = Input(shape=(None,),  name='sentence_input')
        sentence_embedding = embedding(sentence_input)
        cnn_1d = Conv1D(128, 4, padding="same", activation='relu', strides=1)(sentence_embedding)
        cnn_1d = AveragePooling1D(pool_size=3)(cnn_1d)

        sentence_attention = AdditiveAttention()([cnn_1d, question_model])
        model = Model(sentence_input, sentence_attention)
        model.shape = model.output_shape
        return model

And the functions are called:
   self.question_model = self.get_question_model(embedding)
   self.sentence_model = self.get_sentence_model(embedding, self.question_model)

I get the following issue:
2019-12-10 18:17:01.848676: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1304] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 9371 MB memory) -> physical GPU (device: 0, name: TITAN V, pci bus id: 0000:83:00.0, compute capability: 7.0)
Traceback (most recent call last):
  File "D:/Development/competitions/Kaggle/Tensorflow 2.0 - Q_a_A/tensorflow_2.0/QuestionAnswerContextAttention.py", line 376, in <module>
    qa_model.fit(input=input, output=y)
  File "D:/Development/competitions/Kaggle/Tensorflow 2.0 - Q_a_A/tensorflow_2.0/QuestionAnswerContextAttention.py", line 152, in fit
    self.model = self.get_model()
  File "D:/Development/competitions/Kaggle/Tensorflow 2.0 - Q_a_A/tensorflow_2.0/QuestionAnswerContextAttention.py", line 123, in get_model
    self.sentence_model = self.get_sentence_model(embedding, self.question_model)
  File "D:/Development/competitions/Kaggle/Tensorflow 2.0 - Q_a_A/tensorflow_2.0/QuestionAnswerContextAttention.py", line 84, in get_sentence_model
    sentence_attention = AdditiveAttention()([cnn_1d, question_model])
  File "C:\Development\Python\Python37\lib\site-packages\tensorflow_core\python\keras\engine\base_layer.py", line 887, in __call__
    self._maybe_build(inputs)
  File "C:\Development\Python\Python37\lib\site-packages\tensorflow_core\python\keras\engine\base_layer.py", line 2141, in _maybe_build
    self.build(input_shapes)
  File "C:\Development\Python\Python37\lib\site-packages\tensorflow_core\python\keras\layers\dense_attention.py", line 406, in build
    v_shape = tensor_shape.TensorShape(input_shape[1])
**TypeError: 'NoneType' object is not subscriptable**

@nectario
Looks like code is incomplete. Request you to provide complete code to reproduce the issue in our environment. It helps us in localizing the issue faster.Please provide details about what platform you are using (operating system, architecture). Also include your TensorFlow version. Thanks!

Hi,
I have attached a zip file that contains the complete code with the data. Just unzip and run it as:
python QAModel.py
Also, for the information you requested:
Version: TensorFlow 2.0  (GPU Version)
Operating System: Windows 10
Graphics Card: Nvidia Titan V
AttentionProblem.zip
Let me know if you need anything else.
Thanks,
Nektarios

I have tried on colab with TF version 2.0 and was able to reproduce the issue.Please, find the gist here. Thanks!

@nectario I see the shapes of X.datand Y.dat are of (5, None, None, None), and (5, None). Is that what you intended?  The error clearly throws TypeError: 'NoneType' object is not subscriptable. Please let me know what you think. Thanks!

Both X and y consist of variable length lists and hence, are ragged tensors. RaggedTensors is an exciting new feature of Tesnorflow 2.0 and this is exactly what I want!

I do not want to pad!

I tried tf-nightly instead of TF2.0 that was used in the gist. I still get the same error as you are getting. Thanks!

This error happens because Model class does not have a shape field. In the code if no shape is present, it initializes it to None. Here is a snippet in base_layer:
 input_shapes = None
      if all(hasattr(x, 'shape') for x in input_list):
        input_shapes = nest.map_structure(lambda x: x.shape, inputs)
      # Only call `build` if the user has manually overridden the build method.
      if not hasattr(self.build, '_is_default'):
        # Any setup work performed only once should happen in an `init_scope`
        # to avoid creating symbolic Tensors that will later pollute any eager
        # operations.
        with tf_utils.maybe_init_scope(self):
          self.build(input_shapes)

I have tried in colab with TF GPU version 2.2, nightly version and was able to reproduce the issue.Please, find the gist here.Thanks!

Was able to reproduce your issue in Tensorflow GPU 2.5, please find the gist here. Thanks!

Hi There,
This is a stale issue. As you are using an older version of tensorflow, we are checking to see if you still need help on this issue. Please test the issue with the latest TensorFlow (TF2.7 and tf-nightly). If the issue still persists with the newer versions of TF, please feel free to open it in keras-team/keras repository by providing details about the issue and a standalone code to reproduce the issue. Thanks!
Please note that Keras development has moved to a separate Keras-team/keras repository to focus entirely on only Keras. Thanks!

Issue can be closed. Don't experience this now.


i18n(pt-BR): Update content.mdx translation

Update content.mdx translation
Updates the pt-br translation of the community content content.mdx file.

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File
Note
Locale

src/content/docs/pt-br/community-resources/content.mdx
Localization changed, will be marked as complete.
pt-br

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


Remove debug print from Android DisplayServer.screen_get_scale implementation

Fixes https://github.com/godotengine/godot/issues/97062
Verified with generated android template and simple test script that called DisplayServer.screen_get_scale().  Line no longer present in logcat.
script to test with:

logcat with master branch

logcat with fix

Thanks! And congrats for your first merged Godot contribution :tada:

Cherry-picked for 4.3.1.


fix(bazel): add zone-testing bundle for bazel build

fix #404.
add zone-testing-bundle.js bundle and zone-testing.js.

for bazel build for https://github.com/angular/angular/issues/21048#issuecomment-352795938
to resolve import order issue.

zone-testing-bundle.js
in this bundle, following modules are loaded.

import '../zone';
...

import '../zone-spec/long-stack-trace';
import '../zone-spec/proxy';
import '../zone-spec/sync-test';
import '../jasmine/jasmine';
import '../zone-spec/async-test';
import '../zone-spec/fake-async-test';

@alexeagle , please review.

zone-testing.js, fix #404, zone test module load order issue.
in this file, only test related files are loaded (in correct order).
so in angular/cli generated src/test.ts, user don't need to load individual zone test files themselves, they  can just load

import 'zone.js/dist/zone-testing';

@alexeagle , thank you for review, I have updated the PR. please review.

add zone-testing-node-bundle.js for node build, compare with @mhevery 's commit, https://github.com/angular/angular/pull/21053/files#diff-8ac936419da1e3d027833281525dba0e,
jasmine patch is added.

for browser, zone-testing-bundle.js include zone.js itself and testing related files.

in this PR, there is another zone-testing.js which doesn't have direct relation with bazel build, it just make angular/cli produced src/test.ts easier and don't need to care about the import order. in zone-testing.js, zone.js itself not included.

LGTM, I think we should probably let Misko look before merging?
/cc @hansl about improving the UX for CLI users

@alexeagle , got it. thank you!
@mhevery , please review, and about zone-testing-node-bundle.js, it also include zone jasmine patch, please check it is correct or not. thank you.


Not too sure about how to mention a secret team

Code of Conduct

[X] I have read and agree to the GitHub Docs project's Code of Conduct

What article on docs.github.com is affected?
https://docs.github.com/en/organizations/organizing-members-into-teams/about-teams
What part(s) of the article would you like to see updated?
Can the owner of an organization mention a secret team?

Secret teams are only visible to the people on the team and people with owner permissions. They're great for hiding teams with sensitive names or members, such as those used for working with external partners or clients. Secret teams cannot be nested under parent teams or have child teams.

I can't draw any conclusion from the docs about whether or not certain roles would be allowed to mention secret teams.
Thanks for the help, it is very much appreciated!
Additional information
No response

Hi @programarivm 👋 ! That's a great question!
This would actually be best handled by our wonderful support team. Please reach out to them, and they'll be happy to assist! ✨
If there's anything in the documents that you have suggestions for updating, please feel free to open an issue 💛


Parameter Secrets - too many open files

Expected Behaviour
Return of Secret details
Current Behaviour
"errorMessage": "SSL validation failed for https://secretsmanager.eu-central-1.amazonaws.com/ [Errno 24] Too many open files",
"errorType": "GetParameterError",
"stackTrace": [
"  File "/var/task/xxx.py", line 70, in lambda_handler\n    secret_details = ssm_provider.get(secretName)\n",
"  File "/opt/python/aws_lambda_powertools/utilities/parameters/base.py", line 139, in get\n    raise GetParameterError(str(exc))\n"
]
}
Code snippet
from aws_lambda_powertools.utilities import parameters
secrets_mgn = boto3.client("secretsmanager")
ssm_provider = parameters.SecretsProvider(boto3_client=secrets_mgn)
secretName = "XXX"
secret_details = ssm_provider.get(secretName)
secret_details = json.loads(secret_details )

Possible Solution
No response
Steps to Reproduce
I am not sure how to reproduce it. I assume it was due to several quick invokes of the same lambda function.
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.11
Packaging format used
Lambda Layers
Debugging logs
No response

Hey @tb102122! Reproducing the error here can be quite challenging, especially considering that there you may have
other part of the code affecting the Lambda file descriptors limit.
AWS Lambda imposes certain hard limits when running code, one of which is the File Descriptors limit, which serves as a unique identifier for files or any other I/O resource/operation.
Are you opening/saving many files? Are you iterating something and creating a new boto3 instance in every iteration? Any other I/O operation?
I'm afraid I can't assist you here, as this error wasn't generated by Powertools, but rather by botocore when making the HTTP request to the AWS endpoint :disappointed:.

Thanks for the explanation.
I do some batch uploads of files to s3 but that comes in a later step of the code.
So I don’t expect that the File Descriptors limit is reached also the amount of files I upload is around 50.

Maybe reading files before calling parameters?! Or some other operation that could impact the file descriptor.
A good way to debug would be to comment out parts of the code and check where the error occurs after several Lambda calls.
I will close this issue and reopen if you still have any questions or if we can help.
Thanks


Backup fails after about 2GB

Output of restic version
restic 0.5.0 (v0.5.0-0-gf678c97)
compiled with go1.8 on windows/amd64

Expected behavior
Backing up any file to minio/s3 continues without errors.
Actual behavior
Backup fails after about 2GB of a single 8GB file.
Steps to reproduce the behavior
> restic backup "D:\Backup\..."
scan [D:\Backup\SQLBackup\...]
scanned 1 directories, 1 files in 0:00
panic: client.PutObject: Put https://example.com/restic-ubs/restic/data/7629894652bfee34a27ae6b27033224716de4a2f63c1a50fe12b62f0f5aecc7b: http2: Transport: peer server initiated graceful shutdown after some of Request.Body was written; define Request.GetBody to avoid this error

goroutine 4583 [running]:
restic/archiver.(*Archiver).saveChunk(0xc042161310, 0x9079c5d2, 0x93ff7, 0x0, 0x
c05b484000, 0x93ff7, 0x300000, 0xc042074bb0, 0xaef280, 0xc042004360, ...)
        /tmp/restic-build-310554648/src/restic/archiver/archiver.go:163 +0x277
created by restic/archiver.(*Archiver).SaveFile
        /tmp/restic-build-310554648/src/restic/archiver/archiver.go:237 +0x388

Uh, that's oddy. Thanks for the report! What backend did you use when the error in the paste occurred? Can you provide the minio server log (if it was minio)? Is there anything in between you and the backend, e.g. a load balancer or proxy?
@harshavardhana have you seen this error before?

The client-side is secured by a Sophos Firewall. I think it acts as a proxy as well.
On the server-side there's a nginx instance running as a reverse proxy in front of minio.
minio was not logging when the error happened. I'll try to reproduce the error with logging enabled.

minio log only contains lines like this one:
time="2017-04-06T13:52:04+02:00" level=error msg="Unable to fetch object info." cause="Object not found: restic-ubs#restic/data/b7cc414349a34abccc64581b4cbb92f8c6aeef39908a21417f365a27e803a5f5" stack="fs-v1.go:322:fsObjects.getObjectInfo fs-v1.go:367:fsObjects.GetObjectInfo <autogenerated>:145:(*fsObjects).GetObjectInfo object-handlers.go:233:objectAPIHandlers.HeadObjectHandler api-router.go:37:(objectAPIHandlers).HeadObjectHandler-fm"

Sounds like this: https://groups.google.com/forum/#!topic/golang-codereviews/Z3PJkpbTH0o
It sounds to me like the minio-go library should retry the request (at least that's what I interpret from the error message and the code linked in the mailing list thread). We've seen the same issue in #849 with nginx, but Go 1.8 has changed the http client library slightly.
You can try disabling http2 as a workaround with GODEBUG=http2client=0. Please report back :)

Yep, that seems to be the problem.
Using GODEBUG=http2client=0 I was able to complete a 25GB Backup without problems.

You can use that as a workaround until we figure out what's going on here.

This is the same issue reported twice. Will open a bug on our end and debug it further.  Btw is restic using HTTP2 forcefully ?

Ok, then I'll close this issue as a duplicate of #849. restic doesn't do anything to force http2. Thanks for looking into it!


resolve header logo width and baseline alignment with nav items

Resolve header logo width and baseline alignment with nav items as seen below.

Resolved https://github.com/blockstack/blockstack-site/commit/0e917fb709f4b2a69fc6b9d40548aacd6213b533


tested compatible with XC90 PHEV T8 2024

tested fully compatible with week old Volvo XC90 SUV PiH 2.0Recharge T8 18.8kWh 455 GPF SS EU6 Plus Auto8

Thanks!


move() destroys component from DOM

This is a very important use case for a declarative framework like React.
We want to prevent multiple rerenders as much as possible and manage states easily.
Calling the useMovePane() hook to either remove or add a pane is okay, but how about hiding a pane without removing it from the DOM?
move(name, isShowing ? null : [0.99, 0.5])
A pane that is removed and added in a toggle manner gets rerendered all the time and the previous state is lost. Ref to previous elements are also missing and it creates a buggy experience.
Is there a way currently to achieve hiding a pane in addition to adding and removing?
Or is it something we can add in the next update?

This feature seems to be very frequent and I'd be happy to add it.
This may involve more changes and I'll take the time to work on it. this may take weeks, if I'm too slow, a PR is welcome

Do you think we should provide a scoped property in the Provider or specify specific behavior when hiding the pane?
// Provide a scope property
const App: Rect.FC = () => {
  return (
    <TileProvider tilePanes={paneList} rootNode={rootPane} hidingPane={true}>
       ...
    </TileProvider>
  )
}

// specific behavior
move(name, null, { hidingPane: true })

Thanks for considering this.
I believe a specific behavior will go a long way to cater to many developer use cases and needs.
A developer may want to have both remove and hide beviour within one scope.
Setting the property in the scope will restrict this use case specifically.

For a specific pane, does it sometimes need to be removed and sometimes hidden?
What do you think of the following way:
const App: Rect.FC = () => {
  return (
    <TileProvider tilePanes={paneList} rootNode={rootPane} hidingPanes={[names.apple, names.banana]}>
       ...
    </TileProvider>
  )
}

This allows us to use methods other than useMovePane and still make sure the pane is hidden.

This approach will work for most cases as well, but I can imaging some developer wanting to offer their users the options to remove or delete a pane in their UI.
Unless the goal is not to provide too much flexibility, then defining this parameter in the scope is okay. Otherwise, useMovePane will come in handy for everyone.

This approach will work for most cases as well, but I can imaging some developer wanting to offer their users the options to hide or delete a pane in their UI.
Unless the goal is not to provide too much flexibility, then defining this parameter in the scope is okay. Otherwise, useMovePane will come in handy for everyone.


Incomplete decision data in search index

This request gives one record with a decision:
https://api.catalogue.life/dataset/1068/nameusage/search?catalogueKey=3&decisionMode=_NOT_NULL&facet=rank&facet=issue&facet=status&facet=nomstatus&facet=type&facet=field&limit=50&offset=0
{
 key: 17029,
 datasetKey: 3,
 mode: "update"
}

However fetching the decision directly from the API gives this decision:
{
"created": "2020-04-02T13:52:36.874433",
"createdBy": 101,
"modified": "2020-04-02T13:52:36.874433",
"modifiedBy": 101,
"key": 17029,
"datasetKey": 3,
"subject": {
"id": "90242014",
"name": "Aspilota vector Belokobylskij, 2007",
"rank": "species",
"code": "zoological",
"status": "accepted",
"parent": "Aspilota"
},
"subjectDatasetKey": 1068,
"mode": "update",
"name": {
"rank": "unranked",
"candidatus": false,
"type": "scientific",
"parsed": false,
"formattedName": "null"
}
}

I'm not sure if this is expected or a bug and the search is supposed to return the entire decision.

It behaves as expected and is supposed to return only a SimpleDecision with the fields you listed above.


dashboard access

I follow the instructions here and deploy the dashboard. However, I get the following error when I access in browser:
Error: 'dial tcp <IP_ADDRESS>:8443: getsockopt: connection timed out'
Trying to reach: 'https://<IP_ADDRESS>:8443/'
I see that the dashboard is deployed on a node with a IP of <IP_ADDRESS> and I can ping this container from the host node. However, from master, the host is reachable but not the container. Am I missing any routes that I should be creating? I am running both master and  minion in Virtual Box and bridge adapter/NAT interfaces.
Your help much appreciated.

Unfortunately this guide does not cover the Kubernetes dashboard.


Button work incorrect when have loading and disabled props

<LaddaButton buttonStyle="zoom-in" className={ classes }     loading={ this.state.saving }     onClick={ this.save }     disabled={ !hasChanged || this.state.saving }>     Save </LaddaButton>
Recommend:
add re check disabled prop when stoped ladda button
else if (!this.props.loading && this.laddaButton.isLoading()){
    this.laddaButton.stop();
    if (this.props.disabled) {
	    this.laddaButton.disable();
    }
}

@tuduong This has been fixed in<EMAIL_ADDRESS>

Thanks


No packets in SPI

Hi, I have a problem with reading data on pi 3. It was working fine until last week, but suddenly no data came. I checked the SPI ports using spidev_test and it works. And it works with other codes such as pylepton code, my client code is based on this so it is hectic to change. I checked the packetNumber under LeptonReadSegment() and it is never equal to j hence it keeps resetting.

That is a strange behaviour, it never happened to me. However, you are the second person telling me that the code stopped working suddenly. Any recent drivers updates ? new devices using I2C or SPI ? I had a similar issue when I was using the I2C for another sensor from a different app.


Parameter not Set

Good afternoon,
Any idea what I might be doing wrong, I am trying to run the script with a cloudflare teams token, but if I run it though ./warp.sh -T TOKEN then I get ./warp.sh: 191 ./warp.sh: Token: Parameter not set.
I tried using bash, and I get warp.sh: line 191: token: unbound variable.
I have tried with and without ' and " around the token and it makes no difference.
Many thanks!

Thanks for reporting the issue, I've fixed it in https://github.com/rany2/warp.sh/commit/9abcd084e427fd5c37bf0dc652e6f7f97b164526. From the commit message:

When fixing the bug with token not being set in the WG config when using
the newly added refresh config feature, I accidently introduces this bug.
Fix it by initalizing the variable.


@conda-forge-admin, please add bot automerge

[ ] I read the conda-forge documentation and could not find the solution for my problem there.

Issue:

Environment (conda list):

$ conda list

Details about  conda and system ( conda info ):

$ conda info

@conda-forge-admin, please add bot automerge

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added bot automerge in conda-forge/discord.py-feedstock#5.


Deploy to heroku button is not working.

Returns app.json is not valid.

Fix. https://twitter.com/denari01/status/707416033858981888
THX denari


Worked on the Radio group component assigned

Closes #608
Worked on creating a Radio Group component.
Worked on creating it's documentation.
Followed the practices used by other components.

Note there's two people just opened PRs back to back here. I don't have track of everything but I don't believe I said more than whoever puts up good work I'll assign to. Neither of the PRs are actually super far. Not sure what the best strategy is, if you can reach out on Discord we can figure out.


Consider specializing noexcept with a boolean template parameter

This would cut the number of pre-processed source lines generated by CallableTraits roughly in half (which is a LOT).

won't fix


How can I upload my cropped image?

I want to select a image on my computer and upload it to server after crop it, will i just upload the data and crop it on the server ?

The same as #489.


Rewrite gpfdist sink jdbc command structure

From @jvalkeal on January 22, 2016 8:33
It's probably a good idea to overhaul whole jdbc command structure to get better support for native gpfdist features. Also we need to make communication between messagehandler and jdbc commands bi-directional(to catch failures) so that we can make message acking reliable.
Copied from original issue: spring-cloud/spring-cloud-stream-modules#162

This issue was moved to spring-cloud-stream-app-starters/gpfdist#3


MIME + Plain & Focused S1

Could you release MIME Plain & Focused S1?

Could you also release DodecaTransformer + Focused S1?


Add support for RAUC file parsing

Allow parsing of RAUC files using PySquashFsImage.
Closes #131

I think it is a good idea to support RAUC as long as we don’t have to completely refactor the application at this point. IMHO we should focus on making what we have production ready and then go from there.

I think it is a good idea to support RAUC as long as we don’t have to completely refactor the application at this point. IMHO we should focus on making what we have production-ready and then go from there.

I agree here.  This was relatively easy to throw together, so if we don't want to add this right now I will leave as a draft for reference.

Another thing I realized today: goosebit does log message parsing (to detect download progress / update status) - this also would require adjustments. However, the parsing ideally gets reduced to only extract the progress.


Update instructions for the collatz exercise on jq

Summary
I had issues understanding what was expected in this exercise, which led me to infinite recursions and fighting the tester to understand how I should display the error message. I updated the instructions to hopefully avoid the same issues for future students.
Checklist

[ ] If docs where changed, run ./bin/configlet generate to ensure all documents are properly generated.
[ ] CI is green

Thanks for the input!
You may want to read https://exercism.org/docs/community/being-a-good-community-member/suggesting-exercise-improvements

Exercism explicitly expects students to figure out exercise requirement details from the tests; they all intentionally not fully documented.
That file is synced from the problem spec and should not be modified in any way other than to sync it.

@JoaoAreias please open a topic in the forum so we can discuss it there.


TextField border gap padding improvement

Previously, the calculations for the border gap weren't quite right in all cases, and would sometimes result in extra unwanted padding.  Here's an example where gapPadding is set to zero, meaning that the border should just touch the label, but it didn't:
          child: TextField(
            decoration: InputDecoration(
              labelText: 'Hello label',
              border: OutlineInputBorder(
                borderRadius: BorderRadius.circular(32.0),
                gapPadding: 0.0,
             ),
            ),
          ),

With this PR, the same code gives the correct result:

Todos

[ ] Test.
[x] Make sure the current math doesn't break any other cases.
[x] Check other code paths and make sure they don't need their math updated as well.

Related issues
Fixes https://github.com/flutter/flutter/issues/82321
Old PR that may have caused this bug: https://github.com/flutter/flutter/pull/34515

Gold has detected about 2 new digest(s) on patchset 1.
View them at https://flutter-gold.skia.org/cl/github/92940

The broken goldens are practically unnoticeable 1 pixel differences, so that's good.  I'll plan to just accept those once I finalize this PR.  I should also run the Google tests on this and watch out for breaking other visual diff tests.

I have raised a pull request on your fork with the working solution I wrote. See if that help 😬.

Gold has detected about 2 new digest(s) on patchset 3.
View them at https://flutter-gold.skia.org/cl/github/92940

Gold has detected about 4 new digest(s) on patchset 6.
View them at https://flutter-gold.skia.org/cl/github/92940

Gold has detected about 12 new digest(s) on patchset 8.
View them at https://flutter-gold.skia.org/cl/github/92940

Gold has detected about 12 new digest(s) on patchset 9.
View them at https://flutter-gold.skia.org/cl/github/92940

Gold has detected about 1 new digest(s) on patchset 10.
View them at https://flutter-gold.skia.org/cl/github/92940

I've accepted the goldens changes, which as I expected were just two unnoticeable 1 pixel color changes plus the new golden tests I created.

I ran the Google test and got a few failures, but they were all the same as the goldens: a pixel or two that's a slightly different color.  I'll change it to pass and plan to accept the changes after merge.


Update continuous-delivery-faqs.md

Jateen -- Added 4 FAQs to the CD FAQ doc
Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[x] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


0.1.0

Codecov Report

Merging #2 into master will increase coverage by 3.77%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master       #2      +/-   ##
==========================================
+ Coverage    6.57%   10.34%   +3.77%
==========================================
  Files           2        2
  Lines        2586     2648      +62
==========================================
+ Hits          170      274     +104
+ Misses       2416     2374      -42

Impacted Files
Coverage Δ

test/spec/matrix.spec.js
6.11% <ø> (-0.16%)
:arrow_down:

test/spec/core.spec.js
13.99% <66.66%> (+7.14%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ef78df...991001f. Read the comment docs.


Revert of [Fix dimension check for STRETCH children]

We had a layout issue in Ads Manager after updating to the latest version of css-layout on react-native. I bisected the change to https://github.com/facebook/css-layout/commit/909c14117f118c9b36e6623590e62bff2f996c1b. It changes the condition and breaks the behavior that we had. This change was not covered by a unit test so I added one.
The 3 tabs should have the same height

Before the fix  (the three tabs have a different height)

After the fix (the three tabs have the same height)

@facebook-github-bot import

@facebook-github-bot shipit

@facebook-github-bot shipit


sbt.ResolveException: unresolved dependency: com.eed3si9n#sbt-assembly;0.14.0: not found

sbt.ResolveException: unresolved dependency: com.eed3si9n#sbt-assembly;0.14.0: not found
sbt launcher version 0.13.8

@ahkimkoo which scalaVersion are you using? I had scalaVersion := "2.11.6" in ~/.sbt/0.13/global.sbt and had to remove it. Check this out.

https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.eed3si9n/sbt-assembly/scala_2.10/sbt_0.13/0.14.0/ seems to be there.


Make r* methods work with operators

Resolves #838.
This PR uses __radd__ methods as reversed fallback methods for __add__ or so.
This is the same as what cpython does and I'm sure it's a correct strategy, but, apparently, this implementation is dirty and has lots of templates :roll_eyes:
Need to simplify in the future.

👍 nicely figured out! Looks like METH_COEXIST should be a performance improvement too, from the python docs.

It looks like we can't use COEXIST for __rpow__ since it can take 3rd argument...

It looks like we can't use COEXIST for __rpow__ since it can take 3rd argument...

I'm not sure that's true... isn't the issue that __pow__ and __rpow__'s modulo argument should be Option<Self::Modulo>?
e.g. the supported forms should be
# 2-argument forms
pow(c, 1) -> c.__pow__(1)
pow(1, c) ->  c.__rpow__(1)

# 3-argument form
pow(c, 1, mod) -> c.__pow__(1, mod)

According to the note here, pow(1, c, mod) will not call __rpow__.

I'm not sure that's true... isn't the issue that pow and rpow's modulo argument should be OptionSelf::Modulo?

:+1:
Changed to do so.

Sign, coexist + round cause segfault that I can't reproduce in my local machine... :nauseated_face:

Sign, coexist + round cause segfault that I can't reproduce in my local machine... 🤢

😢 I'll try later on mine and let you know if I have any luck!

@davidhewitt
Simply I think we shouldn't use METH_COEXIST for __round__ since the builtin round can pass some arguments.

@davidhewitt
Simply I think we shouldn't use METH_COEXIST for __round__ since the builtin round can pass some arguments.

Ok. I guess also there is no need for METH_COEXIST with __round__ because there is no such thing as __rround__ 😄

Actions CI failure this time was the usual datetime fail, I'm rerunning jobs...

@davidhewitt
Thank you for fixing clippy warnings!


serializer::read or write?

serializer uses read instead of write, should we make it consistent?

read is good


k3s not starting using CentOS7

Describe the bug
K3S is not starting correctly. Always restarting coredns + helm-install-traefik
Looks similar to #246, but server has full access to internet, and no issue with the described DNS problem.
To Reproduce
Steps to reproduce the behavior:
Minimal installation of CentOS7 18.10 + SElinux= permissive+ installation of policycoreutils-python
curl -sfL https://get.k3s.io | sh -
Expected behavior
A fully working K3S installation
Logs
[host]# kubectl --all-namespaces=true get all
NAMESPACE     NAME                             READY   STATUS             RESTARTS   AGE
kube-system   pod/coredns-7748f7f6df-95hk4     0/1     CrashLoopBackOff   31         101m
kube-system   pod/helm-install-traefik-k86rz   0/1     CrashLoopBackOff   36         101m
NAMESPACE     NAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)                  AGE
default       service/kubernetes   ClusterIP   <IP_ADDRESS>            443/TCP                  101m
kube-system   service/kube-dns     ClusterIP   <IP_ADDRESS>           53/UDP,53/TCP,9153/TCP   101m
NAMESPACE     NAME                      READY   UP-TO-DATE   AVAILABLE   AGE
kube-system   deployment.apps/coredns   0/1     1            0           101m
NAMESPACE     NAME                                 DESIRED   CURRENT   READY   AGE
kube-system   replicaset.apps/coredns-7748f7f6df   1         1         0       101m
NAMESPACE     NAME                             COMPLETIONS   DURATION   AGE
kube-system   job.batch/helm-install-traefik   0/1           101m       101m
[host]# ip route
default via <IP_ADDRESS> dev eth0 proto dhcp metric 100
<IP_ADDRESS>/24 dev cni0 proto kernel scope link src <IP_ADDRESS>
<IP_ADDRESS>/24 dev eth0 proto kernel scope link src <IP_ADDRESS> metric 100
[host]# lsmod | grep vx
vxlan                  49678  0
ip6_udp_tunnel         12755  1 vxlan
udp_tunnel             14423  1 vxlan
[host]# host www.nersc.gov <IP_ADDRESS>
Using domain server:
Name: <IP_ADDRESS>
Address: <IP_ADDRESS>#53
Aliases:
www.nersc.gov is an alias for www5.nersc.gov.
www5.nersc.gov has address <IP_ADDRESS>
www5.nersc.gov has IPv6 address 2620:0:28b0:d1::14
[host]# kubectl logs coredns-7748f7f6df-95hk4 --namespace=kube-system
E0413 10:26:59.747487       1 reflector.go:205] github.com/coredns/coredns/plugin/kubernetes/controller.go:315: Failed to list *v1.Service: Get https://<IP_ADDRESS>:443/api/v1/services?limit=500&resourceVersion=0: dial tcp <IP_ADDRESS>:443: connect: no route to host

Is firewalld running and does it work when you disable it?

Hello,
as mentioned in #246, I've disabled firewalld and enabled iptables.services.
Looks like disabling iptables.services too, solved the issue.

It sounds like this has been resolved @HaJoHe, is it good to close?

Have checked it on 4 installations. It works on all systems as soon as firewalld is disabled.


Awake utility improvement

Description of the new feature / enhancement
Add an option in the awake utility to put the computer into sleep mode or turn it off immediately after the time ends.
Scenario when this would be used?
It can be used as a timer for switching off/going to sleep mode (at the same time, the computer will definitely not turn off before the specified time).
Supporting information
No response

/dup #12191


Setting up my repo for the starter project

FYI, it's generally good practice to add a description for the pull request. Also, it's good to link to the deployed site (or screenshot of it) for reviewers to see, when that's available.


🛠 Update semver ranges for development dependencies

Remove ts-jest, it's provided by @hover/javascript now
Update semver ranges in package.json

Codecov Report

Merging #309 (5a47bb7) into main (d4abf4d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #309   +/-   ##
=======================================
  Coverage   98.16%   98.16%
=======================================
  Files           3        3
  Lines         109      109
  Branches       25       23    -2
=======================================
  Hits          107      107
  Misses          2        2

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d4abf4d...5a47bb7. Read the comment docs.


[machine learning]Integration of a Raspberry pi with an Arduino

Topic Suggestion
[machine learning]Integration of a Raspberry pi with an Arduino
Proposal Submission
Proposed title of article
Integration of a Raspberry pi with an Arduino
Proposed article introduction
In the electronic community, the Raspberry Pi and Arduino are the two most popular open-source boards. Because of their ease and simplicity, they are popular among not just electronic engineers, but also school students and hobbyists. Some people have recently developed an interest in electronics as a result of the release of the Raspberry Pi and Arduino. These boards have incredible capabilities, and they can be used to create extremely complex and Hi-fi projects with just a few basic steps and minimal programming.
In this tutorial, we will establish a Serial Communication between Raspberry Pi and Arduino Uno. PI has only 26 GPIO pins and zero ADC channels, so when we do projects like 3D printer, PI cannot do all the interactions alone. So we need more output pins and additional functions, for adding more functions to PI, we establish a communication between PI and UNO. With that we can use all the function of UNO as they were PI functions.
Key takeaways

Analysis of components required.
Circuit explanation of Raspberry Pi-Arduino Uno diagram
Raspberry pi programming part
Arduino programming part
Send a String From Raspberry Pi to Arduino

Article quality
This article will discusses the most important standard communication protocols involved in establishing communication between Raspberry pi  and an Arduino unlike other published contents that often neglect this.
References

Raspberry Pi 3/SBCs
Arduino boards

Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Good afternoon and thank you for submitting your topic suggestion.
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.


Installed but not seeing Gyroflow Toolbox in Final Cut

I've purchased and installed the app, gave permission to the "Movies" folder:

However I don't see anything new in my effects folder:

And I'm not seeing Gyroflow Toolbox:

My final cut version is 10.8.1:

Any ideas please?

Very strange. You can try just right-clicking on the Gyroflow Toolbox.app, and Reveal Package Contents and inside you'll find the Motion Template:

Note to self - this might be the same issue on macOS 15 as in BRAW Toolbox:
https://github.com/latenitefilms/BRAWToolbox/issues/187

This should be fixed in v1.2.0.


Added Sutro filter resolve #19

There are a lot of additional files changed here -- do you mind only checking in the ones with changes? Just the sutro filter and any changes to the .twig files for test/site?

Sure!


Enterprise Upgrade Instructions - Please!

There are some errors in the initial Enterprise installation instructions for 9.2.2 that will be handled separately.
However, it would be nice to provide upgrade instructions for Enterprise.
I assumed you just replace the wwwroot contents with the new ones. However, what do you do with the database files?

Trying to get to this.   Database files should be mounted in your sqlserver, but some how I don't think that is what you are asking? Can you clarify a bit more?

I missed that you were looking for additional details. Could you publish the procedure to upgrade from say 10.0.0 to 10.1. Key was to move away from Standalone installs, and make this more enterprise like, however the documentation seems to not address maintenance that would cover version upgrades, assessment management, and user admin.


Retrieve data from Browser Storage

This is related to #81 , with these widgets we could save the data into the browser storage, and then retrieve it for later use in other applications.
@codiepp suggested this feature.

@NickSeagull so we essentially want an API to interact with the localStorage, right? Can work on this 🤔

I'm not really sure how this would work, I suppose this would be a render-side API @mdibaiee


New version: LLVM_assert_jll v13.0.1+3

Autogenerated JLL package registration

Registering JLL package LLVM_assert_jll.jl
Repository: https://github.com/JuliaBinaryWrappers/LLVM_assert_jll.jl
Version: v13.0.1+3
Commit: 5be8227ac4b805314189022c1fefcc66baff1d30
Revision on Yggdrasil: https://github.com/JuliaPackaging/Yggdrasil/commit/dd3ca7f28dc7ed7cb205b0f10a94bc1616968b06
Created by: @maleadt

Requires Julia 1.8.


Add support for various devices

Hi. This PR includes:

Add support for giot.plug.v6shsm
Add support for zjdh.curtain.xj002
Add support for series of GranwinIoT wireless switches (giot.remote.v51kwm, giot.remote.v52kwm, giot.remote.v53kwm, giot.remote.v54kwm and giot.remote.v56kwm)
Change string to enum (BUTTON_4_DOUBLE) for giot.remote.v58kwm

Please wait for a while before I test those GranwinIoT wireless switches tomorrow.

Thanks!

https://github.com/AlexxIT/XiaomiGateway3/releases/tag/v4.0.8


Designing switching execution GCP project

Motivation

Useful for switching flex-slots/on-demand  projects
For job management

idea

Interpolate set @@dataset_project_id and extract partial BigQuery Job_id for reporting;

Scopes

push
pull
SQL Bundle

Resolved


Starting to fix modulo coverage

Description
Improve coverage in the base solver that went down due to the removal of the ODEs solver.
Fixes #3941
Key checklist:

[x] No style issues: $ pre-commit run (or $ nox -s pre-commit) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)
[x] All tests pass: $ python run-tests.py --all (or $ nox -s tests)
[x] The documentation builds: $ python run-tests.py --doctest (or $ nox -s doctests)

You can run integration tests, unit tests, and doctests together at once, using $ python run-tests.py --quick (or $ nox -s quick).
Further checks:

[x] Code is commented, particularly in hard-to-understand areas
[x] Tests added that prove fix is effective or that feature works

This should fix all the coverage lost in #3932 by re-adding one of the tests from ODEs to the Casadi test suite. The code is not 100% covered, but it was not before either. This does replace what was lost and does some minor cleanup.


add a ZX-calculus transformer to Cirq

Is your feature request related to a use case or problem? Please describe.
I would like to experiment with various circuit optimisation routines (which are already implemented in PyZX) using Cirq.
Describe the solution you'd like
A transformer (maybe under contrib) which uses the PyZX library for optimisation. I've mocked up what such a thing might look like here, but the current version isn't able to handle all transformations of Cirq circuits into PyZX format yet. (In particular, the conversion cannot at the moment handle arbitrary angles for certain types of gates.)
[optional] Describe alternatives/workarounds you've considered
It could also stay as an independent repo/project, as it is now. Mostly I'm interested in knowing whether other people (Cirq maintainers or members of the community) might be interested in helping to write this, or to use it.
[optional] Additional context (e.g. screenshots)
I spoke about this at the last Cirq Cync (Apr. 24, 2024).
What is the urgency from your perspective for this issue? Is it blocking important work?

P3 - I'm not really blocked by it, it is an idea I'd like to discuss / suggestion based on principle

@dlyongemallo I have a student who is interested in working on this.
@naerabati Can you comment if you would like to work on this and coordinate with him?

@dlyongemallo Yes! I would be interested in helping with this feature

Great!
Would it make more sense to roll this into Cirq, or leave it as a separate project? In the former case, what's the standard procedure now @dstrain115, e.g., do we develop on a branch and then merge it into main when the minimal viable product is reached?

@dlyongemallo hey, last cirq-sync we agreed on putting it in cirq-core/cirq/contrib. to make it easier to review you can add it incremently, that is open a PR to merge to main when a new part is ready. feel free to assign PR reviews to me

@naerabati @NoureldinYosri Please see PR #6647.

I'm too busy to complete the PR. Can someone take it over?


Tooltip: this.tip.querySelector(...) is null

Prerequisites

[X] I have searched for duplicate or closed issues
[X] I have validated any HTML to avoid common problems
[X] I have read the contributing guidelines

Describe the issue
Changing data-bs-original-title of an empty html tooltip to some nonempty string causes this querySelector to return null on hover.
This happens since _sanitizeAndSetContent removes the .tooltip-inner element and the tip does not get updated before while the isWithContent check passes now. This might be fixed by regenerating the tooltip on hover.
Reduced test cases
https://codepen.io/OptimalSloth/pen/NWvJmbE
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
No response
What version of Bootstrap are you using?
5.1.3

I can confirm the case, but it is a bit strange case here. You want an empty tooltip to work, but with a 'custom not documented' way.
Anyway, Maybe changing this check,
this.getTitle() !== this.tip.querySelector(SELECTOR_TOOLTIP_INNER).innerHTML
with
this.getTitle() !== this._resolvePossibleFunction(this._config.title)
would help.
I would suggest not to use it, this way, but you can also try to make an MR with proposed changes

I just want to change the content of the tooltip but setContent is not exported and not documented, even though it exists and searching for a way to do this brings up using this undocumented attribute.
If there is no way, I will just do a MR.

You are very right on what you said, and I do not know any valid way right now.
I am also trying to launch  #34519 on next version, that may could do the job. You may give it a try

Ok, I think I will wait for that, thank you.


Add timetable importing

Add endTime to lesson class
Add import command
Todo:
Fix lesson dates
Test classes

Codecov Report

Merging #73 into master will decrease coverage by 6.19%.
The diff coverage is 9.93%.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 817c0af...f8f459c. Read the comment docs.


TSX closing tags indentation still wrong after code format using ntypescript 1.201601272211.1

This is a follow up of issue: https://github.com/Microsoft/TypeScript/issues/3838 because ntypescript 1.201601272211.1 does not fix the issue
As referenced in https://github.com/TypeStrong/atom-typescript/issues/823, @basarat released atom-typescript 8.2.0 in an attempt to fix the issue.
atom-typescript  8.2.0  uses ntypescript 1.201601272211.1 as can be seen from here  https://github.com/TypeStrong/atom-typescript/blob/master/package.json#L63

The first "wrapping" closing tag (div) is systematically moved to one full ident to the right.
Parent closing tags "follow"

//CC @SaschaNaz

This works on Visual Studio with TS 1.8.1 beta. Is this an atom-specific issue?

@SaschaNaz Sorry about that :rose: Its working for me as well

@bgrieder perhaps your atom-ts didn't update?
PS: atom-ts uses the language service as it is. No fancy formatting magic different from the official one :rose:

@basarat mhhh... definitely not working for me.
Interference with another plugin ? I will run a few tests

@bgrieder what keyboard shortcut are you using, is it alt-cmd-l? Perhaps it is some other package. Try disabling everything except atom-ts / linter :rose:

@basarat I have disabled all plugins (but atom-ts and linter) and still get the same behaviour, which is the same one I was getting with the previous version and I am getting with VS Code 0.10.6. We have tested on another developer machine: VS Code 0.10.6 also behaves incorrectly however his atom with the new 8.2.0 plugin works as expected.
The only difference we could see between his machine and mine is that I have TS 1.7.5 installed globally. I removed it but there was no improvement.
In any case, this must be linked to my set-up. I have a feeling that the atom-typescript plugin is picking up a 1.7.5 tsc version somewhere. If I find out what it is, I will report back on this thread but you can consider this issue closed
Thank you for your help

I'm still having this issue. I maintain gulp-tsfmt and can't get the closing tag to align properly using the TypeScript 1.8.9 API.
The strange thing is that in VSCode "Format Code" function what one expects well. I tried searching through the code and found the usage of formatDocument (here). I'm using TypeScript.formatting.formatDocument (here) but don't get the same results.
Last night I tried rewriting the formatter to use getFormattingEditsForDocument (here) and unfortunately getting the same results.
Could somebody give me a pointer or two on what I'm doing wrong? Clearly there's a way to get the correct results as VSCode does it, but I can't grasp the whole context of everything that's going on in that massive code base to figure out what I'm doing differently.

I am assuming you are getting other edits working correctly, it is just this bug, correct? is there a sample we can debug through to see what is happening?

I'm an idiot... I went to create an example and everything worked... my package was NPM linked with old modules... please ignore my comment, sorry for wasting your time.

thanks for getting back on this. glad the issue has been fixed.