Troubleshooting and diagnostic IDs
Runic tools and build steps report problems with a diagnostic ID, such as
RUNICBRIDGE016 or RTR0011. The message says what is wrong, and most of them
link to the entry for the ID at the release tag of the package that reported
it. This page tells you which product owns an ID and where to start when
something fails without one.
Find the reference for an ID #
| Prefix | Reported by | Reference |
|---|---|---|
RUNICBRIDGE |
The bridge code generator and the Views build targets, during dotnet build; since SDK 0.20.0 also the Views analyzers, while you type |
SDK diagnostics |
RAPPCLI, RAPPDEV, RAPPSIZE, RAPPPKG |
dotnet runic commands, such as dev, doctor, size and package |
SDK diagnostics |
RAS |
The asset packer and the Runic.Assets build targets | SDK diagnostics |
RUNICDESK |
The Runic Desktop build targets | SDK diagnostics |
RCREATE |
dnx Runic.Create |
SDK diagnostics |
RUNICPA, RUNICEL |
The privileged-action build targets of Runic.Platform and its platform packages | SDK diagnostics |
RUNICPLAT |
The Runic.Platform analyzers, such as the swapped menu item strings of RUNICPLAT001, while you type and in a build |
SDK diagnostics |
RUNICNAV |
The Runic.Navigation ReactiveUI build targets | SDK diagnostics |
RUNICDBUS |
The D-Bus source generator | SDK diagnostics |
RUNICP |
@runic-artifex/vite-plugin-runic |
SDK diagnostics |
RUNICDESK1xx, RUNICASSETS |
Retired experimental-API IDs, such as the native server's RUNICDESK102 until SDK 0.15.0; remove their suppressions |
Experimental APIs |
RCLI |
Runic Command Line and any tool built on it, including dotnet runic |
Command Line diagnostics |
RTR |
The Translations compiler, in the build, the tool and the editors, and runic-translations support |
Translations diagnostics |
The links above are for SDK 0.24.0, Command Line 0.15.0
and Translations 0.16.0. For another release, change the tag in the
address. dotnet runic reports a few RCLI8xxx codes of its own; the SDK
diagnostics list them.
First steps #
- An app or its build fails. Run
dotnet runic doctorin the project folder. It checks the .NET SDK, the JavaScript runtime and package manager, the lock file and that every Runic package belongs to one release. Add--runtime <rid>on the machine that publishes to check a publish target too; see shipping. Since SDK0.11.0it also warns, without failing, when the frontend's@runic-artifex/viewsis from another release thanRunic.Application.Views(views-package-versions; reinstall the frontend packages) and whenApplicationIdis not a reverse-DNS name that every package format accepts (application-id). - A command-line tool reports
RCLI5000. The command failed unexpectedly, and the exception is hidden. For a tool built on Runic Command Line, setRUNIC_COMMANDLINE_DEBUG=1and run it again to see the exception on stderr.dotnet runicalways prints it. - A translated description shows English. Its
DescriptionKeydid not resolve. SetRUNIC_COMMANDLINE_DEBUG=1to list each one as anRCLI0023warning; see translate a CLI. - The bridge or the frontend build fails.
RUNICBRIDGE016reports a frontend install or build command that failed; its own output, printed above the error, names the cause.RUNICBRIDGE022means thatdotnet publish --no-buildfound no Bridge code from an earlier build: build first with the same configuration, target framework andPublishAot. Since SDK0.10.0,RUNICBRIDGE026means the frontend declares dependencies but has no lock file for its package manager: commit the lock file, or setRunicApplicationFrontendAllowUnlockedInstall=true. - A build fails after updating to SDK
0.11.0. Code that compiled against0.10.0compiles unchanged, but three new warnings fail a build withTreatWarningsAsErrors:RUNICNAV002(the project references both navigation ReactiveUI adapters; keep one),RUNICBRIDGE029(RunicApplicationFrontendPackageManageris notnpm,pnpmorbun) andRUNICDBUS013(aDeprecatedor proxyNoReplyannotation that generated D-Bus code does not carry out). Fix the cause, or accept the warning for the project. TypeScript projects need TypeScript 5.2 or later for the regenerated.d.tsfiles. - Packaging for macOS fails after updating to SDK
0.12.0. Runic supports macOS on Apple silicon only:dotnet runic packagerefusesosx-x64and a universal bundle (--runtime osx-arm64,osx-x64) withRAPPPKG1004, anddotnet runic doctor --runtime osx-x64failstarget-rid; publish forosx-arm64.RAPPPKG1006names an override that lacks a field it needs: amacos/Info.plistwithout{{UsageDescriptions}}while the project sets a camera or microphone usage description, or amacos/entitlements.plistwithout{{Entitlements}}that lacks a key the App Sandbox needs. See shipping. dotnet runon macOS starts a different process. Since SDK0.12.0,dotnet run,dotnet watchanddotnet runic devstart the application from a signed development bundle inobj/, so notifications, login startup and open registration work. Set<RunicMacDevelopmentBundle>false</RunicMacDevelopmentBundle>to run the build output as before.- A macOS application quits differently or opens windows elsewhere. Since
SDK
0.12.0, every quit, also from the Dock or a logout and with no window open, asksConfirmQuitAsyncand the close guards and cancelsShutdownRequested; an application that keeps running without a window setsHandlesShutdownWithoutWindow. Window positions are points from the primary screen's top-left corner; positions the application computes itself need flipping. See windows on macOS. - A page's calls fail with a
protocoldiagnostic after updating to SDK0.13.0. Views protocol 4 is a strict version: a cached0.12page and a0.13host, or a0.13page and a0.12host, do not connect, and .NET logsBridgeProtocolMismatch(event 1018). Update every Runic NuGet and npm package to0.13.0together, rebuild so the generated clients, bridges and mocks are regenerated, replace copies ofrunic-desktop-views.jsorrunic-cswebui.jskept outside the web content, and reload open pages. An operation started under0.12and recovered after the upgrade isunknown. See the migration guide. - A script sees exit code 1 where it expected 2. Since SDK
0.14.0the SDK tools run on Runic Command Line0.11.0: a failure on what a command found, such as a missing project (RAPPDEV1002), exits 1, and 2 means that the command line itself is wrong. See exit codes and JSON output. - Field edits are kept with an error instead of disappearing. Since SDK
0.14.0,useTextField,injectTextFieldandcreateTextFieldControllerread checked-write receipts: arejectedorconflictwrite keeps the draft and setserror. Before, such a write dropped the draft silently. See forms and validation. - Subscribers see fewer states, or a test reads an older
snapshot. Since SDK0.14.0, the client notifies subscribers once per animation frame with the newest state. Await the call whose result you need, or read the state insubscribe; see testing frontends. - A route stays open after its component unmounted. Since SDK
0.14.0, bindings keep a client forkeepAlivemilliseconds (2000 by default) so a component that mounts again takes it over. PasskeepAlive: 0where the route must close at once. - A test request waits 5 seconds and then answers
no-hello. Since SDK0.14.0, requests that arrive before the connection'shelloare held for up to 5 seconds. Send thehellofirst, or advance a fake clock. - A CS-WebUI page no longer shows "Connection with the backend is lost".
Since SDK
0.14.0,runic-cswebui.jsinstalls a WebUI event callback, and WebUI shows its banner only without one. Show the connection state yourself, for example fromuseBridgeConnection(). - The build warns
RUNICBRIDGE033. Since SDK0.14.0, the build warns when the .NET SDK is older than 10.0.403 or a Bun frontend is built with a Bun older than 1.4.4, the versionsdotnet runic doctorrequires. Under Nix this includes nixpkgs' SDK 10.0.401 and Bun 1.4.2 until nixpkgs updates them; add the code toNoWarnmeanwhile. - A build fails with
CS0619naming a replacement. Since SDK0.14.0, types removed in 0.9 or 0.13 fail with an error that names their replacement; see the migration guide. - A Runic Desktop build fails with
RUNICDESK004after updating to SDK0.15.0.Runic.Desktopno longer carries a presentation server or references ASP.NET Core. AddRunic.Desktop.NativeServeror, for an application that uses ASP.NET Core itself,Runic.Desktop.Kestrelto the executable, at the same version; an executable that opens no window setsRunicDesktopServertoNone.RUNICDESK003reports another value ofRunicDesktopServer. Code that compiled against ASP.NET Core orMicrosoft.Extensions.Hostingtypes throughRunic.Desktopgets them fromRunic.Desktop.Kestrel. See the presentation server. - A NativeAOT publish fails with
RUNICDESK005. The native server's static library,Runic.Desktop.NativeServer.Static.<rid>, is restored only for a runtime-specific restore. Publish with-r <rid>for a runtime identifier the package supports. - The first window fails with
native-server-unavailable. The native server has no library for the runtime identifier, or a library fromRunicDesktopNativeServerLibraryDirectoryor Nix'srunicServercomes from another release; its native interface is version 2 since SDK0.15.0and version 3 since0.16.0, andRunic.Desktopaccepts only the library of its own release. Build a library of your own from the same release. IConfigurationorIHostEnvironmentcannot be resolved on the native server.DesktopHostOptions.ConfigureServicesreceives a plain service collection with logging there, not the ASP.NET Core host's services. Register what the application needs, or keepRunic.Desktop.Kestrel.- A
switchoverBridgeConnectionStateno longer compiles. Since SDK0.15.0the state has a fifth value,"closed": the application closed the window. Handle it, for example with "The application closed this window.", as the template does. - A command ran on the page but nothing happened. Since SDK
0.15.0, .NET answers a[RunicPresentationScoped]command from an earlier presentationsupersededwithout running it, and the call resolves without an error. The development client lists such calls on the dock's (the Vite DevTools dock's) Superseded commands card and in the timeline of/__runic/state. See commands scoped to their page. vite.config.tsfails to load:runicDevSessionis not exported. SDK0.15.0removedrunicDevSession(), deprecated in0.14.0. A SvelteKit frontend usesrunic({ html: false })and imports@runic-artifex/vite-plugin-runic/clientfromsrc/hooks.client.ts.- A Windows window shows
Loading…first. Since SDK0.15.0, a WebView2 window that is not ready within 1.5 seconds appears with a loading surface, and the page follows. This is usual after a WebView2 runtime or Windows update. UI automation waits for the page's document or title, not only the window. See the early first window. - A check for the exact type
DesktopExceptionmisses a failed browser fallback. Since SDK0.15.0, a chain of presentations that all failed throwsDesktopPresentationException, aDesktopExceptionwith the sameCodeandCategory, whoseAttemptslist each failure; the browser's exception is itsInnerException. - A CS-WebUI build has no
www/folder. Since SDK0.15.0, a CS-WebUI project withRunicApplicationFrontendDelivery=Embeddedembeds its frontend and no longer warnsRUNICBRIDGE030. Remove the property to keepwww/. - A build fails with
RAS2006. Since SDK0.15.0the build checks the archive thatRunicAssetsEmbeddedArchivenames before it embeds it; the packer'sRAS1007above it gives the reason. Pack the archive again. - A publish with
-p:PublishReadyToRun=truefailed withNETSDK1191. Fixed in SDK0.15.0; remove a workaround that passed the property to the application project only. The same error for-p:PublishSingleFile=trueis fixed in SDK0.22.0. FileNotFoundExceptionfor aRunic.Platformassembly afterdotnet publish -r <rid>. Since SDK0.22.0such a publish ships only its own operating system's platform assemblies, and code of your own calls another operating system's API from a method that also runs on this one. Move the call into a method that only that operating system runs, or setRunicPublishAllPlatformAssemblies; see shipping.- A window fails with
presentation-server-unavailableand the build warnsRUNICDESK007. Since SDK0.22.0,RunicDesktopServer=Noneturns the presentation server off even with a referenced server package. Remove the property to use that server. dotnet runic doctorfailedpackage-managerwith the npm of Node 24 or 26. Since SDK0.22.0it accepts npm 11.12.1 or a later npm 11 with a warning that names the certified npm 12.2.0 (npm install --global npm@12.2.0).- Code that handled
AdministrationErrorCategory.UnavailableorNativeFailuremisses failures. Since SDK0.15.0, a missing component isNotInstalled, missing accounts and groups areNotFound, a timeout isUnavailable, and service state conflicts areConflict; see Windows administration. - A build fails with a new
RUNICBRIDGEerror after updating to SDK0.16.0. They concern the new members:RUNICBRIDGE035(aViewRequestorViewQuestionmember that is not a get-only property),RUNICBRIDGE050toRUNICBRIDGE053(row editors and rows that cannot be copied),RUNICBRIDGE060(a query collection),RUNICBRIDGE065(aRunicBlobcommand input; take aRunicUpload) andRUNICBRIDGE070/071(region collections). See the SDK diagnostics. - The page loads but its Views never connect after updating to SDK
0.23.0, and the build warnsRUNICBRIDGE019. The page loadsrunic-desktop-views.jsorrunic-cswebui.js, which 0.23 removed. Load<script src="runic-views.js"></script>afterwebui.js. A project that references more than one host setsRunicApplicationHost. Awww/folder of an earlier build keeps the old copy untildotnet clean. @runic-artifex/views/experimentalhas noonBridgeDraining. 0.23 removed the re-export; import it from@runic-artifex/views.CS0246forRunicBridgeJsonIgnoreAttribute,IBridgeArguments,RunicReactiveSchedulerProvideror another type removed in 0.9 or 0.13. 0.23 removed their error tombstones; the migration guide names the replacements.RUNICICON001toRUNICICON003. Since 0.23 the build derives the Windows and macOS icons fromicons/icon.png; replace an icon that is not a square PNG of at least 256 px, or setRunicApplicationIconGenerationEnabled=false. See the application icon.- A CS-WebUI page's requests are answered
no-hello. Since SDK0.16.0a request names its page's session (request-session/1), and the host answers a request of another sessionno-hello, logged as event 1019. A copy ofrunic-cswebui.jsoutsidewww/or a hand-written client from an earlier release sends no session: replace it with the0.16copy. See who is connected. - A .NET interaction handler or fallback no longer runs. Since SDK
0.16.0, a page with a handler mounted answers questions asked by a command on another route of the window or by a menu-bar command. Keep the .NET answer for when no page is mounted. See ask the page and await its answer. - A timer or background task no longer asks the page. Since SDK
0.16.0a page's command identity ends with the command, andRunicInteractionInvocation.Currentisnullin work that outlives it. EnterRunicInteractionInvocation.EnterWindow(viewModel)for long-lived work that should ask the window's page. - A view request never reaches the page. A
Droprequest with no single presentation to deliver to is dropped and logged atDebugas event 1120ViewRequestDropped; mount the handler first, or declareNextMountedorBroadcast. See ask the page to act. - A number or date field shows
2,5or is empty in a native input. Since SDK0.16.0, once the application setsIRunicWindowLocale, number, date and time fields without their ownlocaleuse the window's locale. A field bound to<input type="number">ortype="date"takeslocale: null;bindFielddoes that itself. See locale-aware fields. - A field reports
invalid-textfor text that used to pass. Since SDK0.16.0, empty text in a non-nullabledecimal, date or time member and number text such as0x10or0b1areinvalid-text;timetext is10:30rather than10:30:00. See upgrading from 0.15. - A departure guard runs later than before. With a
0.16page and host the window first asks its pages to write their drafts (field-flush/1) and waits up to 1 second; an unanswered flush is logged atDebugas event 1140. - Blobs or uploads don't load in a CS-WebUI window. Since SDK
0.16.0each CS-WebUI window serves them from a loopback endpoint of its own, on another origin than the page. A pageContent-Security-Policyallowshttp://localhost:*forimg-src,media-srcandconnect-src. Event 1207 means the endpoint could not start. See blobs and uploads. - The page's navigation calls fail with a
failedBridgeError.navigateBack(),openNavigationPath()andinstallNavigationPath()need a host that listsnavigation-path/1, which0.15hosts don't; update the NuGet packages with the npm packages. See Back and the URL. - Recent documents appear in Explorer, the Jump List or a Linux file
chooser. Since SDK
0.16.0,DesktopHost.AddRecentDocumentAsync(NoteRecentDocumentAsyncbefore0.21.0) adds to them on Windows and Linux too, not only on macOS. See recent documents. - Power events report
Unavailablein a Flatpak. The sandbox needs--system-talk-namefororg.freedesktop.login1,org.freedesktop.UPowerandorg.freedesktop.UPower.PowerProfiles. CS-WebUI and serve-only always reportUnavailable. See power and session events. - A serve-only test harness rejects a
RUNIC_APPLICATION_WINDOW=line. Since SDK0.16.0, Runic Desktop and CS-WebUI follow eachRUNIC_APPLICATION_URL=line withRUNIC_APPLICATION_WINDOW=<url> <Window type>. Accept it, or useRunicServeOnlyApplication.Urls; see every Window in serve-only tests. - Stored or compared
TimeSpantext changed. Since SDK0.13.0, aTimeSpantravels as an ISO 8601 duration, such as"P1DT2H3M4.5S", not"1.02:03:04.5000000"; update code that parses or stores the text. vite devwarnsstale-input. The development client of@runic-artifex/vite-plugin-runicwarns once per field when script sets a focused<input>or<textarea>back to an earlier value while a Bridge request is in flight, the sign of a command per key or a copy of the state. Bind the field with the field API (useField,injectField,bindField; see forms and validation), or turn the warning off withrunic({ staleInputWarning: false }). It is a heuristic: an autocomplete library can trigger it too.- Linux windows mark spelling, or a language is not checked. Since SDK
0.13.0, GTK windows checkspellcheckfields by default; setDesktopWindowOptions.SpellChecking = falsefor the earlier behaviour. A language ofDesktopHostOptions.SpellCheckingLanguageswithout an installed dictionary reportsspell-checking-dictionary-missing. See spell checking. - A save reports
ResourceBusyon Windows. Since SDK0.12.0, a file that another program holds open without delete sharing isNotCommitted(ResourceBusy), notCommitUnknown(IOError): the file was not replaced, so try again later. dotnet runic devfails withRAPPDEV1007. Since SDK0.11.0,devwaits until the development server confirms its session. Withrunic()in the Vite configuration, update@runic-artifex/vite-plugin-runicto the release ofdotnet runic; an Angular frontend that declares the plugin needsrunicDevSessionProxy()in itsproxyConfig, and a SvelteKit frontend usesrunic({ html: false })(since SDK0.14.0;runicDevSession()before, which SDK0.15.0removed). SeeRAPPDEV1007.- A page fails in the published application but works in
dev. Since SDK0.11.0, new projects send a Content-Security-Policy without'unsafe-eval'outsideDevelopment(RunicDesktopHostOptions.ContentSecurityPolicyinProgram.cs), and the web view's console reports the violation. A page dependency that evaluates strings (eval,new Function) needs'unsafe-eval'back, and so doDesktopSurface.ExecuteJavaScriptAsyncand CS-WebUI'sRunJavaScript. The Views Bridge itself no longer needs it. Development servers are not covered by the template's policy. - The menu bar appears, moves or is missing. Since SDK
0.11.0, a declared menu bar is shown in Windows and GTK windows and can move into the Linux global menu.MenuBarPresentationPageorNone, orLinuxDesktopOptions.GlobalMenu = false, keep the old look. A Flatpak without--talk-name=com.canonical.AppMenu.Registrarkeeps the bar in the window and reportsglobal-menu-permission; since SDK0.12.0the manifests of the template anddotnet runic packagegrant it, but a hand-written one still needs it;global-menu-failed,menu-bar-failed,menu-bar-page-native,menu-radio-checkedandmenu-title-invalidname other causes. See menus. - A CS-WebUI page receives no state after updating. Since SDK
0.11.0the host sends state as data; update any copy ofrunic-cswebui.jsthat the application keeps outsidewww/. - Remote WMI fails with an IP address. Since SDK
0.11.0, remote WMI authenticates the server with Kerberos and has no NTLM fallback: name the server by its DNS or NetBIOS name.
Exit codes and JSON output #
Since SDK 0.10.0 the SDK tools (dotnet runic, dnx Runic.Create and the
asset packer) run on Runic Command Line, 0.11.0 since SDK 0.14.0, and share
its exit codes: 0 for
success, 1 when the command failed or something it needs is unavailable, 2
when the command line itself is wrong, 3 for internal or host failures and 130
when cancelled. Since SDK 0.14.0, a project, file or tool that the command
found missing or invalid exits 1, as a failed build already did; under SDK
0.13.0 these exited 2:
| Code | Failure |
|---|---|
RAPPDEV1002 |
The project does not exist, is not a .csproj, or the directory has none or several |
RAPPDEV1003 |
MSBuild could not evaluate the project (dev, doctor) |
RAPPDEV1004 |
A required program could not be started |
RAPPDEV1005 |
The project is not a Views Window project or its frontend configuration is invalid |
RAPPDEV1006 |
The Window rebuild after a C# edit failed (dev) |
RAPPDEV1008 |
--no-restore without installed frontend packages |
RAPPDEV1009 |
A Window entry page does not exist |
RAPPSIZE1003 |
The size --report file already exists |
RAPPPKG1001 |
The application identity in the project is invalid, or the package icon is missing |
RAPPPKG1007 |
The Flathub sources cannot be generated; neither or both of --git-commit and --git-tag still exits 2 |
RAS1001 |
The packer's source directory does not exist |
RCREATE003 |
The runic-create destination is not empty and --force is not given |
Unknown options and commands, missing arguments, invalid values and a target
of another operating system (RAPPPKG1004) still exit 2. Human output writes a
fault as its message without the leading code (The selected project does not exist., then the Help for RAPPDEV1002 line), and a usage error ends with the
usage line and the help command. Scripts test the exit code or read
fault.code from --format json, which keeps every code. The Windows administration verifier keeps its documented 0/1/2.
Select JSON output with --format json; --output json remains a hidden alias
for dotnet runic, the asset packer and the verifier until 2.0, and
Runic.Create keeps --output (-o) as its destination directory. Regenerate
installed completion scripts after updating. Since SDK 0.12.0 these tools,
and the Bridge generator, roll forward to a newer major .NET runtime, so a
machine with only a newer .NET SDK builds the application.
More help #
- Guides with their own troubleshooting sections: embed and serve assets and the Translations .NET quick start.
- The 0.13.0 release notes list the steps for upgrading from 0.12, the migration guide has before and after tables, and the 0.12.1 release notes the .NET, Node and Bun versions of the security patch.
- Debugging an application covers the .NET debugger, the browser's developer tools, the dock and Runic Inspect, with its own troubleshooting section.
- Support explains how to report a problem.