Webstorm typescript not type-checking bad class name

I have a typescript project and many of the autocomplete things are working fine, and tslint rules are working fine. I have all the typescript functionality enabled, I have autocomplete on my classes and imports. I am able to shift-click typescript roots defined in my tsconfig also...

buuutttt.... when I do the most basic mistake, like bad class name, I get no complaints.

const x = new jknsdrgjknergkjnbegr();  // will pass validation

Incredibly frustrating getting only compile time feedback.

Does anyone have any ideas?

(I have cleared webstorm caches)

 

 

0
7 comments

Can't recreate. With TypeScript service enabled in Settings | Languages & Frameworks | TypeScript I'm getting TSC errors:

With service disabled, I can see `Unresolved type` error:

Do you have TypeScript service enabled for your project? Please attach a screenshot of Settings | Languages & Frameworks | TypeScript page

0
Avatar
Permanently deleted user

I tried with it on and off, both the same result. If I put the cursor on the dummy name, and alt-enter, it asks if I want to create the class. So it seems to know that it doesn't exist.... but why no errors (or ever warning)?

 

0

Do you have any symlinks in your project path?

0
Avatar
Permanently deleted user

Yes! I have a project made up of many "modules" but actually each module is a symlinked directory. So my root project / workspace is really just a directory with a bunch of symlinks

0

Errors from TypeScript service are not shown in editor when using symlinks - see https://youtrack.jetbrains.com/issue/WEB-30318 :(

1
Avatar
Permanently deleted user

Oh... unfortunate. Thanks for the reply!
Is there any targeted fix version?

0

Please sign in to leave a comment.