-
Notifications
You must be signed in to change notification settings - Fork 73
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
Including this plugin in WebStorm projects breaks TS type checking #243
Comments
the same problem appears to happen on this plugin's relatively newly released |
Hi @ekilah! Sorry you've hit this. To clarify, are you saying this was fine with version 4.x for you? Have you also updated to TypeScript 5.x? The plugin should fail and just return an empty object |
I actually updated from this plugin's because I was cleaning up some old dependencies in my project. And it looks like this plugin's |
I happened to stumble on microsoft/TypeScript#55673 while debugging more. I left a detailed comment there with some logs attached: microsoft/TypeScript#55673 (comment) Note to myself: getting logs like so, because the webstorm logging util actually doesn't quite work correctly:
|
You need to use 5.x of this plugin for TypeScript 5.x support. Not intentionally aligned in versions, but there were some breaking changes shipped with that release. Have you tried downgrading to the previous TS release to see if you still encounter that issue? Thanks for also posting on the TS thread. Perhaps they can provide some more insight. There's obviously something going on, but I'm not sure what and it's seemingly very rare that people hit it - as this extension gets 275k weekly downloads, and I know many of those use the latest TS version. |
I switched over to a smaller side project that was easier to test things on (and to produce those logs I posted), where it is also easy to switch between TS 4 and TS 5. There, I can't reproduce the issue on TS 4 and plugin 4.2.3 - a whitespace change to my Unfortunately, in the main project i was posting about originally, downgrading to TS 4 isn't a realistic option... |
Thanks for trying to create a reproduction, I appreciate the effort. As you can imagine, it makes debugging significantly (even infinitely) easier. Could you try a release like these? |
5.1.3 seems to work: microsoft/TypeScript#55673 (comment) I didn't bother trying |
No, that's plenty - thanks! Let's see if the TS team has any thoughts. |
Closed by #244 for now. We'll reopen if the TS team think there are changes we can make in future. Thanks again! |
Describe the bug
I recently updated to
5.0.1
of this plugin and regular TS type checking in JetBrains WebStorm doesn't work unless I comment out theplugin
definition in mytsconfig
.To Reproduce
Making a type error (typo on a variable name, etc) in my React TypeScript project doesn't produce any errors in Webstorm if I include this plugin in
tsconfig
. (Note: CSS module stuff, like hovering over an import to see its type or errors about classnames not existing) doesn't work either way, either, which is obviously related)Expected behavior
Both regular type checking and the extra stuff this plugin should be adding work in WebStorm when this plugin is enabled.
Screenshots
With the plugin disabled, by commenting it out in my
tsconfig
With it enabled:
I'm more than happy to help debug this, since you may not have WebStorm access, though there is a free trial period. I just don't know what I might be looking for.
The text was updated successfully, but these errors were encountered: