Invert behaviour of the debugger's --ignore-try #666

Closed
opened 2025-02-11 00:07:27 +00:00 by jade · 1 comment
Owner

The debugger catches the wrong things if you use it on nixpkgs because of constant tryEval calls. This sucks. We should just invert the behaviour: make --ignore-try the default and --no-ignore-try the alternative. And maybe print an informational message when we yeet through a tryEval call?

Also, um, why is ignore-try an evaluator setting whereas debugger is a CLI flag? This causes the documentation in man pages to be bad since try-eval is nowhere to be seen.

The debugger catches the wrong things if you use it on nixpkgs because of constant `tryEval` calls. This sucks. We should just invert the behaviour: make `--ignore-try` the default and `--no-ignore-try` the alternative. And maybe print an informational message when we yeet through a tryEval call? Also, um, why is ignore-try an evaluator setting whereas debugger is a CLI flag? This causes the documentation in man pages to be bad since try-eval is nowhere to be seen.
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/3488 ("repl: default to turning off ignore-try")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/3488", "number": 3488, "kind": "commit message"}], "cl_meta": {"3488": {"change_title": "repl: default to turning off ignore-try"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/3488](https://gerrit.lix.systems/c/lix/+/3488) ("repl: default to turning off ignore-try")
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#666
No description provided.