You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixing a couple issues around dependency resolution for extension files inside getExtensionInfo. we have a rather complex system of excluding certain files if another package is present and flattening those paths was causing guards to be ignored for native builds.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved build-cache issues can delete runtime-owned CMake files and retain stale success hashes after failed builds, causing required rebuilds to be skipped.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Critical build regressions remain: cache writes can fail before the build directory exists, and root-package renaming breaks Arcade VM source exclusions.
Preserve native root paths when canonicalizing project names
pxtlib/shared/extensioninfo.ts:1015
Arcade's hw---vm root package supplies sdlmain.cpp, and the bundled VM Makefile excludes pxtapp/hw---vm/sdlmain.o. Renaming that root to this makes the exclusion miss, so the regular build tries to compile the SDL source without its SDL flags. Preserve native paths for root libraries while canonicalizing user project display names, and keep prepared requests consistent.
Record incoming build files before writing them
cli/buildengine.ts:290
The new build-file list is persisted only after every file has been written. If a write fails or the process is interrupted after creating a new .mk file, the cache still lists only the previous files; a later build that omits that fragment will never remove it and may consume stale build settings. Persist the union of old and incoming build-file names before writing, then replace it with the final list after a successful write.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Critical bundle initialization and resolution defects can break builds or select the wrong board files, while incomplete cache cleanup can execute stale Makefiles.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The CLI defaults to cloud compilation, but refreshed local root-library .mk contents are omitted from cloud requests and leave projectCompileSha unchanged. Builds can therefore return an older cached HEX or compile the published bundle instead of the edited local files.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Native builds can silently use incorrect scripts: dependency traversal can ignore an explicit board-specific core version after encountering a wildcard, while an unverified file-path basename can select another library’s bundled scripts. Separately, cloud builds cache output from published scripts under the local-content SHA, so a later --localbuild can reuse a binary that ignores local changes; legacy SHA cache hits also bypass migration cleanup, preserving stale scripts and binaries.
pxt.warn(`Cloud compilation uses the target's published build files and will ignore local changes to: ${extInfo.localBuildFiles.join(", ")}. Use --localbuild to compile with these local files.`);
Share package preparation between extension generation and project requests.
Align target-library handling and generated-file tracking, and add an
opt-in native-build bypass for target CI.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e5d3cd25-3179-40c4-a283-1469f3dcc50e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixing a couple issues around dependency resolution for extension files inside getExtensionInfo. we have a rather complex system of excluding certain files if another package is present and flattening those paths was causing guards to be ignored for native builds.