microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.43k stars 29.34k forks source link

Pylance Error #125368

Closed lg93lggt closed 3 years ago

lg93lggt commented 3 years ago

Issue Type: Bug

[Info - 下午3:20:21] Pylance language server 2021.6.0 (pyright 209c8040) starting [Info - 下午3:20:21] Server root directory: /home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist [Error - 下午3:20:21] Exception received when installing recursive 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 [Error - 下午3:20:21] Exception received when installing recursive 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 [Error - 下午3:20:21] Exception received when installing recursive 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 [Error - 下午3:20:21] Exception received when installing recursive 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 [Error - 下午3:20:21] Exception received when installing recursive 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 [Error - 下午3:20:21] Exception received when installing recursive 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 Libzip Error: Not a zip archive at makeLibzipError (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/node_modules/@yarnpkg/fslib/lib/ZipFS.js:149:29) at new m (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/node_modules/@yarnpkg/fslib/lib/ZipFS.js:121:28) at getZipSync (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/node_modules/@yarnpkg/fslib/lib/ZipOpenFS.js:784:28) at g.makeCallSync (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/node_modules/@yarnpkg/fslib/lib/ZipOpenFS.js:665:21) at g.existsSync (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/node_modules/@yarnpkg/fslib/lib/ZipOpenFS.js:232:21) at c.existsSync (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/node_modules/@yarnpkg/fslib/lib/ProxiedFS.js:71:28) at r.existsSync (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/node_modules/@yarnpkg/fslib/lib/ProxiedFS.js:71:28) at T.existsSync (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/src/common/fileSystem.ts:213:23) at t.PyrightFileSystem.existsSync (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/src/pyrightFileSystem.ts:63:29) at /home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/src/analyzer/service.ts:1027:53 [Info - 下午3:23:43] Connection to server got closed. Server will restart. [Error - 下午3:23:43] Request textDocument/semanticTokens/full failed. Error: Connection got disposed. at Object.dispose (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:59:68124) at Object.dispose (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:177951) at E.handleConnectionClosed (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:178163) at E.handleConnectionClosed (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:59:21817) at t (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:176256) at invoke (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:322271) at o.fire (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:323032) at X (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:59:57486) at invoke (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:322271) at o.fire (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:323032) at d.fireClose (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:59:47555) at ChildProcess. (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:318001) 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) [Info - 下午3:23:43] Pylance language server 2021.6.0 (pyright 209c8040) starting [Info - 下午3:23:43] Server root directory: /home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist [Error - 下午3:23:44] Exception received when installing recursive 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 [Error - 下午3:23:44] Exception received when installing recursive 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 [Error - 下午3:23:44] Exception received when installing recursive 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 [Error - 下午3:23:44] Exception received when installing recursive 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 [Error - 下午3:23:44] Exception received when installing recursive 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 [Error - 下午3:23:44] Exception received when installing recursive 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 Libzip Error: Not a zip archive at makeLibzipError (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/node_modules/@yarnpkg/fslib/lib/ZipFS.js:149:29) at new m (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/node_modules/@yarnpkg/fslib/lib/ZipFS.js:121:28) at getZipSync (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/node_modules/@yarnpkg/fslib/lib/ZipOpenFS.js:784:28) at g.makeCallSync (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/node_modules/@yarnpkg/fslib/lib/ZipOpenFS.js:665:21) at g.existsSync (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/node_modules/@yarnpkg/fslib/lib/ZipOpenFS.js:232:21) at c.existsSync (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/node_modules/@yarnpkg/fslib/lib/ProxiedFS.js:71:28) at r.existsSync (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/node_modules/@yarnpkg/fslib/lib/ProxiedFS.js:71:28) at T.existsSync (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/src/common/fileSystem.ts:213:23) at t.PyrightFileSystem.existsSync (/home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/src/pyrightFileSystem.ts:63:29) at /home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist/pyright-internal/src/analyzer/service.ts:1027:53 [Info - 下午3:25:13] Connection to server got closed. Server will restart. [Error - 下午3:25:13] Request textDocument/semanticTokens/full failed. Error: Connection got disposed. at Object.dispose (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:59:68124) at Object.dispose (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:177951) at E.handleConnectionClosed (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:178163) at E.handleConnectionClosed (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:59:21817) at t (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:176256) at invoke (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:322271) at o.fire (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:323032) at X (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:59:57486) at invoke (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:322271) at o.fire (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:323032) at d.fireClose (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:59:47555) at ChildProcess. (/home/veily3/.vscode/extensions/ms-python.python-2021.6.897246044-dev/out/client/extension.js:9:318001) 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) [Info - 下午3:25:14] Pylance language server 2021.6.0 (pyright 209c8040) starting [Info - 下午3:25:14] Server root directory: /home/veily3/.vscode/extensions/ms-python.vscode-pylance-2021.6.0/dist [Error - 下午3:25:14] Exception received when installing recursive 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 [Error - 下午3:25:14] Exception received when installing recursive 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 [Error - 下午3:25:14] Exception received when installing recursive 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 [Error - 下午3:25:14] Exception received when installing recursive 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 [Error - 下午3:25:14] Exception received when installing recursive 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 [Error - 下午3:25:14] Exception received when installing recursive 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

VS Code version: Code 1.56.2 (054a9295330880ed74ceaedda236253b4f39a335, 2021-05-12T16:45:26.313Z) OS version: Linux x64 5.4.0-71-generic

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 5 2600X Six-Core Processor (12 x 2083)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|1, 1, 0| |Memory (System)|15.63GB (3.14GB free)| |Process Argv|--no-sandbox --unity-launch --crash-reporter-id f3a2fa84-eeb0-4026-8fe4-6a4badf9b815| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|x11|
Extensions (56) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|2.1.0 matlab-formatter|Aff|2.8.7 matlab-interactive-terminal|apo|0.3.4 code-gnu-global|aus|0.2.2 matlab-extension-pack|bat|0.1.0 blender-python-code-templates|ble|0.9.6 matlab-code-run|bra|1.0.2 bracket-pair-colorizer|Coe|1.0.61 doxdocgen|csc|1.3.2 docs-markdown|doc|0.2.94 simply-view-image-for-python-debugging|ela|0.1.0 matlab|Gim|2.0.1 vscode-pull-request-github|Git|0.26.0 gc-excelviewer|Gra|3.0.42 beautify|Hoo|1.5.0 comment-translate|int|1.4.2 path-autocomplete|ion|1.17.1 latex-workshop|Jam|8.18.0 better-cpp-syntax|jef|1.15.5 simply-view-image-for-python-opencv-debugging|joh|0.0.8 vsc-python-indent|Kev|1.14.2 vscode-gutter-preview|kis|0.27.1 kite|kit|0.146.0 vscode-cudacpp|kri|0.1.1 MagicPython|mag|1.1.0 theme-monokai-pro-vscode|mon|1.1.19 vscode-docker|ms-|1.13.0 vscode-language-pack-zh-hans|MS-|1.56.2 anaconda-extension-pack|ms-|1.0.1 python|ms-|2021.6.897246044-dev vscode-pylance|ms-|2021.6.0 jupyter|ms-|2021.6.832593372 remote-containers|ms-|0.177.2 remote-ssh|ms-|0.65.4 remote-ssh-edit|ms-|0.65.6 remote-wsl|ms-|0.56.4 cmake-tools|ms-|1.7.3 cpptools|ms-|1.4.0 cpptools-extension-pack|ms-|1.0.0 vsliveshare|ms-|1.0.4360 vsliveshare-audio|ms-|0.1.91 vscode-sanddance|msr|3.2.0 autodocstring|njp|0.5.4 vscode-python-typehint|njq|1.4.1 material-icon-theme|PKi|4.7.0 vscode-commons|red|0.0.6 vscode-yaml|red|0.19.2 matlab-complete|Sla|1.1.1 vscode-3dviewer|sle|0.2.2 cmake|twx|0.0.17 codelf|unb|11.7.0 vscodeintellicode|Vis|1.2.14 vscode-icons|vsc|11.4.0 better-align|wwm|1.1.6 pyqt-integration|zho|0.2.0 material-theme|zhu|3.10.14 (7 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 pythonvspyt602:30300191 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyt639:30300192 pythontb:30283811 pythonvspyt551cf:30311713 vspre833:30267464 pythonptprofiler:30281270 vshan820:30294714 pythondataviewer:30285071 vscus158:30286553 vscgsv2:30307504 vscorehov:30309549 bridgeflightcf:30302070 vscod805:30301674 ```
rebornix commented 3 years ago

/extPython