error: caught non-lix exception for bad inline toml machine specs #1083

Open
opened 2025-12-22 15:34:55 +00:00 by pennae · 0 comments
Owner

Describe the bug

nix build -j0 -f test.nix --builders "version = 1\nmachines.foo.uri = snafu"

fails with

error: caught non-lix exception: (unknown):-1: failed: std::exception: error: bad machine specification: failed to convert column #3 in a row: 'version = 1\nmachines.foo.uri = snafu' to 'unsigned int'
       stack: 555555816720

Expected behavior

a better error message. ignoring the builders entirely may be an option too, but a better message is mandatory

nix --version output

nix (Lix, like Nix) 2.95.0-pre20251215-dev_5376bbe

## Describe the bug ``` nix build -j0 -f test.nix --builders "version = 1\nmachines.foo.uri = snafu" ``` fails with ``` error: caught non-lix exception: (unknown):-1: failed: std::exception: error: bad machine specification: failed to convert column #3 in a row: 'version = 1\nmachines.foo.uri = snafu' to 'unsigned int' stack: 555555816720 ``` ## Expected behavior a better error message. ignoring the builders entirely may be an option too, but a better message is mandatory ## `nix --version` output `nix (Lix, like Nix) 2.95.0-pre20251215-dev_5376bbe`
Sign in to join this conversation.
No milestone
No assignees
1 participant
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#1083
No description provided.