[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can we increase the print width/column in daemon backtraces
From: |
Ricardo Wurmus |
Subject: |
Re: Can we increase the print width/column in daemon backtraces |
Date: |
Wed, 27 May 2020 12:43:17 +0200 |
User-agent: |
mu4e 1.4.4; emacs 26.3 |
Marius Bakke <address@hidden> writes:
> Pierre Neidhardt <address@hidden> writes:
>
>> Marius Bakke <address@hidden> writes:
>>
>>> You can run it directly from a shell, and/or attach a debugger.
>>
>> Thanks for the tip.
>>
>> Any idea how to attach Geiser to it?
>
> The daemon is a C++ program, so I'm not sure that would work ...
>
> If you are trying to increase the trace width within a build expression,
> you probably just need to (setenv "COLUMNS" "200") in the builder.
A daemon built with this change prevents truncation in the Guile
builders (without having to modify the Guile builders):
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc
index 29266f1dd6..94609e07f5 100644
--- a/nix/libstore/build.cc
+++ b/nix/libstore/build.cc
@@ -2247,6 +2247,7 @@ void DerivationGoal::runChild()
Strings envStrs;
foreach (Environment::const_iterator, i, env)
envStrs.push_back(rewriteHashes(i->first + "=" + i->second,
rewritesToTmp));
+ envStrs.push_back("COLUMNS=1024");
/* If we are running in `build-users' mode, then switch to the
user we allocated above. Make sure that we drop all root
--
Ricardo
- Re: Can we increase the print width/column in daemon backtraces, (continued)
Re: Can we increase the print width/column in daemon backtraces, Pierre Neidhardt, 2020/05/25
- Re: Can we increase the print width/column in daemon backtraces, Marius Bakke, 2020/05/25
- Re: Can we increase the print width/column in daemon backtraces, Pierre Neidhardt, 2020/05/26
- Re: Can we increase the print width/column in daemon backtraces, Marius Bakke, 2020/05/26
- Re: Can we increase the print width/column in daemon backtraces, Pierre Neidhardt, 2020/05/26
- Re: Can we increase the print width/column in daemon backtraces,
Ricardo Wurmus <=
- Re: Can we increase the print width/column in daemon backtraces, Pierre Neidhardt, 2020/05/27
- Re: Can we increase the print width/column in daemon backtraces, Ludovic Courtès, 2020/05/28
- Re: Can we increase the print width/column in daemon backtraces, Pierre Neidhardt, 2020/05/29