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

[BUGFIX release] Correctly instantiate server watcher #10108

Conversation

bertdeblock
Copy link
Contributor

@bertdeblock bertdeblock commented Dec 12, 2022

Fixes:

instantiate Watcher with (await Watcher.build()).watcher, not new Watcher()

when running:

ember s

in a project that has a server directory.

Similar to #10101.

@bertdeblock bertdeblock self-assigned this Dec 12, 2022
@bertdeblock bertdeblock marked this pull request as draft December 12, 2022 16:31
@bertdeblock bertdeblock force-pushed the correctly-instantiate-server-watcher branch from 0804b13 to 25e82ad Compare December 12, 2022 18:06
@bertdeblock bertdeblock marked this pull request as ready for review December 12, 2022 18:06
ui,
analytics,
watcher,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Assigning the watcher upon creation is not really how things work at the moment, and is why this test didn't catch this.watcher being undefined in the server-watcher's constructor when running ember s in a real project. This test now fails without the changes in this PR and succeeds with.

@kellyselden kellyselden merged commit 5bc4e4d into ember-cli:release Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants