-
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
Opening a file causes subsequent completion failures #52792
Comments
I followed these steps exactly, and can’t reproduce. |
Let me work on a better repro. |
I'm able to consistently repro this - even at the root of my file system. The key to the repro is that |
Do you have a package.json? |
I've tried it with and without |
On 5.0.0-dev.20230215? |
Yup! classMemberCompletionCrash.webm |
Writing up the results of my investigation since I have some vacation coming up. It’s possible that @sheetalkamat will be able to fix this while I’m out. I initially thought this might be a regression from #52686, but I was wrong. I verified this crashes before that PR. Here’s what’s happening:
I talked to @sheetalkamat about this, and she said
I have a failing test at 6396ba4 that I think should start passing—or at least stop crashing—if the extra parse and bind stop happening. I investigated whether the cache invalidation for the ExportInfoMap could take the source file’s version into account, but there’s not really a good place to slot that in right now. Since this is not a regression, I think we should pursue the versioning fix that would have the added benefit of skipping some unnecessary parsing and binding. |
I wonder if this is possibly why there's a few crawler sessions that seem to suddenly crash. |
utils.ts
so that it is not just in the program, but is also an open file.The text was updated successfully, but these errors were encountered: