Skip to content

Always show errors in robot log, instead of treating them as ephemeral#2695

Merged
mergify[bot] merged 1 commit intomainfrom
feature/byorgey/show-log-errors
Mar 6, 2026
Merged

Always show errors in robot log, instead of treating them as ephemeral#2695
mergify[bot] merged 1 commit intomainfrom
feature/byorgey/show-log-errors

Conversation

@byorgey
Copy link
Member

@byorgey byorgey commented Mar 6, 2026

Fixes #2227. Partially reverts #1877.

The motivation for #1877 was largely because of errors being shown by the run command, when the .sw file being loaded did not parse or type check. Such errors could be quite large, and were irrelevant once the .sw file had been fixed, so making them "ephemeral" worked very well. However, with #2540 and #2679 run has now been replaced by import, which generates not runtime errors but compile-time errors. Such errors are shown in the REPL console rather than a robot log, so the original motivation for #1877 is now moot. The remaining runtime errors tend to be short (e.g "move: There is a mountain in the way!") and potentially relevant to see in the log history, so making them ephemeral does not make as much sense.

Fixes #2227.  Partially reverts #1877.

The motivation for #1877 was largely because of errors being shown by
the `run` command, when the `.sw` file being loaded did not parse or
type check.  Such errors could be quite large, and were irrelevant
once the `.sw` file had been fixed, so making them "ephemeral" worked
very well.  However, with #2540 and #2679 `run` has now been replaced
by `import`, which generates not *runtime* errors but *compile-time*
errors.  Such errors are shown in the REPL console rather than a robot
log, so the original motivation for #1877 is now moot.  The remaining
runtime errors tend to be short (*e.g* "move: There is a mountain in the
way!") and potentially relevant to see in the log history, so making
them ephemeral does not make as much sense.
@byorgey byorgey requested review from kostmo and xsebek March 6, 2026 17:41
@byorgey byorgey added the merge me Trigger the merge process of the Pull request. label Mar 6, 2026
@mergify mergify bot added the queued label Mar 6, 2026
@mergify mergify bot merged commit d6585a5 into main Mar 6, 2026
14 checks passed
@mergify
Copy link
Contributor

mergify bot commented Mar 6, 2026

Merge Queue Status

Rule: default


  • Entered queue2026-03-06 19:55 UTC
  • Checks passed · in-place
  • Merged2026-03-06 19:55 UTC · at 8fff9719f076b9f22b4b59c0ec3f1edc6a3020c2

This pull request spent 5 seconds in the queue, with no time running CI.

Required conditions to merge

@mergify mergify bot deleted the feature/byorgey/show-log-errors branch March 6, 2026 19:55
@mergify mergify bot removed the queued label Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge me Trigger the merge process of the Pull request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error message in debug tutorial is not shown

2 participants