-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Sandcastle gallery build path fix #12874
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
Conversation
|
Thank you for the pull request, @ggetz! ✅ We can confirm we have a CLA on file for you. |
|
On my WSL Ubuntu build, this PR fixes the issue from #12867:
|
jjspace
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Actually @ggetz I went to get a picture of the slow gallery list build time I mentioned in person and realized there's an issue with the local server rebuild. If you spam save on a file (or even just hit it twice accidentally before it finishes) multiple builds get kicked off at the same time and they conflict. Sometimes it seems to catch it, sometimes it crashes fully.
|
Co-authored-by: jjspace <8007967+jjspace@users.noreply.github.com>
I'll take a look and see if we can make a small change here to prevent the crash. I do agree that outside of this PR, we can take a pass and see if there's something we can do to speed up the overall build step. |
|
@jjspace Updated!
|
jjspace
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, may want further adjustments in the future but this seems fine for now

Description
Cleans up some rough edges that I overlooked in #12854.
galleryfile watcher and rebuild which is part ofnpm start.build.jswhile I was in there: I noticed that it was running some async functions as a side effect. That means they were running even when importing a totally unrelated function.Issue number and link
Fixes #12867
Testing plan
npm installandnpm run build. The gallery files should be built toApps/Sandcastle2, not a parent directory as in the original bug report.npm start. Update a gallery file inpackages/sandcastle/galleryand be sure the updates are rebuilt and reflected inhttp://localhost:8080/Apps/Sandcastle2/index.html.packages/sandcastle. Ensure that runningnpm run devbuild the gallery files to thepackages/sandcastle/publicdirectory, and that the app loads examples as expected.Author checklist
CONTRIBUTORS.mdCHANGES.mdwith a short summary of my change