-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Using noUnusedLocals crashes version 2.7 #21491
Comments
Fixed by #21343 |
for this specific file, the semicolon after |
I am also getting this crash on typescript 2.7 when compiling on Mac OSX and using the The crash looks like this:
|
* Implement strict initialization. * Remove semicolon that crashes tsc. microsoft/TypeScript#21491 * Use tsc @ 2.71 now that it is out.
I think I hit the same issue here: [00:38:32] Using gulpfile C:\projects\vscode-chrome-debug-core\gulpfile.js |
The fix should be already in |
That worked. Thanks :) |
We're also experiencing this in 2.6.1 (typescript@next works fine). Is there any way to figure out which file tsc is breaking on? |
for this specific call stack, it is a semicolon after a method or accessor declaration in your class. to know which specific class, consider running under a debugger. |
Thanks @mhegazy, that worked great! Much better than me trying to find them with a regexp. :) |
TypeScript Version: 2.7.1-insiders.20180127
Is not an issue with
typescript@next
. It'd be great to have this fix in the 2.7 release since this is a regression.Search Terms:
noUnusedLocals, crash
Code
See attached.
Expected behavior:
tsc --noUnusedLocals SceneServiceFactory.ts
returns expected errors in 2.6.Actual behavior:
SceneServiceFactory.ts.txt
The text was updated successfully, but these errors were encountered: