Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

litlep-nibbyt
Copy link
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
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
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

@@ -28,7 +28,9 @@ pub use drivers::exit::exit as exit_driver;
pub use drivers::file::file as file_driver;
pub use drivers::http::http as http_driver;
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
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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants