-
Notifications
You must be signed in to change notification settings - Fork 12.8k
TS Server fatal error: Debug Failure. Invalid cast. The supplied value [object Object] did not pass the test 'isBindableStaticAccessExpression'. #37633
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
Comments
Seems like the same error+stack mentioned in #34672 |
@sandersn the referenced bug above claims to have been fixed. Maybe you can try to synthesize a repro for this? |
@guuzeing can you try out the nightly extension to validate that this is fixed? |
@RyanCavanaugh it wasn't necessarily fixed, the repro we had just stopped crashing before we narrowed down the cause. It happened quite a while before this bug was filed, so I don't think they're the same. |
@guuzeing, if you find that this isn't fixed, let me know and I can walk you through modifying your tsc.js to print the actual source text instead of |
In #34672, looks like we missed the fact that I'm trying to figure out if those restrictions are proved elsewhere in |
After comparing In the meantime, I'm going to fix the assert message to include the declaration text at fault. |
I'm going to close this as "fixed to the best of our knowledge". Without a repro, there's no way of knowing it isn't caused by something else or was handled by one of the referenced PRs. |
Hi, I have Angular5 project and when I tried to upgrade it to Angular9, I found this issue when I tried to execute
And it was annoying since I wasn't able to make it disappear with Typescript 3.9 nor with Typescript 3.83 and since I'm sure the project was working fine with an older version of Typescript, I tried to downgrade the version of Typescript between 3.6 and 3.9 as recommended and this issue was fixed when I downgraded Typescript from 3.8 to 3.6. But I tried to test if the version 3.7 (3.7.5) will also keep doing the job or not and I found that it did very well This is the output of
Now when I tried to deploy again the project in a new folder, I get surprised with this issue again after executing So I wanted to check if this is correct by executing:
And the error was gone This is the output of the new
Maybe the installation of Typescript 3.6 comes with specific dependencies that fixed the issue and those dependencies were still there even after upgrading Typescript to 3.7. I can't figure out what are these dependencies that makes this issue disappear since the only difference that we can figure out in the output of So this is how I fixed this issue and I wanted to share this with you. I hope this could be helpful |
Do you get the exact same stack trace in 3.9.6? @sandersn did some work to improve the message. |
Issue Type: Bug
TypeScript Version: 3.8.3
Steps to reproduce crash
1.
2.
3.
TS Server Error Stack
VS Code version: Code 1.43.2 (0ba0ca52957102ca3527cf479571617f0de6ed50, 2020-03-24T07:38:38.248Z)
OS version: Windows_NT x64 10.0.18363
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Extensions (26)
(2 theme extensions excluded)
The text was updated successfully, but these errors were encountered: