Skip to content

Avoid watching non-existing directories and fix null-exception#11601

Merged
zhengbli merged 3 commits into
microsoft:masterfrom
zhengbli:11568
Oct 13, 2016
Merged

Avoid watching non-existing directories and fix null-exception#11601
zhengbli merged 3 commits into
microsoft:masterfrom
zhengbli:11568

Conversation

@zhengbli
Copy link
Copy Markdown

Fixes #11568

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Oct 13, 2016

We need to do this also for watchDirectory calls in tsc.ts. I wounder if we should instead do it in watchDirectory in sys.

@zhengbli
Copy link
Copy Markdown
Author

Interestingly tsc -w doesn't have this issue. I guess the null exception might actually be the source of this particular problem, but yeah it would be worth adding the prevention anyways.

@zhengbli
Copy link
Copy Markdown
Author

All tests passed on a local machine. As the CI takes several hours and this fix is urgent for the next release, merging it in.

@zhengbli zhengbli merged commit a6443e3 into microsoft:master Oct 13, 2016
@zhengbli zhengbli deleted the 11568 branch October 13, 2016 22:39
zhengbli pushed a commit that referenced this pull request Oct 13, 2016
* Avoid watching non-existing directories and fix null-exception

* Add test

* Move the fix to sys to cover tsc -w also
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 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.

3 participants