microsoft / vscode

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

TS Server fatal error: The "interval" argument must be of type number. Received undefined #161202

Closed parleysport closed 2 years ago

parleysport commented 2 years ago

Type: Bug

❗️❗️❗️ Please fill in the sections below to help us diagnose the issue ❗️❗️❗️

TypeScript Version: 4.9.0-dev.20220917

Steps to reproduce crash 1. 2. 3.

Global TS Server Plugins

TS Server Log ❗️ Server logging disabled. To help us fix crashes like this, please enable logging by setting:

"typescript.tsserver.log": "verbose"

After enabling this setting, future crash reports will include the server log.

TS Server Error Stack Server: semantic

TypeError [ERR_INVALID_ARG_TYPE]: The "interval" argument must be of type number. Received undefined
    at StatWatcher.<computed> (node:internal/fs/watchers:116:3)
    at Object.watchFile (node:fs:2316:39)
    at fsWatchFileWorker (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:7310:21)
    at c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:6885:133
    at createSingleWatcherPerName (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:6435:26)
    at pollingWatchFile (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:6885:20)
    at watchFile (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:6766:28)
    at watchMissingFileSystemEntry (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:6994:24)
    at fsWatchHandlingExistenceOnHost (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:6899:17)
    at c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:6888:168
    at createSingleWatcherPerName (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:6435:26)
    at fsWatch (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:6888:20)
    at Object.watchFile (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:6772:28)
    at Object.watchFile (c:\Users\caro\.vscode\extensions\znck.vue-language-features-0.10.4\node_modules\@vuedx\typescript-plugin-vue\lib\standalone.js:687:13099)
    at watchFile (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:117969:90)
    at Object.watchFile (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:117995:34)
    at c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:176018:44
    at ProjectService.forEachConfigFileLocation (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:176068:38)
    at ProjectService.startWatchingConfigFilesForInferredProjectRoot (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:176007:22)
    at InferredProject.addRoot (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:174202:37)
    at ProjectService.assignOrphanScriptInfoToInferredProject (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:175748:25)
    at ProjectService.assignProjectToOpenedScriptInfo (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:177446:26)
    at c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:177720:97
    at Object.flatMap (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:524:25)
    at ProjectService.applyChangesInOpenFiles (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:177720:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:179093:46)
    at c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:181285:96
    at Session.executeWithRequestId (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:181276:28)
    at Session.executeCommand (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:181285:41)
    at Session.onMessage (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:181313:35)
    at process.<anonymous> (c:\Users\caro\.vscode\extensions\ms-vscode.vscode-typescript-next-4.9.20220917\node_modules\typescript\lib\tsserver.js:185465:31)
    at process.emit (node:events:526:28)
    at emit (node:internal/child_process:938:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

VS Code version: Code 1.71.0 (784b0177c56c607789f9638da7b6bf3230d47a8c, 2022-09-01T07:36:10.600Z) OS version: Windows_NT x64 10.0.18363 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz (4 x 2400)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|7.48GB (1.26GB free)| |Process Argv|--folder-uri file:///c%3A/Users/caro/Documents/My%20Web%20Sites/SERVICIOSTRIPLE7 --crash-reporter-id a2aed6bf-9184-4b9e-87f8-2cda323b3d47| |Screen Reader|no| |VM|0%|
Extensions (182) Extension|Author (truncated)|Version ---|---|--- rainbow-brackets|2gu|0.0.6 better-comments|aar|3.0.2 vscode-tomcat|ada|0.12.1 extendscript-debug|Ado|2.0.3 xd|ado|1.2.3 django-register-tags|agu|0.0.5 vscode-javascript-snippet-pack|aka|0.1.6 nuxt-vscode-extension|all|0.0.21 arepl|alm|2.0.3 browse-lite|ant|0.3.0 vite|ant|0.2.5 material-ui|Aru|1.0.0 copy-django-model-fields|bat|0.0.5 env-vscode|Ber|0.1.1 django-html|bib|1.3.0 color-info|bie|0.7.0 tailwindshades|bou|0.0.5 vscode-as3mxml|bow|1.13.0 vscode-nextgenas|bow|2.0.0 vscode-swf-debug|bow|1.6.0 vscode-tailwindcss|bra|0.8.7 better-toml|bun|0.3.2 simple-react-snippets|bur|1.2.7 prettier-vscode-semistandard|bys|0.22.1 prettier-vscode-standard|bys|0.22.1 hycon-assembly|chi|0.2.0 js-snippets|chr|1.1.0 npm-intellisense|chr|1.4.2 path-intellisense|chr|2.8.1 cssrem|cip|3.0.2 icomoon-viewer|CKG|0.6.2 doxdocgen|csc|1.4.0 vue-peek|dar|1.0.2 dart-code|Dar|3.48.3 flutter|Dar|3.48.0 vscode-markdownlint|Dav|0.48.1 vuebindthis|Den|0.1.1 vscode-django-snippets|dev|1.0.0 python-preview|don|0.0.4 javadebugger|don|0.1.5 java-debug|DSn|0.0.2 es7-react-js-snippets|dsz|4.4.3 vscode-babel-coloring|dza|0.0.4 gitlens|eam|12.2.2 vscode-html-css|ecm|1.13.1 vscode-npm-script|eg2|0.3.28 vsc-material-theme|Equ|33.5.0 vsc-material-theme-icons|equ|2.4.0 prettier-vscode|esb|9.8.0 vue-inline-template|fai|1.0.1 vscode-firefox-debug|fir|2.9.8 vscode-npm|fkn|3.3.0 auto-close-tag|for|0.5.14 auto-complete-tag|for|0.1.0 auto-rename-tag|for|0.1.10 code-runner|for|0.11.8 openssl-configuration-file|gee|0.0.1 vscode-javac|geo|0.2.42 copilot|Git|1.45.6792 sass-lint|gle|1.0.7 go|gol|0.35.2 vscode-graphql|Gra|0.7.5 vscode-graphql-syntax|Gra|1.0.4 img-contextual|gre|0.2.7 vscode-test-explorer|hbe|2.21.1 hellocode|hel|0.7.0 hetuscript|het|0.0.14 headwind|hey|1.7.0 rst-viewr|hkm|0.0.5 honey|hon|0.0.3 snooty|i80|0.2.1 vscode-react-typescript|inf|1.3.1 vscode-env|Iro|0.1.0 search-node-modules|jas|1.3.0 better-cpp-syntax|jef|1.15.19 pwa-tools|joh|0.1.0 vscode-peacock|joh|4.2.1 solidity|Jua|0.0.139 vue-pug-snippets|kaa|0.5.0 kite|kit|0.147.0 restructuredtext|lex|189.2.0 vscode-astools|lon|0.0.7 vue-discovery|maa|1.4.0 tailwind-sass-syntax|mac|1.3.0 MagicPython|mag|1.1.0 vscode-django-boilerplate|Men|1.6.0 copilot-vscode|Met|1.3.0 python-path|mge|0.0.14 vscode-language-babel|mgm|0.0.36 git-graph|mhu|1.30.0 dotenv|mik|1.0.1 vuex-suggest|mis|1.1.1 vscode-csscomb|mrm|5.3.2 csharp|ms-|1.25.0 vscode-kubernetes-tools|ms-|1.3.10 python|ms-|2022.14.0 jupyter|ms-|2022.8.1002431955 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.9 remote-containers|ms-|0.251.0 cmake-tools|ms-|1.12.27 cpptools|ms-|1.12.4 cpptools-extension-pack|ms-|1.3.0 powershell|ms-|2022.8.5 test-adapter-converter|ms-|0.1.6 vscode-typescript-next|ms-|4.9.20220917 debugger-for-edge|msj|1.0.15 vscode-ts-react-redux-mui-snippets|mur|1.0.2 preview-vscode|myh|1.3.0 flex-and-actionscript-extension-pack|nem|0.0.1 vscode-as-fx-ide|nem|0.3.1 vscode-flex-snippets|nem|0.0.5 env-cmd-file-syntax|Nix|0.3.0 autodocstring|njp|0.6.1 prettier-standard-vscode|num|0.9.2 material-ui-doc-example-snippets|nvm|0.0.1 vetur|oct|0.36.0 webapplicationservices-language-server|Opa|6.14.1 mui-snippets|ouw|1.1.1 django-test-runner|Pac|3.0.4 prettier-vscode-with-tabs|pas|1.1.0 djinni-syntax-highlighting|pat|1.0.3 material-icon-theme|PKi|4.20.0 nuxt-snippets|pra|1.2.0 flasho|pxg|1.0.1 django-test-path|qeu|0.3.0 vscode-commons|red|0.0.6 vscode-xml|red|0.21.2022062916 vscode-yaml|red|1.10.1 adobe-script-runner|ren|0.6.0 live-sass|rit|3.0.0 LiveServer|rit|5.7.9 es7-react-js-snippets|rod|1.9.3 rust|rus|0.7.8 vscode-idiomatic-css-comments|rya|0.1.2 vscode-sass-format|sas|1.1.7 vue-vscode-snippets|sdr|3.1.1 vscode-qt-for-python|sea|3.0.1 preview-vscode|sea|2.2.5 coredx-vue|sel|0.1.1 trailing-spaces|sha|0.4.1 django-snippets|Sid|0.0.4 skaffolder-generator|Ska|0.1.16 js-jsx-snippets|sky|11.0.0 bunker|sld|1.1.6 webdocumentations|sli|0.0.1 vtpw|sno|0.1.2 example|sor|0.0.1 autocomplete-c-cpp-files|Ste|1.0.2 vscode-stylelint|sty|1.2.3 svelte-vscode|sve|106.1.0 vscode-material-ui-snippets|Swo|1.0.1 sass-indented|syl|1.8.22 tabnine-vscode|Tab|3.6.15 hex-to-tailwind|Ted|1.1.0 python|tht|0.2.3 vue-docs|tit|1.0.2 simple-rst|tro|1.5.2 vscode-switch-wordwrap|Tsu|0.0.3 python-extended-snippets|tus|0.0.1 cmake|twx|0.0.17 vscode-java-debug|vsc|0.44.0 vscode-java-dependency|vsc|0.21.0 vscode-maven|vsc|0.38.0 material-ui-codemorphs|vsc|1.5.0 material-ui-snippets|vsc|3.3.8 haxe-debug|vsh|1.2.3 quokka-vscode|Wal|1.0.502 wallaby-vscode|Wal|1.0.347 nuxt-typescript-snippets|wil|0.1.3 es7-react-js-snippets|woo|2.3.8 eno|Wsc|2.3.53 omi-snippets|Wsc|2.2.8 qf|Wsc|6.8.122 JavaScriptSnippets|xab|1.8.0 ReactSnippets|xab|2.4.0 ActionScript3|yop|0.0.1 adobe-extension-devtools|YuT|0.2.4 preview|znc|0.4.1 vue|znc|0.10.4 vue-language-features|znc|0.10.4 ae-jsx-runner|zpf|0.1.0 (10 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263cf:30335440 vscorecescf:30445987 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411cf:30557515 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdc:30486549 c4g48928:30535728 hb751961:30553087 dsvsc012:30540252 azure-dev_surveyone:30548225 i497e931:30553904 fc301958:30567733 ```
vscodenpa commented 2 years ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.71.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

mjbvz commented 2 years ago

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

You have a number of TS server plugins enabled which could cause this

vscodenpa commented 2 years ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!