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

Avoid crashing the rollup watchmode build when glint hits a syntax error #2342

Conversation

abeforgit
Copy link
Contributor

@abeforgit abeforgit commented Mar 5, 2025

As described in the issue, you don't want the build watching script to completely exit when it hits a syntax error. This means you have to restart pnpm start once you've fixed the error, which is annoying.

fixes #2341

Verified

This commit was signed with the committer’s verified signature.
anhthang Anh Thang
NullVoxPopuli
NullVoxPopuli previously approved these changes Mar 5, 2025
@NullVoxPopuli NullVoxPopuli dismissed their stale review March 5, 2025 18:28

approved too early

Verified

This commit was signed with the committer’s verified signature.
anhthang Anh Thang
@abeforgit abeforgit marked this pull request as ready for review March 5, 2025 18:49
let glintPromise: Promise<void>;

return {
name: 'glint-dts',
buildStart: () => {
buildStart() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

had to change this to method syntax to get access to this, unsure of the impact that might have. Other plugins seem to do this as well

@abeforgit abeforgit requested a review from NullVoxPopuli March 5, 2025 18:51
Copy link
Collaborator

@NullVoxPopuli NullVoxPopuli left a comment

Choose a reason for hiding this comment

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

Looks good. Will still fail normal builds which is what we want

Thank you!

@abeforgit
Copy link
Contributor Author

abeforgit commented Mar 5, 2025

Don't immediately see why these tests would fail, let me know if there's anything I can do

@NullVoxPopuli
Copy link
Collaborator

looks like it was just windows being flaky (I reran)

@NullVoxPopuli NullVoxPopuli merged commit 2218e46 into embroider-build:stable Mar 5, 2025
223 checks passed
@NullVoxPopuli NullVoxPopuli added the bug Something isn't working label Mar 5, 2025
@abeforgit abeforgit deleted the fix/glint-crashing-with-type-errors branch March 5, 2025 21:36
@github-actions github-actions bot mentioned this pull request Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants