Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS Server fatal error: Debug Failure. False expression: Script kind should match provided ScriptKind:1 and sourceFile.scriptKind: 3, !entry: false #223270

Closed
shaoweb opened this issue Jul 23, 2024 · 2 comments
Assignees

Comments

@shaoweb
Copy link

shaoweb commented Jul 23, 2024

Type: Bug

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

TypeScript Version: 5.4.5

Steps to reproduce crash

Global TypeScript Server Plugins

❗️ Please test with extensions disabled. Extensions are the root cause of most TypeScript server crashes

  • typescript-vue-plugin-bundle contributed by the Vue.volar extension

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.

VS Code version: Code - Insiders 1.90.0-insider (Universal) (ccba2fc, 2024-05-06T08:08:04.226Z)
OS version: Darwin arm64 23.5.0
Modes:

System Info
Item Value
CPUs Apple M1 (8 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 2, 3, 3
Memory (System) 16.00GB (0.09GB free)
Process Argv --crash-reporter-id bfe3e451-e28e-4daf-b34d-1befa117b4f4
Screen Reader no
VM 0%
Extensions (26)
Extension Author (truncated) Version
aessoft-class-autocomplete AES 0.1.0
tongyi-lingma Ali 1.3.5
simple-react-snippets bur 1.2.8
npm-intellisense chr 1.4.5
path-intellisense chr 2.9.0
vscode-markdownlint Dav 0.55.0
vscode-eslint dba 3.0.10
gitlens eam 15.2.0
vscode-html-css ecm 2.0.10
vsc-material-theme Equ 34.4.0
vsc-material-theme-icons equ 3.6.1
prettier-vscode esb 10.4.0
auto-close-tag for 0.5.15
vue-snippets hol 1.0.4
svn-scm joh 2.17.0
start-git-bash McC 1.2.1
vscode-filesize mkx 3.1.0
vscode-language-pack-zh-hans MS- 1.90.2024061209
color-highlight nau 2.8.0
vetur oct 0.37.3
material-icon-theme PKi 5.7.0
vue-vscode-snippets sdr 3.1.1
markdown-preview-enhanced shd 0.8.13
vscode-icons vsc 12.8.0
volar Vue 2.0.28
JavaScriptSnippets xab 1.8.0
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256197
vstes627:30244334
vscod805cf:30301675
vsaa593:30376534
py29gd2263:31024238
c4g48928:30535728
vscrpc:30624061
a9j8j154:30646983
962ge761:30841072
pythongtdpath:30726887
pythonnoceb:30776497
asynctok:30898717
dsvsc013:30777762
dsvsc014:30777825
dsvsc015:30821418
pythonregdiag2:30926734
pythonmypyd1:30859725
h48ei257:31000450
pythontbext0:30879054
dsvsc016:30879898
dsvsc017:30880771
dsvsc018:30880772
cppperfnew:30980852
pythonait:30973460
01bff139:31013167
a69g1124:31018687
dvdeprecation:31040973
dwnewjupytercf:31046870
impr_priority:31057980
nativerepl1:31093711
refactort:31084545
pythonrstrctxt:31093868
0c838689:31088353
hdi1a554:31091669
flighttreat:31100343

@johnsoncodehk
Copy link
Contributor

This is fixed by microsoft/TypeScript#57641, you need to update TS to 5.5 or later.

@mjbvz mjbvz closed this as completed Jul 30, 2024
@mjbvz
Copy link
Collaborator

mjbvz commented Jul 30, 2024

Also can be caused by the Vue extension

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Sep 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants