Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-09-16 | fixup! Add a default value for the settings | regnat | |
2020-08-31 | Merge remote-tracking branch 'origin/master' into markdown | Eelco Dolstra | |
2020-08-25 | Fix tests | Eelco Dolstra | |
2020-08-24 | Fix tests | Eelco Dolstra | |
2020-07-26 | libutil/logging: extend `internal-json` logger to make it more machine-readable | Maximilian Bosch | |
The new error-format is pretty nice from a UX point-of-view, however it's fairly hard to parse the output e.g. for editor plugins such as vim-ale[1] that use `nix-instantiate --parse` to determine syntax errors in Nix expression files. This patch extends the `internal-json` logger by adding the fields `line`, `column` and `file` to easily locate an error in a file and the field `raw_msg` which contains the error-message itself without code-lines and additional helpers. An exemplary output may look like this: ``` [nix-shell]$ ./inst/bin/nix-instantiate ~/test.nix --log-format minimal {"action":"msg","column":1,"file":"/home/ma27/test.nix","level":0,"line":4,"raw_msg":"syntax error, unexpected IF, expecting $end","msg":"<full error-msg with code-lines etc>"} ``` [1] https://github.com/dense-analysis/ale | |||
2020-07-06 | revamp trace code and test | Ben Burdette | |
2020-07-02 | move showTrace to new loggerSettings | Ben Burdette | |
2020-07-01 | spacing | Ben Burdette | |
2020-07-01 | non-pos trace test | Ben Burdette | |
2020-06-30 | fix tests with the 'from string' change | Ben Burdette | |
2020-06-30 | Merge branch 'master' into add-trace | Ben Burdette | |
2020-06-30 | invalid pos check | Ben Burdette | |
2020-06-29 | showTrace flag in loggers | Ben Burdette | |
2020-06-25 | showTrace flag for ErrorInfo; showTrace test. | Ben Burdette | |
2020-06-24 | add trace test; error formatting refinements | Ben Burdette | |
2020-06-23 | use plain errPos instead of nixCode; fix tests | Ben Burdette | |
2020-06-23 | re-add Pos origin in tests | Ben Burdette | |
2020-06-22 | with normaltxt, elide yellow color code instead of canceling it; use ↵ | Ben Burdette | |
normaltxt on plain_string hintfmt | |||
2020-06-19 | tidying up | Ben Burdette | |
2020-06-19 | fmt -> hintfmt test | Ben Burdette | |
2020-06-19 | too few, too many args | Ben Burdette | |
2020-06-19 | add hintfmt test | Ben Burdette | |
2020-06-19 | Merge remote-tracking branch 'upstream/master' into no-hash-type-unknown | John Ericson | |
2020-06-19 | Merge pull request #3669 from gilligan/add-compression-tests | Eelco Dolstra | |
Add compression unit tests | |||
2020-06-18 | Revert the `enum struct` change | John Ericson | |
Not a regular git revert as there have been many merges and things. | |||
2020-06-18 | Merge branch 'enum-class' into no-hash-type-unknown | John Ericson | |
2020-06-18 | Merge remote-tracking branch 'upstream/master' into enum-class | John Ericson | |
2020-06-16 | Fix logging unit tests | Tobias Pflug | |
2020-06-15 | Merge branch 'errors-phase-2' of https://github.com/bburdette/nix | Eelco Dolstra | |
2020-06-12 | Merge pull request #3670 from gilligan/add-pool-tests | Eelco Dolstra | |
Add tests for pool.hh | |||
2020-06-11 | Merge remote-tracking branch 'upstream/master' into errors-phase-2 | Ben Burdette | |
2020-06-10 | Add tests for pool.hh | Tobias Pflug | |
2020-06-08 | Add compression unit tests | Tobias Pflug | |
2020-06-07 | set verbosity levels | Ben Burdette | |
2020-06-06 | Add tests for logging.hh | Tobias Pflug | |
2020-06-03 | libutils/hash: remove default encoding | zimbatm | |
This will make it easier to reason about the hash encoding and switch to SRI everywhere where possible. | |||
2020-06-02 | Remove `hashingWithUnknownAlgoExits` | John Ericson | |
A valid hash type must be provided now. The hash itself can still be invalid, but that doesn't cause an `abort()`. | |||
2020-06-02 | Merge remote-tracking branch 'upstream/master' into no-hash-type-unknown | John Ericson | |
2020-06-02 | Remove `HashType::Unknown` | John Ericson | |
Instead, `Hash` uses `std::optional<HashType>`. In the future, we may also make `Hash` itself require a known hash type, encoraging people to use `std::optional<Hash>` instead. | |||
2020-06-02 | src/libutil/tests/lru-cache.cc: Check erase() | Eelco Dolstra | |
Co-authored-by: James Lee <jbit@jbit.net> | |||
2020-05-31 | Add tests for lru-cache.hh | Tobias Pflug | |
2020-05-28 | Fixing the result of merge | Carlo Nucera | |
2020-05-27 | tests/config.cc: add tests for Config::applyConfig | Andreas Rammhold | |
2020-05-27 | Add unit tests for config.cc | Andreas Rammhold | |
2020-05-27 | Merge pull request #3621 from gilligan/add-json-tests | Eelco Dolstra | |
Add unit tests for "json.hh" | |||
2020-05-27 | Merge pull request #3625 from gilligan/xml-writer-tests | Eelco Dolstra | |
Add unit tests for xml-writer | |||
2020-05-25 | Add unit tests for xml-writer | Tobias Pflug | |
2020-05-25 | Add unit tests for "json.hh" | Tobias Pflug | |
2020-05-25 | Add unit tests for hashing functions | Tobias Pflug | |
2020-05-20 | Add unit testes for url.cc | Tobias Pflug | |
This adds tests for - parseURL - percentDecode - decodeQuery |