Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

wrapper: soft load state, add details to prints#135

Open
litlep-nibbyt wants to merge 10 commits intomasterfrom
jyw/soft-load
Open

wrapper: soft load state, add details to prints#135
litlep-nibbyt wants to merge 10 commits intomasterfrom
jyw/soft-load

Conversation

@litlep-nibbyt
Copy link
Copy Markdown
Contributor

@litlep-nibbyt litlep-nibbyt commented Jan 31, 2025

init tracing before setup to receive setup prints
soft load state in inner kernels
wrapper: add more details to poke prints

separate PR needs to be made to change load behavior in NockApp Kernel struct to "soft" load and print formatted stack trace in the case of failure.

=/ o ((soft input) input.u.ovum)
?~ o
~& "could not mold poke type: {<ovum>}"
=+ (road |.(;;(^^ovum ovum)))
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this prints out stack trace if soft fails

^- choo-state
?+ -.arg ~& >> %no-upgrade arg
?~ ((soft versioned-state) old)
~& >> "choo: +load old state does not nest under versioned-state" !!
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add road here to get stack trace

pub use drivers::markdown::markdown as markdown_driver;
pub use drivers::npc::{npc_client as npc_client_driver, npc_listener as npc_listener_driver};
pub use drivers::npc::{
npc_client as npc_client_driver, npc_listener as npc_listener_driver, NpcWire,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expose NpcWire for outside use

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants