microsoft / vscode

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

TS Server fatal error: Debug Failure. False expression: w:/PROJET CLIENTS/upstart/node_modules/react-router-hash-link/dist/react-router-hash-link.cjs.js linked to nonexistent file //NASJohanny/Home/PROJET CLIENTS/upstart/node_modules/react-router-hash-link/dist/react-router-hash-link.cjs.js #182852

Closed gav974 closed 1 year ago

gav974 commented 1 year ago

Type: Bug

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

TypeScript Version: 5.0.4

Steps to reproduce crash

1. 2. 3.

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: syntax

Error: Debug Failure. False expression: w:/PROJET CLIENTS/upstart/node_modules/react-router-hash-link/dist/react-router-hash-link.cjs.js linked to nonexistent file //NASJohanny/Home/PROJET CLIENTS/upstart/node_modules/react-router-hash-link/dist/react-router-hash-link.cjs.js
    at realPath (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:42011:9)
    at getOriginalAndResolvedFileName (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:40972:28)
    at createResolvedModuleWithFailedLookupLocationsHandlingSymlink (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:40797:48)
    at nodeModuleNameResolverWorker (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:41943:10)
    at nodeModuleNameResolver (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:41878:10)
    at resolveModuleName (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:41628:18)
    at resolveModuleName2 (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:122831:27)
    at Object.resolve (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:122858:47)
    at resolveNamesWithLocalCache (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:122896:29)
    at Object.resolveModuleNameLiterals (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:122981:12)
    at InferredProject2.resolveModuleNameLiterals (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:171594:33)
    at resolveModuleNamesWorker (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:118147:20)
    at resolveModuleNamesReusingOldState (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:118243:14)
    at processImportedModules (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:119779:27)
    at findSourceFileWorker (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:119541:7)
    at findSourceFile (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:119406:20)
    at d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:119355:22
    at getSourceFileFromReferenceWorker (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:119324:26)
    at processSourceFile (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:119353:5)
    at processRootFile (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:119149:5)
    at d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:117934:41
    at forEach (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:2308:22)
    at createProgram (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:117934:5)
    at synchronizeHostData (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:135422:15)
    at Object.getProgram (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:135494:5)
    at InferredProject2.updateGraphWorker (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:172176:41)
    at InferredProject2.updateGraph (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:172113:32)
    at _ProjectService.assignOrphanScriptInfoToInferredProject (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:174423:13)
    at _ProjectService.assignProjectToOpenedScriptInfo (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:176043:12)
    at d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:176273:64
    at flatMap (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:2556:17)
    at _ProjectService.applyChangesInOpenFiles (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:176273:24)
    at updateOpen (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:177418:29)
    at d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:179985:69
    at IpcIOSession.executeWithRequestId (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:179977:14)
    at IpcIOSession.executeCommand (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:179985:29)
    at IpcIOSession.onMessage (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:180027:51)
    at process.<anonymous> (d:\Users\ECLAP\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:181594:14)
    at process.emit (node:events:513:28)
    at emit (node:internal/child_process:958:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

VS Code version: Code 1.78.2 (b3e4e68a0bc097f0ae7907b217c1119af9e03435, 2023-05-10T14:39:26.248Z) OS version: Windows_NT x64 10.0.22621 Modes: Sandboxed: Yes

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz (6 x 2904)| |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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|23.88GB (14.26GB free)| |Process Argv|--crash-reporter-id 8d7e5d31-c0ec-47ed-9c2b-0bf0274aba25| |Screen Reader|no| |VM|0%|
Extensions (87) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 bootstrap5-vscode|Anb|0.4.2 bootstrap-5-snippets|bab|0.1.1 vscode-twig-pack|baj|1.1.0 vscode-django|bat|1.10.0 vscode-intelephense-client|bme|1.9.5 phpserver|bra|3.0.2 npm-intellisense|chr|1.4.4 dart-code|Dar|3.64.0 flutter|Dar|3.64.0 jquerysnippets|don|0.0.1 python-environment-manager|don|1.0.4 python-extension-pack|don|1.7.0 dart-data-class-generator|dot|0.5.3 antidote|dru|1.0.21 es7-react-js-snippets|dsz|4.4.3 sf-pack|dub|1.1.0 vscode-babel-coloring|dza|0.0.4 bracket-pair-toggler|dzh|0.0.3 gitlens|eam|13.6.0 vscode-html-css|ecm|1.13.1 vsc-material-theme|Equ|33.8.0 vsc-material-theme-icons|equ|2.7.5 prettier-vscode|esb|9.12.0 vscode-firefox-debug|fir|2.9.8 auto-rename-tag|for|0.1.10 codespaces|Git|1.14.7 live-sass|gle|6.0.5 mayukaithemevsc|Gul|3.2.4 bootstrap5-snippets|Han|1.2.5 react-bootstrap4|Him|1.1.0 better-cpp-syntax|jef|1.17.2 cmake-language-support-vscode|jos|0.0.9 intellij-idea-keybindings|k--|1.5.9 vsc-python-indent|Kev|1.18.0 twig-language-2|mbl|0.9.2 php-namespace-resolver|Meh|1.1.9 fluent-icons|mig|0.0.18 dotenv|mik|1.0.1 vscode-language-pack-fr|MS-|1.78.2023051009 csharp|ms-|1.25.7 vscode-dotnet-runtime|ms-|1.6.0 isort|ms-|2022.8.0 python|ms-|2023.8.0 vscode-pylance|ms-|2023.5.30 jupyter|ms-|2023.4.1011241018 jupyter-keymap|ms-|1.1.0 jupyter-renderers|ms-|1.0.15 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.292.0 cmake-tools|ms-|1.14.31 cpptools|ms-|1.15.4 cpptools-extension-pack|ms-|1.3.0 vscode-react-native|msj|1.11.0 symfony-code-snippets|nad|2.1.1 symfony-super-console|nad|1.1.1 twig-code-snippets|nad|2.0.0 autodocstring|njp|0.6.1 indent-rainbow|ode|8.3.1 emoji|Per|1.0.1 ngrok-for-vscode|phi|1.10.1 vscode-php-getters-setters|php|1.2.3 java|red|1.18.0 vscode-yaml|red|1.12.2 phpdoc-comment-vscode-plugin|rex|1.3.0 LiveServer|rit|5.7.9 sass-indented|syl|1.8.26 symfony-vscode|The|1.0.2 emoji|tom|0.2.2 cmake|twx|0.0.17 errorlens|use|3.11.0 highlight-matching-tag|vin|0.11.0 vscode-gradle|vsc|3.12.7 vscode-java-debug|vsc|0.50.0 vscode-java-dependency|vsc|0.22.0 vscode-java-pack|vsc|0.25.11 vscode-java-test|vsc|0.38.2 vscode-maven|vsc|0.41.0 vscode-icons|vsc|12.4.0 snippet|vsc|0.9.2 twig|wha|1.0.2 jinja|who|0.0.8 wordpress-toolbox|wor|1.3.15 JavaScriptSnippets|xab|1.8.0 php-debug|xde|1.32.1 material-theme|zhu|3.15.13 (8 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscorecescf:30445987 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 vsccc:30610678 3biah626:30602489 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 a9j8j154:30646983 showlangstatbar:30737416 vsctsb:30705553 azdwalk:30721579 pythonms35:30701012 pythonfmttext:30731395 pythoncmv:30739700 fixshowwlkth:30730052 hidesbindicator:30730055 pythongtdpath:30739704 ```
gjsjohnmurray commented 1 year ago

/duplicate of https://github.com/microsoft/vscode/issues/182196

VSCodeTriageBot commented 1 year ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

gav974 commented 1 year ago

thanks