nix-super/src/libutil
Rebecca Turner 5cb98095ba
Remove some blank lines from stack traces
This keeps hint messages, source location information, and source code
snippets grouped together, while making stack traces shorter (so that
more stack frames can be viewed on the same terminal).

Before:

    error:
           … while evaluating the attribute 'body'

             at /Users/wiggles/nix/tests/functional/lang/eval-fail-assert.nix:4:3:

                3|
                4|   body = x "x";
                 |   ^
                5| }

           … from call site

             at /Users/wiggles/nix/tests/functional/lang/eval-fail-assert.nix:4:10:

                3|
                4|   body = x "x";
                 |          ^
                5| }

           … while calling 'x'

             at /Users/wiggles/nix/tests/functional/lang/eval-fail-assert.nix:2:7:

                1| let {
                2|   x = arg: assert arg == "y"; 123;
                 |       ^
                3|

           error: assertion '(arg == "y")' failed

           at /Users/wiggles/nix/tests/functional/lang/eval-fail-assert.nix:2:12:

                1| let {
                2|   x = arg: assert arg == "y"; 123;
                 |            ^
                3|

After:

    error:
           … while evaluating the attribute 'body'
             at /Users/wiggles/nix/tests/functional/lang/eval-fail-assert.nix:4:3:
                3|
                4|   body = x "x";
                 |   ^
                5| }

           … from call site
             at /Users/wiggles/nix/tests/functional/lang/eval-fail-assert.nix:4:10:
                3|
                4|   body = x "x";
                 |          ^
                5| }

           … while calling 'x'
             at /Users/wiggles/nix/tests/functional/lang/eval-fail-assert.nix:2:7:
                1| let {
                2|   x = arg: assert arg == "y"; 123;
                 |       ^
                3|

           error: assertion '(arg == "y")' failed
           at /Users/wiggles/nix/tests/functional/lang/eval-fail-assert.nix:2:12:
                1| let {
                2|   x = arg: assert arg == "y"; 123;
                 |            ^
                3|
2023-12-15 23:57:26 -08:00
..
args Fix nix shebang interaction with #8131 overhaul completions 2023-11-07 13:24:01 -05:00
abstract-setting-to-json.hh Make toJSONObject const 2023-11-06 16:00:25 +01:00
ansicolor.hh Finish converting existing comments for internal API docs (#8146) 2023-04-07 13:55:28 +00:00
archive.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
archive.hh Make ParseSink a bit better 2023-11-01 02:36:43 -04:00
args.cc Renamed HashFormat::Base32 to HashFormat::Nix32 2023-12-06 23:43:42 +01:00
args.hh Renamed HashFormat::Base32 to HashFormat::Nix32 2023-12-06 23:43:42 +01:00
callback.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
canon-path.cc Cleanup 2023-11-14 14:47:17 +01:00
canon-path.hh CanonPath: Support std::hash 2023-12-06 13:45:59 +01:00
cgroup.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
cgroup.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
chunked-vector.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
closure.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
comparator.hh Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
compression.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
compression.hh Rename and protect BufferedSink::write 2023-04-07 09:21:50 +02:00
compute-levels.cc Add x86_64 compute levels as additional system types 2021-02-22 09:11:15 +01:00
compute-levels.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
config-impl.hh Fix moves in appendOrSet 2023-11-06 16:00:25 +01:00
config.cc Merge pull request #9233 from bouk/bouk/apply-config-inner 2023-12-01 08:23:32 -05:00
config.hh Merge pull request #9233 from bouk/bouk/apply-config-inner 2023-12-01 08:23:32 -05:00
current-process.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
current-process.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
environment-variables.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
environment-variables.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
error.cc Remove some blank lines from stack traces 2023-12-15 23:57:26 -08:00
error.hh traces: Do not print unknown location 2023-09-03 13:44:32 +02:00
experimental-features.cc reword description for the fetch-tree experimental feature 2023-12-04 16:42:32 +01:00
experimental-features.hh Add the MountedSSHStore experimental feature 2023-11-21 13:16:46 -05:00
file-descriptor.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
file-descriptor.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
file-system.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
file-system.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
finally.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
fmt.hh fmt(): Handle std::string_view 2023-11-01 16:33:22 +01:00
fs-sink.cc Make ParseSink a bit better 2023-11-01 02:36:43 -04:00
fs-sink.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
git.cc HashType: Rename to HashAlgorithm 2023-12-06 23:43:42 +01:00
git.hh HashType: Rename to HashAlgorithm 2023-12-06 23:43:42 +01:00
hash.cc Renamed HashFormat::Base32 to HashFormat::Nix32 2023-12-06 23:43:42 +01:00
hash.hh Renamed HashFormat::Base32 to HashFormat::Nix32 2023-12-06 23:43:42 +01:00
hilite.cc Fix incorrect comment in hiliteMatches 2022-06-05 20:30:18 +02:00
hilite.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
json-impls.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
json-utils.cc Fix derivation load assertion errors 2023-08-05 01:34:30 +02:00
json-utils.hh fix: nlohmann::adl_serializer for std::optional (#9147) 2023-11-30 01:26:39 +00:00
local.mk Overhaul completions, redo #6693 (#8131) 2023-10-23 15:03:11 +02:00
logging.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
logging.hh Show Git fetch progress 2023-11-15 13:57:20 +01:00
lru-cache.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
memory-source-accessor.cc Create MemorySink 2023-11-10 11:02:37 -05:00
memory-source-accessor.hh Create MemorySink 2023-11-10 11:02:37 -05:00
monitor-fd.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
namespaces.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
namespaces.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
pool.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
posix-source-accessor.cc PosixSourceAccessor: Cache lstat() calls 2023-12-06 13:55:54 +01:00
posix-source-accessor.hh PosixSourceAccessor: Cache lstat() calls 2023-12-06 13:55:54 +01:00
processes.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
processes.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
ref.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
references.cc Renamed HashFormat::Base32 to HashFormat::Nix32 2023-12-06 23:43:42 +01:00
references.hh HashType: Rename to HashAlgorithm 2023-12-06 23:43:42 +01:00
regex-combinators.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
serialise.cc Fix bad_format_string error when builder stdout contains % 2023-11-20 15:41:38 +01:00
serialise.hh Git object hashing in libutil 2023-11-10 11:02:44 -05:00
signals.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
signals.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
source-accessor.cc HashType: Rename to HashAlgorithm 2023-12-06 23:43:42 +01:00
source-accessor.hh Clarify SourceAccessor methods should never implicitly follow symlinks 2023-12-08 20:00:47 -05:00
split.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
suggestions.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
suggestions.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
sync.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
tarfile.cc fix(libutil/tarfile): add option to libarchive so it behaves correctly with AppleDouble files 2023-12-07 11:35:15 +01:00
tarfile.hh TarArchive: Remove a duplicate constant and increase the buffer size 2023-04-25 16:43:10 +02:00
terminal.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
terminal.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
thread-pool.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
thread-pool.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
topo-sort.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
types.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00
unix-domain-socket.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
unix-domain-socket.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
url-parts.hh schemeRegex -> schemeNameRegex 2023-12-12 17:25:20 +01:00
url.cc isValidSchemeName: Use regex 2023-12-12 17:46:34 +01:00
url.hh isValidSchemeName: Add function 2023-12-11 12:12:43 +01:00
users.cc Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
users.hh Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
util.cc nix: Reserve shebang line syntax and only parse double backtick quotes 2023-11-07 13:24:01 -05:00
util.hh nix: Reserve shebang line syntax and only parse double backtick quotes 2023-11-07 13:24:01 -05:00
variant-wrapper.hh Fixing #7479 2023-08-18 11:44:00 -04:00
xml-writer.cc xml-writer: Remove std aliases 2022-02-25 16:13:02 +01:00
xml-writer.hh Ensure all headers have #pragma once and are in API docs 2023-03-31 23:19:44 -04:00