-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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:3 and sourceFile.scriptKind: 4, !entry: false #54381
Comments
The JS/TS language service crashes when using Github Copilot chat and scrolling in the chat history |
Finally got a server log from the crash: tsserver.log This only seems to happen on TS 5.1. I was never able to reproduce this in TS 5.0 In the logs, the cause of the crash appears to be
And then we reopen it as
This is where the crash happens |
Component commits: 8f0c69f Handle already released source files that dont match scriptKind Fixes microsoft#54381
Type: Bug
❗️❗️❗️ Please fill in the sections below to help us diagnose the issue ❗️❗️❗️
TypeScript Version: 5.1.1-rc
Steps to reproduce crash
The JS/TS language service crashes when using Github Copilot chat and scrolling in the chat history
TS Server Log
❗️ Server logging disabled. To help us fix crashes like this, please enable logging by setting:
After enabling this setting, future crash reports will include the server log.
TS Server Error Stack
Server:
syntax
VS Code version: Code - Insiders 1.79.0-insider (Universal) (f6be5461f8bc69013a605f5baea834651c6589fb, 2023-05-20T01:20:35.044Z)
OS version: Darwin arm64 22.5.0
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
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
Extensions (12)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: