Skip to content

Fix the crash when reporting errors of file that was referenced by inferred project root, is opened right after closing the root file #23636

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

Merged
merged 1 commit into from
Apr 24, 2018

Conversation

sheetalkamat
Copy link
Member

Fixes the crash reported in #23255 (comment)

Consider the structure through import as:
project root - app
- test -> utilities

When app is opened followed by test. The inferred project with project roots as app and test and the project will containing utilities as well.
After this operation closing test and opening utilities will mark inferred project as dirty but wont update it. That means, without updating inferred project we would indirectly think utilities is part of inferred project so no action is needed. And during next update graph is when utilities will be open but not part of any project resulting in exceptions for any semantic/syntactic operations on utilities.

With this fix, all projects of info are updated if dirty to ensure correct inferred project assignment or creation

…ferred project root, is opened right after closing the root file

Fixes the crash reported in #23255 (comment)
@sheetalkamat sheetalkamat merged commit ce5d5d8 into master Apr 24, 2018
@sheetalkamat sheetalkamat deleted the getErrWithInferredProject branch April 24, 2018 18:33
@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants