Uh oh!
There was an error while loading. Please reload this page.
Add ThrowTest module: Throwables escaping module entry points - #20
Open
bumaas wants to merge 1 commit into
Open
Conversation
Test case for https://community.symcon.de/t/144258/51 - when a Throwable escapes MessageSink, ApplyChanges, RequestAction, a public module function or a timer callback, the kernel log should show class, message and file:line. Each throw site uses a unique message text so it is immediately visible whether the text makes it into the log. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0116EF9RYnMCTwRuYP4PHidQ
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
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Test-Case zu https://community.symcon.de/t/144258/51 (auf Wunsch von paresy in #53).
Das Modul ThrowTest lässt gezielt ein Throwable aus jedem Modul-Einstiegspunkt entweichen — jede Wurfstelle mit eindeutigem Meldungstext, damit sofort sichtbar ist, ob der Text im Log ankommt:
MessageSinkbeiKR_READYThrowOnKernelReady+ Neustart — wirft den Original-Praxisfall nach (Engine-TypeErrordurchget_defined_constants(true)['IP-Symcon']=null)ApplyChangesThrowOnApplyChanges+ ÜbernehmenRequestActionTHT_ThrowFromPublicFunction)Beobachtetes Verhalten (SymBox,
9.1-755-feature-rust):Kernel-Kontext (KR_READY, Timer): Die strukturierte ERROR-Zeile hat eine leere Meldungsspalte; der komplette „Fatal error"-Text samt Stacktrace steht zwar im Logfile, aber nur als ungetaggte Rohzeilen direkt darunter (ohne Zeitstempel/Level) — in der Meldungsansicht der Konsole und für jedes Log-Werkzeug unsichtbar:
Skript-Kontext (RequestAction, öffentliche Funktion, ApplyChanges per Skript): Der Text erreicht den Aufrufer als Warning; ein fangbares Throwable kommt beim Aufrufer nicht an.
Unter C++ 906 zeigte der KR_READY-Fall ebenfalls keinen Text in der strukturierten Zeile (
KernelMT | InstanzManager: Fehler bei Instanz #…, Meldung IPS_KERNELMESSAGE:).Wunsch: Klasse, Meldung und Datei:Zeile in die strukturierte ERROR-Zeile selbst übernehmen.
🤖 Generated with Claude Code
https://claude.ai/code/session_0116EF9RYnMCTwRuYP4PHidQ