Skip to content
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

fix(watcher): watcher doesn't exit when module resolution fails #8521

Merged
merged 8 commits into from
Nov 28, 2020

Conversation

magurotuna
Copy link
Member

This commit makes the file watcher continue to work even if module
resolution fails at the initial attempt, allowing us to execute run
or bundle subcommand when a script has invalid syntax. In such
cases, the watcher observes a single file that is specified as an
command line argument.

Fixes #7848

This commit makes the file watcher continue to work even if module
resolution fails at the initial attempt, allowing us to execute `run`
or `bundle` subcommand when a script has invalid syntax. In such
cases, the watcher observes a single file that is specified as an
command line argument.

Fixes denoland#7848
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested this PR locally, works great, very good fix @magurotuna, LGTM

@bartlomieju bartlomieju merged commit d9b4182 into denoland:master Nov 28, 2020
@magurotuna magurotuna deleted the issue7848 branch November 28, 2020 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deno run --watch exits when file has invalid syntax
2 participants