loda-lang / loda-rust

Web editor for the LODA language. Also includes my experiments with Abstraction and Reasoning Corpus ARC.
https://loda-lang.org/
Apache License 2.0
24 stars 2 forks source link

Postmine - error messages printed related to `loda_cpp` #27

Closed neoneye closed 1 year ago

neoneye commented 1 year ago

Kotenok2000 reports that:

Sometimes i get these errors

2022-12-04T12:25:19Z ERROR loda_rust::lodacpp::lodacpp_eval_steps_execute] Expected exit_code: 0, but got exit_code: Some(-1073740791), loda_program_path: "/homedir/subdir/oeis/190/A190772.asm"
[2022-12-04T12:25:19Z ERROR loda_rust::lodacpp::lodacpp_eval_steps_execute] stdout: ""
[2022-12-04T12:25:19Z ERROR loda_rust::lodacpp::lodacpp_eval_steps_execute] stderr: ""

Solution

As of 4-dec-2022, the errors are printed to stdout, causing noise in the console.

Don't print it to stdout, but instead append to the postmine-yyyymmdd/32-log.txt, that there was a problem evaluating the program.

neoneye commented 1 year ago

Fixed in https://github.com/loda-lang/loda-rust/commit/1f9ce8057ad8c74efd8ef13a12a3dcb9eb26c0be