Activating Python extension: Language server extension command failed. Exception: Error: Connection got disposed

Environment data

Language Server version: v2021.11.2
OS and version: linux centos
Python version (& distribution if applicable, e.g. Anaconda): pyenv 3.8.0

Expected behaviour
Actual behaviour
Activating Python extension
Language server extension command failed. Exception: Error: Connection got disposed.
	at Object.dispose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:241001)
	at Object.dispose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:145557)
	at S.handleConnectionClosed (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:145769)
	at S.handleConnectionClosed (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:17:10273)
	at t (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:143862)
	at invoke (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:264940)
	at o.fire (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:265701)
	at X (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:230363)
	at invoke (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:264940)
	at o.fire (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:265701)
	at d.fireClose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:220432)
	at ChildProcess.<anonymous> (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:260670)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Socket.<anonymous> (internal/child_process.js:439:11)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:673:12)
Error while activating Python: {}

Logs
[Info  - 8:07:19 PM] Pylance language server 2021.11.2 (pyright b27108d5) starting
[Info  - 8:07:19 PM] Server root directory: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist
[Info  - 8:07:20 PM] No configuration file found.
[Info  - 8:07:20 PM] No pyproject.toml file found.
[Info  - 8:07:20 PM] Setting pythonPath for service "ray": "/home/admin/.pyenv/versions/3.8.0/envs/3.8.0_ray/bin/python"
[Warn  - 8:07:20 PM] stubPath /home/admin/code/ray/typings is not a valid directory.
[Info  - 8:07:20 PM] Assuming Python version 3.8
[Info  - 8:07:20 PM] Assuming Python platform Linux
Search paths for /home/admin/code/ray
  /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib
  /home/admin/code/ray
  /home/admin/code/ray/src
  /home/admin/code/ray/python/ray
  /home/admin/code/ray/ray/python/ray
  /home/admin/code/ray/typings
  /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/...
  /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/bundled/stubs
  /home/admin/.pyenv/versions/3.8.0/lib/python3.8
  /home/admin/.pyenv/versions/3.8.0/lib/python3.8/lib-dynload
  /home/admin/.pyenv/versions/3.8.0/envs/3.8.0_ray/lib/python3.8/site-packages
  /home/admin/code/ray/python
[Warn  - 8:07:22 PM] Exception received when installing file system watcher: TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
[Warn  - 8:07:22 PM] Exception received when installing file system watcher: TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
[Warn  - 8:07:22 PM] Exception received when installing file system watcher: TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
[Info  - 8:07:22 PM] Searching for source files
[Info  - 8:07:28 PM] Found 7597 source files
[Info  - 8:07:28 PM] Background analysis(1) root directory: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist
[Info  - 8:07:28 PM] Background analysis(1) started
Background analysis message: setConfigOptions
Background analysis message: setImportResolver
Background analysis message: ensurePartialStubPackages
Background analysis message: setTrackedFiles
Background analysis message: markAllFilesDirty
Background analysis message: setFileOpened
[FG] parsing: /home/admin/code/ray/python/ray/scripts/scripts.py (274ms)
[FG] parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 2ms] (160ms)
[FG] binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/builtins.pyi (100ms)
[FG] binding: /home/admin/code/ray/python/ray/scripts/scripts.py (35ms)
Background analysis message: analyze
[BG(1)] analyzing: /home/admin/code/ray/python/ray/scripts/scripts.py ...
[BG(1)]   parsing: /home/admin/code/ray/python/ray/scripts/scripts.py (319ms)
[BG(1)]   parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 2ms] (224ms)
[BG(1)]   binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/builtins.pyi (77ms)
[BG(1)]   binding: /home/admin/code/ray/python/ray/scripts/scripts.py (36ms)
[BG(1)]   checking: /home/admin/code/ray/python/ray/scripts/scripts.py ...
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/typing.pyi [fs read 1ms] (73ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/typing.pyi (56ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 1ms] (11ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (28ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/typing_extensions.pyi [fs read 0ms] (17ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/typing_extensions.pyi (3ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/abc.pyi [fs read 1ms] (2ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/abc.pyi (1ms)
[BG(1)]     parsing: /home/admin/.pyenv/versions/3.8.0/envs/3.8.0_ray/lib/python3.8/site-packages/click/__init__.py [fs read 1ms] (10ms)
[BG(1)]     binding: /home/admin/.pyenv/versions/3.8.0/envs/3.8.0_ray/lib/python3.8/site-packages/click/__init__.py (2ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/copy.pyi [fs read 0ms] (1ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/copy.pyi (1ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/datetime.pyi [fs read 0ms] (14ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/datetime.pyi (22ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/json/__init__.pyi [fs read 0ms] (3ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/json/__init__.pyi (4ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/logging/__init__.pyi [fs read 1ms] (27ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/logging/__init__.pyi (23ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/os/__init__.pyi [fs read 1ms] (92ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/os/__init__.pyi (24ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/subprocess.pyi [fs read 0ms] (49ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/subprocess.pyi (18ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/sys.pyi [fs read 1ms] (22ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/sys.pyi (9ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/time.pyi [fs read 0ms] (3ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/time.pyi (8ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/urllib/__init__.pyi [fs read 1ms] (1ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/urllib/__init__.pyi (1ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/urllib/parse.pyi [fs read 0ms] (3ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/urllib/parse.pyi (3ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/__init__.pyi [fs read 3ms] (10ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/__init__.pyi ...
[BG(1)]       parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/cyaml.pyi [fs read 1ms] (3ms)
[BG(1)]       binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/cyaml.pyi (4ms)
[BG(1)]       parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/dumper.pyi [fs read 0ms] (12ms)
[BG(1)]       binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/dumper.pyi (1ms)
[BG(1)]       parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/error.pyi [fs read 0ms] (26ms)
[BG(1)]       binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/error.pyi (1ms)
[BG(1)]       parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/events.pyi [fs read 1ms] (4ms)
[BG(1)]       binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/events.pyi (1ms)
[BG(1)]       parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/loader.pyi [fs read 0ms] (17ms)
[BG(1)]       binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/loader.pyi (0ms)
[BG(1)]       parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/nodes.pyi [fs read 0ms] (4ms)
[BG(1)]       binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/nodes.pyi (1ms)
[BG(1)]       parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/tokens.pyi [fs read 0ms] (2ms)
[BG(1)]       binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/tokens.pyi (3ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/PyYAML/yaml/__init__.pyi (91ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/socket.pyi [fs read 1ms] (13ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/socket.pyi (15ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/_socket.pyi [fs read 1ms] (19ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/_socket.pyi (15ms)
[BG(1)]     parsing: /home/admin/code/ray/python/ray/__init__.py [fs read 0ms] (80ms)
[BG(1)]     binding: /home/admin/code/ray/python/ray/__init__.py (6ms)
[BG(1)]     parsing: /home/admin/code/ray/python/ray/_private/utils.py [fs read 1ms] (134ms)
[BG(1)]     binding: /home/admin/code/ray/python/ray/_private/utils.py (20ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/psutil/psutil/__init__.pyi [fs read 0ms] (5ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/psutil/psutil/__init__.pyi (5ms)
[BG(1)]     parsing: /home/admin/code/ray/python/ray/_private/services.py [fs read 1ms] (75ms)
[BG(1)]     binding: /home/admin/code/ray/python/ray/_private/services.py (40ms)
[BG(1)]     parsing: /home/admin/code/ray/python/ray/ray_constants.py [fs read 0ms] (14ms)
[BG(1)]     binding: /home/admin/code/ray/python/ray/ray_constants.py (4ms)
[BG(1)]     parsing: /home/admin/code/ray/python/ray/autoscaler/_private/commands.py [fs read 1ms] (124ms)
[BG(1)]     binding: /home/admin/code/ray/python/ray/autoscaler/_private/commands.py (41ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/types.pyi [fs read 0ms] (9ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/types.pyi (6ms)
[BG(1)]     parsing: /home/admin/code/ray/python/ray/autoscaler/_private/constants.py [fs read 0ms] (2ms)
[BG(1)]     binding: /home/admin/code/ray/python/ray/autoscaler/_private/constants.py (1ms)
[BG(1)]     parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/os/path.pyi [fs read 0ms] (3ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/os/path.pyi ...
[BG(1)]       parsing: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/posixpath.pyi [fs read 0ms] (14ms)
[BG(1)]       binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/posixpath.pyi (1ms)
[BG(1)]     binding: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib/os/path.pyi (17ms)
[BG(1)]     parsing: /home/admin/code/ray/python/ray/autoscaler/_private/fake_multi_node/node_provider.py [fs read 0ms] (3ms)
[BG(1)]     binding: /home/admin/code/ray/python/ray/autoscaler/_private/fake_multi_node/node_provider.py (2ms)
[BG(1)]     parsing: /home/admin/code/ray/python/ray/autoscaler/_private/util.py [fs read 0ms] (41ms)
[BG(1)]     binding: /home/admin/code/ray/python/ray/autoscaler/_private/util.py (13ms)
[BG(1)]     parsing: /home/admin/code/ray/python/ray/internal/internal_api.py [fs read 0ms] (21ms)
[BG(1)]     binding: /home/admin/code/ray/python/ray/internal/internal_api.py (3ms)
[BG(1)]     parsing: /home/admin/code/ray/python/ray/worker.pyi [fs read 0ms] (4ms)
[BG(1)]     binding: /home/admin/code/ray/python/ray/worker.pyi (3ms)
[BG(1)]     parsing: /home/admin/code/ray/python/ray/autoscaler/_private/cli_logger.py [fs read 1ms] (22ms)
[BG(1)]     binding: /home/admin/code/ray/python/ray/autoscaler/_private/cli_logger.py (11ms)
[BG(1)]     parsing: /home/admin/code/ray/python/ray/core/generated/__init__.py [fs read 0ms] (1ms)
[BG(1)]     binding: /home/admin/code/ray/python/ray/core/generated/__init__.py (0ms)
Loading ONNX runtime...
Loaded ONNX runtime. Creating IntelliCode session...
[Info  - 8:07:31 PM] Connection to server got closed. Server will restart.
[Error - 8:07:31 PM] Request workspace/executeCommand failed.
Error: Connection got disposed.
	at Object.dispose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:241001)
	at Object.dispose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:145557)
	at S.handleConnectionClosed (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:145769)
	at S.handleConnectionClosed (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:17:10273)
	at t (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:143862)
	at invoke (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:264940)
	at o.fire (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:265701)
	at X (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:230363)
	at invoke (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:264940)
	at o.fire (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:265701)
	at d.fireClose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:220432)
	at ChildProcess.<anonymous> (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:260670)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Socket.<anonymous> (internal/child_process.js:439:11)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:673:12)
[Error - 8:07:31 PM] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:241001)
	at Object.dispose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:145557)
	at S.handleConnectionClosed (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:145769)
	at S.handleConnectionClosed (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:17:10273)
	at t (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:143862)
	at invoke (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:264940)
	at o.fire (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:265701)
	at X (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:230363)
	at invoke (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:264940)
	at o.fire (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:265701)
	at d.fireClose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:220432)
	at ChildProcess.<anonymous> (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:260670)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Socket.<anonymous> (internal/child_process.js:439:11)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:673:12)
[Error - 8:07:31 PM] Request textDocument/semanticTokens/full failed.
Error: Connection got disposed.
	at Object.dispose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:241001)
	at Object.dispose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:145557)
	at S.handleConnectionClosed (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:145769)
	at S.handleConnectionClosed (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:17:10273)
	at t (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:143862)
	at invoke (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:264940)
	at o.fire (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:265701)
	at X (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:230363)
	at invoke (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:264940)
	at o.fire (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:265701)
	at d.fireClose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:220432)
	at ChildProcess.<anonymous> (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:260670)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Socket.<anonymous> (internal/child_process.js:439:11)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:673:12)
[Error - 8:07:31 PM] Request textDocument/semanticTokens/range failed.
Error: Connection got disposed.
	at Object.dispose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:241001)
	at Object.dispose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:145557)
	at S.handleConnectionClosed (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:145769)
	at S.handleConnectionClosed (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:17:10273)
	at t (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:143862)
	at invoke (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:264940)
	at o.fire (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:265701)
	at X (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:230363)
	at invoke (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:264940)
	at o.fire (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:265701)
	at d.fireClose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:220432)
	at ChildProcess.<anonymous> (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:260670)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Socket.<anonymous> (internal/child_process.js:439:11)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:673:12)
[Error - 8:07:31 PM] Request textDocument/semanticTokens/range failed.
Error: Connection got disposed.
	at Object.dispose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:241001)
	at Object.dispose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:145557)
	at S.handleConnectionClosed (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:145769)
	at S.handleConnectionClosed (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:17:10273)
	at t (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:143862)
	at invoke (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:264940)
	at o.fire (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:265701)
	at X (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:230363)
	at invoke (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:264940)
	at o.fire (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:265701)
	at d.fireClose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:220432)
	at ChildProcess.<anonymous> (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:260670)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Socket.<anonymous> (internal/child_process.js:439:11)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:673:12)
[Error - 8:07:31 PM] Request textDocument/semanticTokens/range failed.
Error: Connection got disposed.
	at Object.dispose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:241001)
	at Object.dispose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:145557)
	at S.handleConnectionClosed (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:145769)
	at S.handleConnectionClosed (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:17:10273)
	at t (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:143862)
	at invoke (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:264940)
	at o.fire (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:265701)
	at X (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:230363)
	at invoke (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:264940)
	at o.fire (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:265701)
	at d.fireClose (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:52:220432)
	at ChildProcess.<anonymous> (/home/admin/.vscode-server/extensions/ms-python.python-2021.11.1422169775/out/client/extension.js:9:260670)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Socket.<anonymous> (internal/child_process.js:439:11)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:673:12)
[Info  - 8:07:32 PM] Pylance language server 2021.11.2 (pyright b27108d5) starting
[Info  - 8:07:32 PM] Server root directory: /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist
[Info  - 8:07:32 PM] No configuration file found.
[Info  - 8:07:32 PM] No pyproject.toml file found.
[Info  - 8:07:32 PM] Setting pythonPath for service "ray": "/home/admin/.pyenv/versions/3.8.0/envs/3.8.0_ray/bin/python"
[Warn  - 8:07:32 PM] stubPath /home/admin/code/ray/typings is not a valid directory.
[Info  - 8:07:32 PM] Assuming Python version 3.8
[Info  - 8:07:32 PM] Assuming Python platform Linux
Search paths for /home/admin/code/ray
  /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stdlib
  /home/admin/code/ray
  /home/admin/code/ray/src
  /home/admin/code/ray/python/ray
  /home/admin/code/ray/ray/python/ray
  /home/admin/code/ray/typings
  /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/typeshed-fallback/stubs/...
  /home/admin/.vscode-server/extensions/ms-python.vscode-pylance-2021.11.2/dist/bundled/stubs
  /home/admin/.pyenv/versions/3.8.0/lib/python3.8
  /home/admin/.pyenv/versions/3.8.0/lib/python3.8/lib-dynload
  /home/admin/.pyenv/versions/3.8.0/envs/3.8.0_ray/lib/python3.8/site-packages
  /home/admin/code/ray/python
[Warn  - 8:07:33 PM] Exception received when installing file system watcher: TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
[Warn  - 8:07:33 PM] Exception received when installing file system watcher: TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
[Warn  - 8:07:33 PM] Exception received when installing file system watcher: TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
[Info  - 8:07:33 PM] Searching for source files

Code Snippet / Additional information

XXX

Thank you for the issue.  Is this a recurring issue and do you have an repro steps for us?

Thank you for the issue. Is this a recurring issue and do you have an repro steps for us?

yes. this is a recurring issue. Encountered this problem as soon as I started vscode

My vscode is in mac os.  The code is in linux of remote。 Use remote-ssh extension to review code.

would it be possible to get more detailed logs for this problem? You can do that by adding a pyrightconfig.json to your project root with the following entry:
{
    "verboseOutput": true
}

Could you also please add the information in the report as described in the troubleshooting guide?

I have the same problem. I am using Remote-SSH to connect to the development server remotely, and the server is ubuntu.
Language server is set to Pylance. Acquiring model Acquiring model 'intellisense-members-lstm-pylance' for python Querying IntelliCode service for available models. vs-intellicode-python was passed a model: {}. Cached model is up to date. Activating Python extension Language server extension command failed. Exception: Error: Connection got disposed. 	at Object.dispose (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:145215) 	at Object.dispose (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:154366) 	at S.handleConnectionClosed (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:154578) 	at S.handleConnectionClosed (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:32:10900) 	at t (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:152671) 	at invoke (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277104) 	at o.fire (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277865) 	at X (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:134577) 	at invoke (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277104) 	at o.fire (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277865) 	at d.fireClose (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:124646) 	at ChildProcess.<anonymous> (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:272834) 	at ChildProcess.emit (events.js:327:22) 	at maybeClose (internal/child_process.js:1048:16) 	at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) Error while activating Python: {}
[2021-12-10 16:17:35.006] [exthost] [info] ExtensionService#_doActivateExtension ms-python.vscode-pylance, startup: false, activationEvent: 'onLanguage:python' [2021-12-10 16:17:36.684] [exthost] [info] ExtensionService#_doActivateExtension VisualStudioExptTeam.vscodeintellicode, startup: false, activationEvent: 'onLanguage:python' [2021-12-10 16:17:44.451] [exthost] [error] Error: Connection got disposed. 	at Object.dispose (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:145215) 	at Object.dispose (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:154366) 	at S.handleConnectionClosed (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:154578) 	at S.handleConnectionClosed (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:32:10900) 	at t (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:152671) 	at invoke (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277104) 	at o.fire (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277865) 	at X (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:134577) 	at invoke (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277104) 	at o.fire (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277865) 	at d.fireClose (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:124646) 	at ChildProcess.<anonymous> (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:272834) 	at ChildProcess.emit (events.js:327:22) 	at maybeClose (internal/child_process.js:1048:16) 	at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) python.intellicode.loadLanguageServerExtension {"value":"ms-python.python","_lower":"ms-python.python"} [2021-12-10 16:17:44.451] [exthost] [error] [ms-python.python] provider FAILED [2021-12-10 16:17:44.451] [exthost] [error] Error: Connection got disposed. 	at Object.dispose (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:145215) 	at Object.dispose (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:154366) 	at S.handleConnectionClosed (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:154578) 	at S.handleConnectionClosed (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:32:10900) 	at t (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:152671) 	at invoke (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277104) 	at o.fire (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277865) 	at X (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:134577) 	at invoke (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277104) 	at o.fire (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277865) 	at d.fireClose (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:124646) 	at ChildProcess.<anonymous> (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:272834) 	at ChildProcess.emit (events.js:327:22) 	at maybeClose (internal/child_process.js:1048:16) 	at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) [2021-12-10 16:17:44.451] [exthost] [error] [ms-python.python] provider FAILED [2021-12-10 16:17:44.451] [exthost] [error] Error: Connection got disposed. 	at Object.dispose (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:145215) 	at Object.dispose (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:154366) 	at S.handleConnectionClosed (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:154578) 	at S.handleConnectionClosed (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:32:10900) 	at t (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:152671) 	at invoke (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277104) 	at o.fire (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277865) 	at X (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:134577) 	at invoke (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277104) 	at o.fire (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277865) 	at d.fireClose (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:124646) 	at ChildProcess.<anonymous> (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:272834) 	at ChildProcess.emit (events.js:327:22) 	at maybeClose (internal/child_process.js:1048:16) 	at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) [2021-12-10 16:17:44.452] [exthost] [error] [ms-python.python] provider FAILED [2021-12-10 16:17:44.452] [exthost] [error] Error: Connection got disposed. 	at Object.dispose (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:145215) 	at Object.dispose (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:154366) 	at S.handleConnectionClosed (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:154578) 	at S.handleConnectionClosed (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:32:10900) 	at t (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:152671) 	at invoke (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277104) 	at o.fire (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277865) 	at X (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:134577) 	at invoke (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277104) 	at o.fire (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277865) 	at d.fireClose (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:124646) 	at ChildProcess.<anonymous> (/home/ubuntu/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:272834) 	at ChildProcess.emit (events.js:327:22) 	at maybeClose (internal/child_process.js:1048:16) 	at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)

I got the same problem when I use remote-ssh to connect an Ubuntu18.04 server from an Ubuntu18.04 local machine with VSCode 1.63.1 and Pylance v2021.12.2

Same problem here
Language server is set to Pylance.
Acquiring model
Acquiring model 'intellisense-members-lstm-pylance' for python
Querying IntelliCode service for available models.
vs-intellicode-python was passed a model: {}.
Cached model is up to date.
Activating Python extension
Language server extension command failed. Exception: Error: Connection got disposed.
    at Object.dispose (/home/apocryphon/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:145215)
    at Object.dispose (/home/apocryphon/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:154366)
    at S.handleConnectionClosed (/home/apocryphon/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:154578)
    at S.handleConnectionClosed (/home/apocryphon/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:32:10900)
    at t (/home/apocryphon/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:152671)
    at invoke (/home/apocryphon/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277104)
    at o.fire (/home/apocryphon/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277865)
    at X (/home/apocryphon/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:134577)
    at invoke (/home/apocryphon/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277104)
    at o.fire (/home/apocryphon/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:277865)
    at d.fireClose (/home/apocryphon/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:67:124646)
    at ChildProcess.<anonymous> (/home/apocryphon/.vscode-server/extensions/ms-python.python-2021.12.1559732655/out/client/extension.js:24:272834)
    at ChildProcess.emit (events.js:327:22)
    at maybeClose (internal/child_process.js:1048:16)
    at Socket.<anonymous> (internal/child_process.js:439:11)
    at Socket.emit (events.js:315:20)
    at Pipe.<anonymous> (net.js:673:12)
Error while activating Python: {}

Hi, thanks. I will reply to you soon when I'm back.

Hi, thanks. I will reply to you soon when I'm back.


[Feature request] Start application using PM2

Hi,
it would be great if you can provide details how to start application using PM2
https://www.npmjs.com/package/pm2
https://pm2.keymetrics.io/
That way, we could start the application automatically in case a server is rebooted
Thank you very much in advance!
Regards,
Igor

Replying to my self and giving the solution to the community
If you want to start application using PM2, you can use the following command
pm2 start npm --name "next" -- start

Add a PM2 specific file ecosystem.config.json like below. @mikecao maybe add to the root of the repo here? Then just run pm2 start. Note: the ecosystem.config.json is doing a bit of tricky to actually invoke npm start instead of the standard invoking of a Node.js script directly.
'use strict';

const pkg = require('./package.json');

module.exports = {
    apps : [{
        name: pkg.name,
        script: 'npm',
        args: 'start',
        interpreter: 'none',
        watch: false,
        autorestart: true,
        exec_mode: 'fork',
        instances: 1,
        merge_logs: true,
        env: {
            NODE_ENV: 'production'
        }
    }]
};


Bug fix :  Symphony pipeline config fail due to base64 encoding wrapping

This PR fixes an encoding issue encountered by some users running Symphony pipeline config command and sometimes the generated token contains empty space.

@HadwaAbdelhalem , the credentials for the pipeline seem to be expired. Updated them when possible and re-trigger the pipeline to merge the PR


Facebook plugin/SDK

http://stackoverflow.com/questions/27621187/invalid-version-specified-facebook-share-plugin-error
issue with version use &
http://stackoverflow.com/questions/24070067/error-parsing-xml-the-reference-to-entity-version-must-end-with-the-deli

code not working behind a proxy.

I can do away with this bug for now since I'm using Amp which does not allow external js


Missing paginator on optimized builds

With --optimize-minimize, libraryName (and maybe other variables) is not defined and messes with the paginator.

Fixed in commit df900346bdeed7ed9c44ec7c33e5dff78b5ff982
This bug was caused by libraryPage checking the name of his children,
but in minified build, the names are replaced, hence the bug.
Fixed by adding a static method on classes returning the class name, and using it to retrieve the name


feat: use fixed size modal

Are you going to alter all the modals?
we have a modals for:

[x] Password edit
[ ] Account Edit (Email/Username)
[ ] Watering Modal

therefore only one placeholder/spacer would not work in that case.

Yes, I can see the issue. I'm open to discussing other approaches, but also happy to merge this for now and do it afterwards.


[FEATURE] Account storage alert

Issue to be solved
Background:
https://github.com/Outblock/FRW/issues/61
Suggest A Solution
Get Storage and Available Balance Info
Our script API returns getAccountInfo cadence, which allow wallet to get the storage info under an account.
access(all) struct Result {
  access(all) let address: Address
  access(all) let balance: UFix64
  access(all) let availableBalance: UFix64
  access(all) let storageUsed: UInt64
  access(all) let storageCapacity: UInt64
  access(all) let storageFlow: UFix64,
}

If storageCapacity - storageUsed < 10000 then it's insufficient storage
Notification
Currently, we use firebase remote config to control the notification messages. It use news at the moment.
For insufficient storage alert, we gonna add a new condition flag insufficientStorage, which user reach storage limit.
Onchain Interaction
Any onchain Interaction, wallet need do a async check whether the storage is sufficient or not.
If it's send Flow Token or move action ( move fee ), the balance will be affected we need take count of the sending or move fee balance.  ( availableBalance - sent amount ) < 0.001
Other onchain Interaction, we only do the availableBalance check.
Following is the list of storage warning in action button:

Move token
Move NFT
Send Token
Send NFT
Sign Transaction on browser
Sign Transaction on WalletConnect

Transaction Listener
Every transaction submitted to the chain, the wallet will listen the callback. So when there is storageCapacityExceeded.
we need show an global alert telling user that the last transaction was failing due to storage.
Storage Usage Card
Storage info card need to be displayed only under FLOW token detail page.
Figma:
https://www.figma.com/design/mSr5uIApRJNrpkmN0YNuD6/FLOW-REF-Mobile-Design-v2.0.0?node-id=35558-33202&t=eegpA2haFKcXcypT-1

Following is the list of storage warning in action button:

[ ] Move token
[ ] Move NFT
[ ] Send Token
[ ] Send NFT
[ ] Sign Transaction on browser
[ ] Sign Transaction on WalletConnect

Issues:
(1) When click "learn it more" link, no page redirection.
(2) Storage limit alert not pop up, when have this error: https://www.flowscan.io/tx/5322ad883ef8e408f1f3e9e7072a38123e15361132611ef12484c1e6832c3223
(3) EVM account display flow token amount incorrectly. I have 80 flow token in my evm wallet, but android display 0.

After last Friday's meeting, we agreed to use a simpler approach to alert users.

This feature already add in Android dev 60 (i1.7.1)


TM/TRs glitch with CarrotShop

When putting up signs to sell TM/TRs, they are read as the same item rather than separate items.
Example: I keep both ice and ground TRs in the same chest for storage purposes and link all the TRs separately like any other item. If someone buys any TR from that chest, it gives them the first TR in the chest rather than the specific TR. Say I bought a ice beam TR but the first TR in the chest is earth power, they would get earth power instead of ice beam.

That's because TM/TRs now are the same item with different NBT data. It's not something that we can edit.


fix concurrent map read and write bug in function.go

Related issue: https://github.com/wasmerio/wasmer-go/issues/176

Thanks for the PR! It does indeed solve the problem.

Thanks for the PR! It does indeed solve the problem.

bors r+

bors r+


Inf2cat "Signability test failed"

Hello,
I'm experiencing problems while compiling and installing the driver on a x64 Windows 10. I switched Visual Studio to Release / x64 build chain. Inf2cat fails with the following output:
Inf2Cat Tool Output:
........................
Signability test failed.

Errors:
22.9.1: %drivername%.sys in [minifswatcher.driverfiles] of \minifswatcher.inf is missing or cannot be decompressed from source media.  Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.

Warnings:
None

The project compiles fine in Debug mode, but the driver will fail to install then.
I also enabled testsigning and created a test certificate in the project properties, but this doesn't help either.
Any suggestions on this?
Thanks in advance,
Franz

I finally solved this issue myself - it's the result of two typos in minispy.vcxproj:
https://github.com/CenterDevice/MiniFSWatcher/blob/d629c8117cbd6f8199b3e471100dde27aaa52d09/MiniFSWatcherDriver/minispy.vcxproj#L83-L91
If you rename minfifswatcher to minifswatcher twice, it works.


Issue reconciling node routes with self hosted canal

I've been trying to use self hosted canal enabled by default using version 9c735f9485445699d598df5c07fc73c811f682d2. k8s v1.9.7. It seems now I'm getting these logs from the controller manager although the cluster itself appears to be working still.
kube-controller-manager-ip-10-0-22-230.eu-west-1.compute.internal kube-controller-manager E0527 10:17:37.615993       1 route_controller.go:116] Couldn't reconcile node routes: error listing routes: found multiple matching AWS route tables for AWS cluster: kubernetes
The only changes made between this and previous cluster are switching self hosting on plus the separate etcd stack that comes with the latest version. It's an entirely new cluster and I've deleted the previous version of the cluster.
We do have another cluster in the same VPC but this has never been a problem before.
I had a look through every route table and subnet, all seem tagged appropriately. I was looking for potentially related issues and found https://github.com/kubernetes/kubernetes/issues/12449#issuecomment-138276913.
Anyone else having similar issues?

I think I tracked this down. https://github.com/kubernetes-incubator/kube-aws/pull/1233 changed all the kubernetes.io/cluster/{{$.ClusterName}} tag values from owned to true but not sure why that was. @mumoshu?

Ah sorry perhaps it's not that, some are true and some are owned.

Just trying out the --cluster-name flag for controller manager, it seems we've never set it in kube-aws.

@davidmccormick, I wondered if you had any ideas about this or seeing similar in your clusters? It appears the cluster still works which is odd but I'm concerned running another cluster in the same VPC will break them. The cluster name flag above did not fix it. Our other cluster in the same VPC appears to be working fine and has a similar setup. The differences are k8s 1.7.x to 1.9.x and the self hosted network enable. I'm not sure if the --allocate-node-cidrs and --cluster-cidr flags of controller manager could affect this, I'm still digging into the controller manager code.

Hi, sorry for the slow reply!  Yes I see these messages on my clusters too and have also seen it before and thought it benign.  What I think is happening is that the AWS cloud plugin is trying to update the routing tables - which is only required for the AWS native networking backend which we are not using because we are using flannel (the AWS backend is limited by routing table entries).  Previously there was no way to turn this off, I don’t know if that has now changed in the AWS plugin.  I’m out of the office this week but happy to have more of a look next week.

@davidmccormick no worries, thanks for the confirmation. I was thinking it might benign also considering that the cluster still appears to work. I am wondering though why flannel on the 1.7.3 cluster in the same VPC works without these errors, kube-aws is generating the subnets and route tables in both cases. I was checking upstream and the code appears to be the same for controller manager. So best I can determine right now is this is introduced when I switched on the self hosted network just can't see why that would be.

Without looking at the code I would guess as you did that the change is in being asked to allocate node cidrs that it wasn’t doing under the legacy flannel install.

Seems like the controller manager flag --configure-cloud-routes and https://github.com/kubernetes/kubernetes/issues/25602 are relevant. I just set this flag to false on the dev cluster in question and the message has disappeared plus the cluster appears to all be functionality still. My understanding is not deep enough to say whether we should be setting that flag to false or not for self hosted network.

Go spot - that sounds good!  We don't need cloud routes with flannel - look
like you have found the off switch for it!
On 28 May 2018 at 11:50, Chris Knowles<EMAIL_ADDRESS>wrote:

Seems like the controller manager flag --configure-cloud-routes and
kubernetes/kubernetes#25602
https://github.com/kubernetes/kubernetes/issues/25602 are relevant. I
just set this flag to false on the dev cluster in question and the
message has disappeared plus the cluster appears to all be functionality
still. My understanding is not deep enough to say whether we should be
setting that flag to false or not for self hosted network.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes-incubator/kube-aws/issues/1336#issuecomment-392491641,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABYvcpC3OGhQRCK5ZxMfmDFAw_LDsQgQks5t29Z-gaJpZM4UPOg0
.


Add hash function to avoid unnecessary recompilations

Example:
from functools import partial
import jax
import jax.numpy as jnp
import optax

@partial(jax.jit, static_argnames=("optimizer",))
def train_step(optimizer, opt_state):
    print("compiling")

def train():
    optimizer = optax.adam(1e-2)
    opt_state = optimizer.init({"foo": jnp.zeros((100, 100))})

    for _ in range(10):
        train_step(optimizer, opt_state)

train()
train()
train()

This prints:
compiling
compiling
compiling

Even though the same optimizer is used every time. This could be avoided by supplying meaningful __hash__ attributes based on the optimizer parameters, or memoizing the wrappers in alias.py.

or even better, by marking optimisers as pytrees and splitting 'dynamic' data such as learning rate and such from static data...

or even better, by marking optimisers as pytrees and splitting 'dynamic' data such as learning rate and such from static data...

Exactly!  This is the approach I took in my shim library in which I just call through to Optax.


how to make excludes from monitoring devices?

I have many virtual network interfaces on my nodes, and tensor.sources.linux.basic.Network grab all of them and sends info into riemann, creating a lot of 'rubbish' traffic. Can I use smth like that?
  - service: network
    source: tensor.sources.linux.basic.Network
    ifaces: eth0 # <-- monitor only this iface
    interval: 30.0
    ttl: 120

The same question about storage devices (DiskFree and DiskIO sources).

Each source would have to implement that, I agree it's a good idea.
I'm wondering if the regex filter system couldn't also be used to filter out unwanted metrics from other things like SNMP and SFlow - but it's probably more efficient not to generate them at all.
Either way I'll have to add this as a feature

Resolved in #22


assertion functions with globally scoped variables don't work when imported

Bug Report

🔎 Search Terms
Assertion function narrow

🕗 Version & Regression Information
4.3.0-beta
⏯ Playground Link
Can't reproduce in the playground as multiple files are required
💻 Code
foo.ts:
declare const foo {
    bar: number
}

bar.ts:
declare function narrowFoo(_foo: typeof foo): asserts _foo is typeof _foo & {baz: number}
narrowFoo(foo)
console.log(foo.baz) //works

baz.ts
import './bar'
console.log(foo.baz) //compile error: property baz doesn't exist

🙁 Actual behavior
The foo type isn't narrowed

🙂 Expected behavior
foo is narrowed since import './bar' imports runtime side effects, it should also import compiletime side effects

Shouldn't you also call narrowFoo somewhere?

Oops, fixed

The performance cost of this would be massive, it wouldn't work under declaration emit, and I can't imagine this being common at all

Thanks for the reply. Do you mind elaborating on those points since I'd like to learn more about how the compiler works

The performance cost of this would be massive

Why's that? I don't see how it'd ccause any issues as all it's really doing is telling the compiler to compile baz.ts as if it was appended to the bottom of bar.ts. Or is the problem that there's be no way to stop it from compiling bar.ts multiple times?

it wouldn't work under declaration emit

How come?

and I can't imagine this being common at all

I probably should've included my use case. I think it would be very useful for prototype extensions and for tools like cypress where to add new functions you have to define their signatures twice:
declare global {
    interface Chainable {
        foo(bar: number): string
    }
}

cy.Commands.add('foo', (bar: number) => "foo")

Instead you'd be able to define both at the same time using an assertion function
//(pseudocode, the actual function signature to make this accurate to how commands work in cypress is like 60 lines long)
function addCommand<Name extends string, Func extends (...args: any[]) => any>(
  _cy: typeof cy, //need to pas the unused cy object in order for the function to be able to change its type
  name: Name,
  func: Func
): asserts _cy is typeof cy & { [Key in Name]: Func } {
  cy.Commands.add(name, func)
}

//add the new command
addCommand(cy, 'foo', (bar: number) => "foo")

//use the new command
cy.foo(1)

this (mostly) works fine except that there doesn't seem to be a way to import the new commands outside of the file they're defined in, since the narrowed cy object gets reset to its initial type when you try to import it.
though this seems quite hacky (and now that i think about it, i don't even know if it's possible with prototype extensions with the current limitations of assertion functions and type predicates).
i'm going to raise a separate issue as a feature request which will better fit these use cases.

and I can't imagine this being common at all

We encountered this issue in Chrome DevTools with our definition of assertNotNull: https://github.com/ChromeDevTools/devtools-frontend/blob/63cc5fdff7bc2ee8cef9be01c93b93f0af95f1f4/front_end/core/platform/typescript-utilities.ts#L10 In general, we wanted to extract commonly used TypeScript utilities in this file. However, we quickly ran into this limitation, which wouldn't per se be a problem, except for the fact that we enforce import * as for cross-module loads: https://docs.google.com/presentation/d/1KaTDaKEcLmgv3Wum79gPP9mv9x2fm3kuEgx_b8wLVug/preview?slide=id.g6f3bb6e30c_0_163
This means that we currently have to do the following:
import {assertNotNull} from '../../core/platform/typescript-utilities.js'; // This breaks in production

assertNotNull(foo);

whereas our style guide would normally dictate the following:
import * as Platform from '../../core/platform/platform.js';

Platform.TypeScriptUtilities.assertNotNull(foo);

The reason we have this requirement is that we bundle our source code in production in a bundle for each module, which means that the assertion function in the first snippet will actually break in production: https://docs.google.com/presentation/d/1KaTDaKEcLmgv3Wum79gPP9mv9x2fm3kuEgx_b8wLVug/preview?slide=id.g6f3bb6e30c_0_144. As such, we are unable to use TypeScript assertion functions in our production code (we solely use it in tests atm).


Can we enable https endpoint for druid-exporter?

Currently i have successfully configured to listen to druid cluster and emit the metrics over http like
http://localhost:8080/metrics
Now do i have option to emit over https like
https://localhost:4443/metrics ?

Figured out a way achieve this by using nginx reverse proxy. Closing out this issue.


[Issue] Improve azd env docs

DevHub doesn't currently include a lot of information around how to use our azd env command, specifically azd env refresh (https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/reference#azd-env-refresh).
I think it'd be really helpful if we detailed out the specific behaviour of this command (because it's rather powerful) and why you'd use it (e.g. maybe you want to develop across machines, maybe you want to pull down an existing env that your coworker configured).
Perhaps as an FAQ or a how-to?

We can probably enhance the docs one @ellismg environment changes are in.

Related https://github.com/Azure/azure-dev/issues/1458

Needed before content freeze

Ac

https://github.com/MicrosoftDocs/azure-dev-docs-pr/pull/4458


Publish versions on Docker Hub

Currently there is only latest available on Docker Hub:
https://hub.docker.com/r/gibiansky/ihaskell/tags
If a new broken version is pushed there is no way to use an older working version. This is a big red flag for anyone trying to productively use IHaskell.
Shouldn't be too hard to adapt the CI publishing workflow, right?

We don't currently have any automated versioning/release process, I'm still uploading packages to e.g. Hackage manually. It would actually be a fair amount of work to adapt the current workflow. What other images would you want us to upload to Docker Hub?

We don't currently have any automated versioning/release process, I'm still uploading packages to e.g. Hackage manually. It would actually be a fair amount of work to adapt the current workflow. What other images would you want us to upload to Docker Hub?

It would already be enough to simply push the image with another tag in addition to ihaskell:latest. E.g. something like haskell:lts-16.23-5b7e03b.
All it needs is a simple script to build the tag slug.

It would already be enough to simply push the image with another tag in addition to ihaskell:latest. E.g. something like haskell:lts-16.23-5b7e03b.
All it needs is a simple script to build the tag slug.

Closed by https://github.com/gibiansky/IHaskell/commit/e07b198f07d7dc7a12863f8507439ae3834947e4.

Closed by https://github.com/gibiansky/IHaskell/commit/e07b198f07d7dc7a12863f8507439ae3834947e4.

Awesome, thanks!

Awesome, thanks!


merchant listing request

dear support
please add us in merchant list
we have 2 brands
https://monovm.com
https://1gbits.com
regards

Hello @monovm, could you clarify how you support XMR as payment method?
Both the sites says you support cryptocurrencies, but there is no list. Is it through a payment gateway? Which one?

Thanks we use coinpayments.net
Regards

Done in #844

+merchant
+in progress

thanks
i wan to follow up the matter
regards

+resolved

dear  erciccione
you mean sites are listed ?

They are in codebase. Kindly wait for a site rebuild.

;) thanks


added support for setting responseType to array buffer

I was having trouble loading binary files when using Mirage in my Ember project. It seems that pretender didn't support other responses than text.
This change allow you to set the contentType of an XHR request to arraybuffer, this results in the binary content being available using the response property.
var xhr = new XMLHttpRequest();
  xhr.open("GET", '/assets/pretender.ogg', true );
  // important because this allow to load the binary data correctly, it makes the response available which contains the arraybuffer
  xhr.responseType = 'arraybuffer';
  xhr.onload = function ()
  {
   var arrayBuffer = xhr.response;
  };
  xhr.send();

this PR fixes #72

@trek Please review my PR, would be awesome if it's added! :musical_note:

We need this for our apps as well...so would be great if it is added!

I'm required to use my own branch in my project now. There isn't much activity lately. :crying_cat_face:

Also using my own fork (#79), +1 for getting this merged!

Thanks! This will be in next release (coming shortly)

Hi @TimvdEijnden can you share how you used the responseType: arraybuffer to return binary data? thanks

@bhaidar We used it to load sound files as in the example in the start.


Extra set of double quotes being added to a commit message

When forming a commit message you are adding an additional set of double quotes. This causes the double quotes to be a part of the commit message.
val options = listOf("--message", ""$message"", "--no-verify")

Added under wrong userid.


Does GraphSAGE support multi-GPUs training?

❓ Questions & Help
There is a multi gpus implementation of GraphSAGE in DGL:
https://github.com/dmlc/dgl/blob/master/examples/pytorch/graphsage/train_sampling_multi_gpu.py
The example used DistributedDataParallel , and the subgraph will be sampled in each process.
Can pyG also implement multi-gpus training in this way?

DistributedDataParallel support is planned for PyG 1.7 or PyG 1.8, so please stay tuned :)
Just out of curiosity: For what use-case do you desperately need multi-GPU support? IMO, you can train large graphs, e.g., the ones from OGB, already in like 10 minutes.

Thank you for your quick reply and look forward to the new features of pyG.
I don't have an actual scenario to use multi-GPU training. In fact, I only learned pytorch and gnn not long ago, and of course also pyG and DGL.
Recently I am learning graphSAGE/GAT, a simple learning process is from single-machine single-GPU to single-machine multi-GPU to multi-machine multi-GPU.
Today I saw an example of GraphSAGE for multi-GPU in DGL, so I want to follow this example and implement it in pyG, but it did not run successfully, so I asked this question.
What puzzles me is, why can't pyG now use DistributedDataParallel to implement multi-GPU training? From the multi-GPU example of DGL, it seems that only pytorch native methods are used(torch.multiprocessing and DistributedDataParallel), and each process has its own sampler and dataloader to generate subgraph used in mini-batch training. Can't pyG also use this method to implement multi-GPU training?
Are there other details here that I haven't noticed? Looking forward to your reply.

Yes, the idea would be to utilize torch.multiprocessing and DistributedDataParallel from PyTorch, and have each client sample its own data. I doubt that this is hard to implement, however, I haven't tested it yet so its definitely unsupported at the moment. I will look into it in the upcoming weeks, and what may needs to be done to allow distributed training :)

Today I continued to try it, and it seems that the single-machine multi-GPU can run successfully(I modified this code to use Reddit dataset:https://github.com/rusty1s/pytorch_geometric/blob/master/examples/ogbn_products_gat.py).
Compared with the multi-GPU training implemented in DGL, the main difference is:
    if n_gpus == 1:
        run(0, n_gpus, args, devices, data)
    else:
        procs = []
        for proc_id in range(n_gpus):
            p = mp.Process(target=thread_wrapped_func(run),
                           args=(proc_id, n_gpus, args, devices, data))
            p.start()
            procs.append(p)
        for p in procs:
            p.join()

should be changed to(this is where I went wrong yesterday):
    if n_gpus == 1:
        run(0, n_gpus, args, devices, data)
    else:
        mp.spawn(run, args=(n_gpus, devices, data), nprocs=n_gpus, join=True)

But I don’t know if there are other hidden bugs

The complete code is below, if there are any bugs, please tell me.
# -*- coding: utf-8 -*-
"""
@Author: maqy
@Time: 2020/7/16
@Description:
"""
import argparse
import os.path as osp

import torch
import torch.nn.functional as F
import time
import torch.multiprocessing as mp
from torch.nn.parallel import DistributedDataParallel
import numpy as np
from torch.nn import Linear as Lin
from tqdm import tqdm
from torch_geometric.data import NeighborSampler
from torch_geometric.nn import GATConv
from torch_geometric.datasets import Reddit
from utils import thread_wrapped_func

class GAT(torch.nn.Module):
    def __init__(self, in_channels, hidden_channels, out_channels, num_layers,
                 heads):
        super(GAT, self).__init__()

        self.num_layers = num_layers
        self.convs = torch.nn.ModuleList()
        self.convs.append(GATConv(in_channels, hidden_channels,heads))
        for _ in range(num_layers - 2):
            self.convs.append(
                GATConv(heads * hidden_channels, hidden_channels, heads))
        self.convs.append(
            GATConv(heads * hidden_channels, out_channels, heads,
                    concat=False))

        # residual
        self.skips = torch.nn.ModuleList()
        self.skips.append(Lin(in_channels, hidden_channels * heads))
        for _ in range(num_layers - 2):
            self.skips.append(
                Lin(hidden_channels * heads, hidden_channels * heads))
        self.skips.append(Lin(hidden_channels * heads, out_channels))

    def reset_parameters(self):
        for conv in self.convs:
            conv.reset_parameters()
        for skip in self.skips:
            skip.reset_parameters()

    def forward(self, x, adjs):
        # `train_loader` computes the k-hop neighborhood of a batch of nodes,
        # and returns, for each layer, a bipartite graph object, holding the
        # bipartite edges `edge_index`, the index `e_id` of the original edges,
        # and the size/shape `size` of the bipartite graph.
        # Target nodes are also included in the source nodes so that one can
        # easily apply skip-connections or add self-loops.
        for i, (edge_index, _, size) in enumerate(adjs):
            x_target = x[:size[1]]  # Target nodes are always placed first.
            x = self.convs[i]((x, x_target), edge_index)
            x = x + self.skips[i](x_target)
            if i != self.num_layers - 1:
                x = F.elu(x)
                x = F.dropout(x, p=0.5, training=self.training)
        return x.log_softmax(dim=-1)

    def inference(self, x_all, device, subgraph_loader):
        pbar = tqdm(total=x_all.size(0) * self.num_layers)
        pbar.set_description('Evaluating')

        # Compute representations of nodes layer by layer, using *all*
        # available edges. This leads to faster computation in contrast to
        # immediately computing the final representations of each batch.
        total_edges = 0
        for i in range(self.num_layers):
            xs = []
            for batch_size, n_id, adj in subgraph_loader:
                edge_index, _, size = adj.to(device)
                total_edges += edge_index.size(1)
                x = x_all[n_id].to(device)
                x_target = x[:size[1]]
                x = self.convs[i]((x, x_target), edge_index)
                x = x + self.skips[i](x_target)

                if i != self.num_layers - 1:
                    x = F.elu(x)
                xs.append(x.cpu())

                pbar.update(batch_size)

            x_all = torch.cat(xs, dim=0)

        pbar.close()

        return x_all

@torch.no_grad()
def test(model, x, y, data, device, subgraph_loader):
    model.eval()

    out = model.inference(x, device, subgraph_loader)

    y_true = y.cpu().unsqueeze(-1)
    y_pred = out.argmax(dim=-1, keepdim=True)

    results = []
    for mask in [data.train_mask, data.val_mask, data.test_mask]:
        results += [int(y_pred[mask].eq(y_true[mask]).sum()) / int(mask.sum())]

    return results

def run(proc_id, n_gpus, devices, dataset, args):
    data = dataset[0]

    dev_id = devices[proc_id]
    if n_gpus > 1:
        dist_init_method = 'tcp://{master_ip}:{master_port}'.format(
            master_ip='<IP_ADDRESS>', master_port='12346')
        world_size = n_gpus
        torch.distributed.init_process_group(backend="nccl",
                                             init_method=dist_init_method,
                                             world_size=world_size,
                                             rank=proc_id)
    torch.cuda.set_device(dev_id)

    train_nid = torch.LongTensor(np.nonzero(data.train_mask))
    # Split trian_id
    train_nid = torch.split(train_nid, len(train_nid) // n_gpus)[proc_id]

    train_loader = NeighborSampler(data.edge_index, node_idx=train_nid.view(-1),
                                   sizes=[10, 25],
                                   batch_size=args.train_batch_size,
                                   shuffle=True, num_workers=args.num_workers)

    model = GAT(dataset.num_features, args.num_hidden, dataset.num_classes, num_layers=args.num_layers,
                heads=args.num_heads)
    model = model.to(dev_id)
    model.reset_parameters()

    if n_gpus > 1:
        model = DistributedDataParallel(model, device_ids=[dev_id], output_device=dev_id)
    optimizer = torch.optim.Adam(model.parameters(), lr=args.lr)

    x = data.x.to(dev_id)
    y = data.y.squeeze().to(dev_id)

    for epoch in range(1, args.num_epochs):
        tic = time.time()
        device = dev_id
        model.train()

        step = 0
        for batch_size, n_id, adjs in train_loader:
            # `adjs` holds a list of `(edge_index, e_id, size)` tuples.
            adjs = [adj.to(device) for adj in adjs]

            optimizer.zero_grad()
            out = model(x[n_id], adjs)
            loss = F.nll_loss(out, y[n_id[:batch_size]])
            loss.backward()
            if n_gpus > 1:
                for param in model.parameters():
                    if param.requires_grad and param.grad is not None:
                        torch.distributed.all_reduce(param.grad.data,
                                                     op=torch.distributed.ReduceOp.SUM)
                        param.grad.data /= n_gpus
            optimizer.step()

            if step % args.log_every == 0 and proc_id == 0:
                pred_correct = int(out.argmax(dim=-1).eq(y[n_id[:batch_size]]).sum())
                cur_acc = float(pred_correct) / batch_size
                gpu_mem_alloc = torch.cuda.max_memory_allocated() / 1000000 if torch.cuda.is_available() else 0
                print(
                    'Epoch {:05d} | Step {:05d} | Loss {:.4f} | Train Acc {:.4f} | GPU {:.1f} MiB'.format(
                        epoch, step, loss.item(), cur_acc, gpu_mem_alloc))

            step = step + 1

        if n_gpus > 1:
            torch.distributed.barrier()

        toc = time.time()
        if proc_id == 0:
            print('Epoch Time(s): {:.4f}'.format(toc - tic))

        # eval only use proc0
        if epoch % args.eval_every == 0 and epoch != 0 and proc_id == 0:
            subgraph_loader = NeighborSampler(data.edge_index, node_idx=None, sizes=[-1],
                                              batch_size=args.eval_batch_size, shuffle=False,
                                              num_workers=args.num_workers)
            if n_gpus == 1:
                train_acc, val_acc, test_acc = test(model, x, y, data, devices[0], subgraph_loader)
            else:
                train_acc, val_acc, test_acc = test(model.module, x, y, data, devices[0], subgraph_loader)
            print(f'Train: {train_acc:.4f}, Val: {val_acc:.4f}, '
                  f'Test: {test_acc:.4f}')

        if n_gpus > 1:
            torch.distributed.barrier()

if __name__ == '__main__':
    argparser = argparse.ArgumentParser("multi-gpu training")
    argparser.add_argument('--gpu', type=str, default='0,1,2',
                           help="Comma separated list of GPU device IDs.")
    argparser.add_argument('--num-epochs', type=int, default=31)
    argparser.add_argument('--num-hidden', type=int, default=128)
    argparser.add_argument('--num-layers', type=int, default=2)
    argparser.add_argument('--sample-size', type=str, default='10,25')
    argparser.add_argument('--num-heads', type=int, default=4)
    argparser.add_argument('--train-batch-size', type=int, default=1024)
    argparser.add_argument('--eval-batch-size', type=int, default=1024)
    argparser.add_argument('--eval-every', type=int, default=5)
    argparser.add_argument('--lr', type=int, default=0.001)
    argparser.add_argument('--log-every', type=int, default=20)
    argparser.add_argument('--num-workers', type=int, default=2,
                           help="Number of sampling processes. Use 0 for no extra process.")

    args = argparser.parse_args()

    process_start_time = time.time()

    devices = list(map(int, args.gpu.split(',')))
    n_gpus = len(devices)

    # change for local data
    path = osp.join('/home/maqy/gnn/dataset/pyG/')
    load_data_start_time = time.time()
    dataset = Reddit(path)
    load_data_end_time = time.time()
    print("pyG load reddit data time: {:.4f} s".format(load_data_end_time - load_data_start_time))

    if n_gpus == 1:
        run(0, n_gpus, devices, dataset, args)
    else:
        mp.spawn(run, args=(n_gpus, devices, dataset, args), nprocs=n_gpus, join=True)
        # from dgl
        # procs = []
        # for proc_id in range(n_gpus):
        #     p = mp.Process(target=thread_wrapped_func(run),
        #                    args=(proc_id, n_gpus, devices, dataset))
        #     p.start()
        #     procs.append(p)
        #
        # for p in procs:
        #     p.join()

That looks cool! Are you interested in sending this as a PR? :)

of course! I will google how to submit a PR now.

I have submitted a PR, so close this issue.


Refactor cupy.poly1d tests

Jenkins, test this please.

Jenkins CI test (for commit 2c38b217d56c1c02a15715832a24f24839177973, target branch master) failed with status FAILURE.

Jenkins, test this please.

Jenkins CI test (for commit 2c38b217d56c1c02a15715832a24f24839177973, target branch master) failed with status FAILURE.

pfnCI, test this please.

Jenkins CI test (for commit 2c38b217d56c1c02a15715832a24f24839177973, target branch master) succeeded!

LGTM.


Notifications: add i18n

Currently, the notification strings are mostly not localized because they include dynamic data like hyperchat amounts.
Just realized that the dynamic data is passed to the app, so we could reconstruct a i18n-capable string from our side.

closing in favor of https://github.com/lbryio/internal-apis/issues/1186


Updating gitignore.

Pull Request Description
What issue does this change request address?
#1806
What are the significant changes in functionality due to this change request?
Adds a missing gitignore.

For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.

[x] 1. Review all computer code.
[x] 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual and xsd schema. If the input syntax change deprecates existing input files, a conversion script needs to be added (see Conversion Scripts).
[x] 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
[x] 4. Automated Tests should pass, including run_tests, pylint, manual building and xsd tests. If there are changes to Simulation.py or JobHandler.py the qsub tests must pass.
[x] 5. If significant functionality is added, there must  be tests added to check this. Tests should cover all possible options.  Multiple short tests are preferred over one large test. If new development on the internal JobHandler parallel system is performed, a cluster test must be added setting, in  XML block, the node <internalParallel> to True.
[x] 6. If the change modifies or adds a requirement or a requirement based test case, the Change Control Board's Chair or designee also needs to approve the change.  The requirements and the requirements test shall be in sync.
[x] 7. The merge request must reference an issue.  If the issue is closed, the issue close checklist shall be done.
[x] 8. If an analytic test is changed/added is the the analytic documentation updated/added?
[x] 9. If any test used as a basis for documentation examples (currently found in raven/tests/framework/user_guide and raven/docs/workshop) have been changed, the associated documentation must be reviewed and assured the text matches the example.

Job Test Fedora 32 on 158c792 : invalidated by @joshua-cogliati-inl
FAILED: Diff tests/framework/PostProcessors/EconomicRatio/timeDepDataset

checklist is satisfied, PR can be merged.


Ensure MVP functionality for client deployment of managed prometheus

Overview
We need to ensure a basic set of MVP functionality for client deployments within enteprises
Acceptance Criteria

documentation is updated where applicable
prometheus is deployable with SAML
feature flags are available
prometheus is connected via private network (tailscale or other vpn solutions)

### Tasks
- [x] Authentication is properly managed
- [x] AMP is private and connect to grafana
- [x] Documentation in read me is updated
- [x] Documentation is projecto11y repo is updated
- [x] AMP is connected and able to scrape from OTEL in K8S

@anthonygauthier I believe this is done. We've got AMP working both internally & on client sites. Though it is using REMOTE WRITE per AWS recommendation.


ffmpeg preset and crf as an dropdown in settings

Describe the solution you'd like
Add a preset and crf dropdown to the video transcoding setting.
I'm not talking about the node-fluent-ffmpeg presets, but ffmpeg's presets https://trac.ffmpeg.org/wiki/Encode/H.264#a2.Chooseapresetandtune
Since I didn't see an option for that in node-fluent-ffmpeg, a .addOption(['-crf 20', '--preset ultrafast']); should do.
This should help speed up some transcodes at the cost of quality if the user so desires and transcoded quality can be more or less be decided by them.

should be added in the latest commit

Thx


Add support for proper (de)serialization of Uri

At the moment Jil doesn't have any special knowledge about the Uri class, so it tries to (de)serialize it as a typical class, which leads to all its properties being serialized separately and to deserialization failing due to the lack of public parameterless constructor.
It would be incredibly useful to just serialize Uri instance as Uri.AbsoluteUri string and to be able to deserialize it back.

Duplicate request
I'm remain disinclined to add Uri support, it's more complicated than it seems.


Can I add new vehicle models to the visualization web page?

Hi, guys, I am working with SMARTS and studying in RL. I want to add some new vehicle models to the visualization page. I have a ".glb" format file. However , when I add it to the project, it didn't move on the page. So, are there any directions for me to add new vehicle models?

Hello @Sud0x67, thank you for asking the question. I do not think I fully I understand your intention here:
Are you trying to replace currently existing models with new models or create entirely new vehicle models?

Dear @Gamenot, thanks for your reply. I repaced the "muscle_car.glb" by my own vehicle model and named my model with the same name initially, but my model doesn't move on the scene.  Then I used another model with a component using id "body". it seems to work now. I guess that the first model I added is too complex so that "babylonjs" hasn't loaded it correctly.


2.26 Survival - Blackrock Prison Infirmary Geometry offset from proper location

When entering the Blackrock Prison, the geometry for the infirmary is offset from where it should be.
When entering from the front gate, it appeared in the middle of the parking lot.
Removing the mod fixed it.
Re-adding the mod caused it to break again, though in a slightly different location.  Re-add save was made sleeping in the truck right before the workshop.
Screenshot of re-add break:
https://steamcommunity.com/sharedfiles/filedetails/?id=3144531446

I have Tales from the Darkside installed as well.

Have the same issue.


:arrow_up: bump trivy action

bump trivy to 0.37.2

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Could we also create a new release? 🤔

Done
https://github.com/aquasecurity/trivy-action/releases/tag/0.9.1


Adds my_static_costs overrides for QubitCount cost for bloqs which don't support symbolic decomposition

This is necessary for supporting symbolic analysis of qubit counts. An example in this direction is https://github.com/quantumlib/Qualtran/pull/1414

And a helper function to compare the qubit count expressions to manually-counted qubits from the decomposed bloq (for cases where the decomposition is indeed possible)


x86: revert removing soc.h from atom soc

This was part of the mega hwmv2 commit. Looks like hpet drivers heavily
relies on soc.h. Reverting this for now while we look for a proper fix
and remove reliance on soc.h for drivers.
Signed-off-by: Anas Nashif<EMAIL_ADDRESS>

Guys, I am reverting a commit with this, I do not want to go through partial fixes, will come back to this and give it another go, but this is blocking and breaking few platforms and I do not want to be selective in the revert. The commit in question:
ffd1c15 (#69039)

I'm working on #78670 and trying to incorporate test into samples/subsys/shell/shell_module and found that this doesn't build on the qemu_riscv64, is there an issue tracking this?


Item Id parsing bug fix

This pull request was only for the last commit and it's been included in #35 for a clean history.


Region not read correctly from .aws/config file (NullPointer Exception)

region:eu-west-1 is read as -west-1 in AwsConfig.java
There is a wrong offset of 9 characters for reading the region info. Should be 7.
This caused a NullPointer Exception being thrown when creating APIs

Which version of the AWS CLI are you using? Can you show me the contents of ~/.aws/config

Confirm the issue. mpuittinen's fix helps.


How to return image to its original position?

Can you please explain to me how to return the image to its original position after a drop? My image is inside a PopOver, and I use it for an insert. So this is what happens to me after the insert, like it is shown in the picture:

Can anybody has any solution for this? This is my code:
import React, {PropTypes} from 'react';
import ReactDOM from 'react-dom';
import Draggable from 'react-draggable';

const PopOverForInsertingPL = ({portlet, onInsert}) =>{
	return (
		<Draggable onStop={() => onInsert(portlet)} grid={[25, 25]}>

 {portlet.name}

		</Draggable>
	);
};

So the solution was to setState({open: false}) to a PopOver menu, so once the PopOver menu is closed, the image is returned to it's original position.


[HW] workshop-spring-stargate

Name: Bartek Kmiec
Email<EMAIL_ADDRESS>Linkedin Profile: www.linkedin.com/in/bartosz-kmiec
Attach the homework step I screenshots below:

Attach the homework step II screenshots below:

Perfect great job !

Hey Bartek Kmiec, great job! Congrats! Here is your badge! https://api.badgr.io/public/assertions/sBrB39qSQGGrYN5TtkC0Aw


error in the chrome extension

Have you read Troubleshooting.md? If No, please do so before filing an issue.
Yes
Have you tried Googling about it?
Yes
Which python version are you using to run the project? In the terminal, type which <python-path-you-have-in-clientServer.php> and enter the output here
$decision=exec("C:/Python27 test.py $site 2>&1 ");
Python version - python 2.7.13
Describe the question
error 1
"Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience" is the error shown in the chrome extension settings

the below mentioned is the line from the extension/popup.js which is at number 14
xhr.open("POST","http://localhost/Malicious-Web-Content-Detection-Using-Machine-Learning/clientServer.php",false);
error 2
in the extension itself below safe or not it shows error as follows
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">   <title>Object not found!</title> <link rev="made" href="mailto:postmaster@localhost" />
Object not found!

 The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

 If you think this is a server error, please contact the webmaster.

Error 404
 <address> localhost
 Apache/2.4.34 (Win32) OpenSSL/1.0.2o PHP/5.6.38 </address>

Additional context
Thank you for the amazing work sir ! please help me to solve this problem.

Hi Bhavya,
Did you try looking for this issue in the previously filed issues?
Did you try doing a web search on the same?
I would really appreciate if you would post your answers about the above searches.

hello sir!
xhr.open("POST","http://localhost/Malicious-Web-Content-Detection-Using-Machine-Learning/clientServer.php",false);
i changed the above coed to :
xhr.open("POST","http://localhost/Malicious-Web-Content-Detection-Using-Machine-Learning/clientServer.php",true);
but now the issue is,

that safe or not is just giving this dialog box / it is not taking the input
it dosent shows any error so id ont whats wrong with it !
THANK YOU SO MUCH FOR YOUR REPLY SIR!

@philomathic-guy  please sir if u can give advice to solve the above issues it would be great ! thankyou