Repository navigation
fix(sdk): give the optional implicit package message its own code UNOB0037 - #25696
waland1510 wants to merge 1 commit into
Conversation
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25696/docs/index.html |
| { | ||
| Log.LogMessage(subcategory: null, | ||
| code: "UNOB0028", | ||
| code: "UNOB0030", |
There was a problem hiding this comment.
@Xiaoy312 UNOB0030 is already taken on master: #25614 (merged 10-26) uses it for "The SkiaRenderer Uno Feature is ignored in a library" (Uno.Features.targets, uno-build-error-codes.md, https://aka.platform.uno/UNOB0030). Merged as is, two diagnostics would share UNOB0030 again, the same problem as #25334 that this PR fixes.
The last code on master is UNOB0032, and #25832 (open) uses UNOB0033, so UNOB0034 looks free after a rebase. The code also appears in this PR's docs and targets comment. Could you help get it renumbered before this merges in addition to a review please?
|
Tick the box to add this pull request to the merge queue (same as
|
MartinZikmund
left a comment
There was a problem hiding this comment.
@waland1510 thanks for picking this up, splitting the two meanings of UNOB0028 is the right call. A few things before it can go in:
- The code needs renumbering again. Agnes already flagged that UNOB0030 is taken (the
SkiaRenderer-in-a-library warning inUno.Features.targets). Since then UNOB0034, UNOB0035 and UNOB0036 have landed onmastertoo (Lottie on WinAppSDK, Prism feature, MauiEmbedding), so the next free code is UNOB0037. I couldn't find an open PR claiming it, but please grepsrc/Uno.Sdkanddoc/articlesonce more right before pushing. - Rebase needed. The branch is far behind and conflicts.
masterhas meanwhile documented the overlap as a combined section inuno-build-error-codes.md: an explicit<a name="unob0028"></a>anchor, a### UNOB0028: ... or an optional implicit package was skippedheading, a "two unrelated causes" intro and two####subsections. With this fix, that should collapse back to a plain### UNOB0028: The UnoSplashScreenColor property is no longer supportedsection (the generated anchorunob0028-the-unosplashscreencolor-property-is-no-longer-supportedis whatsplash-screen.mdandmigrating-to-uno-7/project-setup.mdlink to, so keep that heading text exactly). Then add### UNOB0037: An optional implicit package was skippedafter UNOB0036 so the page stays in numeric order. Keeping theunob0028anchor is fine, sinceaka.platform.uno/UNOB0028may still point at it. - Link the new code from
using-the-uno-sdk.md. Instead of a bare`UNOB0037`, use[UNOB0037](xref:Build.Solution.error-codes#unob0037-an-optional-implicit-package-was-skipped), like the other docs do for UNOB codes, so readers can get to the explanation. - PR description: the suppression note. The skipped-package diagnostic is a
Log.LogMessage(normal importance), not a warning, soNoWarn/WarningsAsErrorsnever applied to it. Renumbering can't change anyone's suppression or turn it into an error. The only thing that changes is that someone grepping logs for UNOB0028 to find the skipped-package message now needs the new code. That's worth one line in the description, because the message shipped in 7.0.x (7.0.29+). The splash-screen warning keeps UNOB0028, so existingNoWarnentries for it still work, as you said.
The code change itself (one constant, plus the targets comment) is fine. Once it's renumbered and rebased, this is good to go.
| The diagnostic is raised on the `xmlns` declaration. The same names remain valid as ordinary namespace aliases, so a declaration using the `using:` form — for instance `xmlns:skia="using:SkiaSharp.Views.Windows"` or `xmlns:legacy="using:Uno.UI.Controls.Legacy"` — is not reported. `legacy` is only reported when it is listed in `mc:Ignorable`, which is where it used to act as a condition. See [Removed XAML prefixes](xref:Uno.Development.MigratingToUno7#removed-xaml-prefixes). | ||
|
|
||
| ### UNOB0028: An optional implicit package was skipped | ||
| ### UNOB0030: An optional implicit package was skipped |
There was a problem hiding this comment.
After rebasing, this section should move to after UNOB0036 with the new code (UNOB0037). Also remove the combined UNOB0028 intro and the #### subsections that master added around line 316, leaving a single ### UNOB0028: The UnoSplashScreenColor property is no longer supported heading. Keep that heading text exactly, because splash-screen.md and migrating-to-uno-7/project-setup.md link to its generated anchor.
| - It is absent from optimized (Release) builds. Code that uses its types must only compile in non-optimized builds, for example under `#if DEBUG`, or the Release build fails. | ||
| - It is referenced with `PrivateAssets="all"`, so it does not flow to projects that reference yours, nor into the package of a library packed in Debug. A test project that doesn't use the `MVUX` feature references it directly, at the same version as the app's Uno.Extensions packages. | ||
| - It follows `UnoExtensionsVersion`, and is skipped (`UNOB0028`) when that version is older than the 7.4 builds that first ship it, or is a floating version or a range. | ||
| - It follows `UnoExtensionsVersion`, and is skipped (`UNOB0030`) when that version is older than the 7.4 builds that first ship it, or is a floating version or a range. |
There was a problem hiding this comment.
Could this link to the error-codes entry, e.g. [UNOB0037](xref:Build.Solution.error-codes#unob0037-an-optional-implicit-package-was-skipped)? Other pages do that for UNOB codes.
…B0037 UNOB0028 was used by both the UnoSplashScreenColor warning and the optional-implicit-package message, so the error-codes page had to document two unrelated causes under one heading. The skipped-package message now reports UNOB0037, the next free code, and the docs follow: UNOB0028 is back to a single splash-screen section and UNOB0037 gets its own entry after UNOB0036. Addresses unoplatform#25334 Co-Authored-By: Claude Fable 5.1 <[email protected]>
e27ce6c to
08ef8df
Compare
|
Thanks @MartinZikmund and @agneszitte. Rebased on
|
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25696/docs/index.html |
MartinZikmund
left a comment
There was a problem hiding this comment.
@waland1510 thanks, all sorted: renumbered to UNOB0037 (nothing else claims it), UNOB0028 is back to the single splash-screen section with its anchor intact, the new section sits after UNOB0036, and using-the-uno-sdk.md links it via xref. The suppression note in the description is spot on too.
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25696/docs/index.html |
|
The build 247745 found UI Test snapshots differences: Details
|
GitHub Issue: closes #25334
PR Type:
🐞 Bugfix
What changed? 🚀
UNOB0028was emitted by two unrelated diagnostics: theUnoSplashScreenColorwarning and the optional-implicit-package message inImplicitPackagesResolver. The error-codes page had to document both causes under one heading.The skipped-optional-package message now reports
UNOB0037, the next free code afterUNOB0036onmaster(src/Uno.Sdk,doc/articlesand open PRs checked right before pushing). The targets comment follows.Docs:
uno-build-error-codes.md:UNOB0028is back to a single### UNOB0028: The UnoSplashScreenColor property is no longer supportedsection. The heading text and theunob0028anchor are kept, sincesplash-screen.md,migrating-to-uno-7/project-setup.mdandaka.platform.uno/UNOB0028link to them.UNOB0037gets its own section afterUNOB0036, so the page stays in numeric order.using-the-uno-sdk.mdlinks the new code with[UNOB0037](xref:Build.Solution.error-codes#unob0037-an-optional-implicit-package-was-skipped), like the other UNOB codes.Suppression: the skipped-package diagnostic is a
Log.LogMessageat normal importance, not a warning, soNoWarn/WarningsAsErrorsnever applied to it and renumbering changes no suppression. The only visible change is that anyone grepping build logs forUNOB0028to find the skipped-package message (shipped in 7.0.29+) now needsUNOB0037. The splash-screen warning keepsUNOB0028, so existingNoWarnentries for it still work.No unit test: the change is a message code constant.
Uno.Sdkbuilds clean.PR Checklist ✅
Screenshots Compare Test Runresults.Addresses #25334
🤖 Generated with Claude Code