* bug#25719: "guix package -i" exception should be a normal error message
@ 2017-02-14 8:41 Danny Milosavljevic
2020-12-01 18:28 ` zimoun
0 siblings, 1 reply; 6+ messages in thread
From: Danny Milosavljevic @ 2017-02-14 8:41 UTC (permalink / raw)
To: 25719
When I have network problems sometimes I get a backtrace like this:
...
substitute: 1727: 3 [%start-stack load-stack #<procedure a97d60 at ice-9/boot-9.scm:4047:10 ()>]
substitute: 1732: 2 [#<procedure a99b70 ()>]
substitute: In unknown file:
substitute: ?: 1 [primitive-load "/gnu/store/175nlv448nk5kagwwl3zyy2w4726qfz6-guix-0.12.0-4.d9da/bin/.guix-real"]
substitute: In guix/ui.scm:
substitute: 1228: 0 [run-guix-command substitute "--query"]
substitute:
substitute: guix/ui.scm:1228:8: In procedure run-guix-command:
substitute: guix/ui.scm:1228:8: Throw to key `bad-response' with args `("Bad Response-Line: ~s" (""))'.
It might make sense to
(a) convert that into a normal runtime error message and
(b) Fallback to substituteless building (maybe only for this thing).
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#25719: "guix package -i" exception should be a normal error message
2017-02-14 8:41 bug#25719: "guix package -i" exception should be a normal error message Danny Milosavljevic
@ 2020-12-01 18:28 ` zimoun
2020-12-02 13:35 ` Danny Milosavljevic
0 siblings, 1 reply; 6+ messages in thread
From: zimoun @ 2020-12-01 18:28 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: 25719
Hi Danny,
This old bug #25719 is about exception and error message. See:
<http://issues.guix.gnu.org/issue/25719>
On Tue, 14 Feb 2017 at 09:41, Danny Milosavljevic <dannym@scratchpost.org> wrote:
> When I have network problems sometimes I get a backtrace like this:
First, do you still experiment such behaviour? Since it 3 years old.
> ...
> substitute: 1727: 3 [%start-stack load-stack #<procedure a97d60 at ice-9/boot-9.scm:4047:10 ()>]
> substitute: 1732: 2 [#<procedure a99b70 ()>]
> substitute: In unknown file:
> substitute: ?: 1 [primitive-load "/gnu/store/175nlv448nk5kagwwl3zyy2w4726qfz6-guix-0.12.0-4.d9da/bin/.guix-real"]
> substitute: In guix/ui.scm:
> substitute: 1228: 0 [run-guix-command substitute "--query"]
> substitute:
> substitute: guix/ui.scm:1228:8: In procedure run-guix-command:
> substitute: guix/ui.scm:1228:8: Throw to key `bad-response' with args `("Bad Response-Line: ~s" (""))'.
>
> It might make sense to
>
> (a) convert that into a normal runtime error message and
What do you mean?
> (b) Fallback to substituteless building (maybe only for this thing).
Is it not the case currently?
All the best,
simon
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#25719: "guix package -i" exception should be a normal error message
2020-12-01 18:28 ` zimoun
@ 2020-12-02 13:35 ` Danny Milosavljevic
2020-12-14 13:11 ` zimoun
2021-03-24 21:57 ` zimoun
0 siblings, 2 replies; 6+ messages in thread
From: Danny Milosavljevic @ 2020-12-02 13:35 UTC (permalink / raw)
To: zimoun; +Cc: 25719
[-- Attachment #1: Type: text/plain, Size: 2060 bytes --]
Hi zimoun,
On Tue, 01 Dec 2020 19:28:12 +0100
zimoun <zimon.toutoune@gmail.com> wrote:
> This old bug #25719 is about exception and error message. See:
>
> <http://issues.guix.gnu.org/issue/25719>
>
> On Tue, 14 Feb 2017 at 09:41, Danny Milosavljevic <dannym@scratchpost.org> wrote:
> > When I have network problems sometimes I get a backtrace like this:
>
> First, do you still experiment such behaviour? Since it 3 years old.
I haven't seen this particular exception in a long time. I cannot tell whether
the actual usability has been fixed, though--it could be that only the servers
are more reliable and this code path is thus not currently being entered.
> > substitute: 1727: 3 [%start-stack load-stack #<procedure a97d60 at ice-9/boot-9.scm:4047:10 ()>]
> > substitute: 1732: 2 [#<procedure a99b70 ()>]
> > substitute: In unknown file:
> > substitute: ?: 1 [primitive-load "/gnu/store/175nlv448nk5kagwwl3zyy2w4726qfz6-guix-0.12.0-4.d9da/bin/.guix-real"]
> > substitute: In guix/ui.scm:
> > substitute: 1228: 0 [run-guix-command substitute "--query"]
> > substitute:
> > substitute: guix/ui.scm:1228:8: In procedure run-guix-command:
> > substitute: guix/ui.scm:1228:8: Throw to key `bad-response' with args `("Bad Response-Line: ~s" (""))'.
> >
> > It might make sense to
> >
> > (a) convert that into a normal runtime error message and
>
> What do you mean?
The above is an exception.
In this case the download failed--and unfortunately that is a completely normal
thing on the internet. Therefore, that is not something you'd use an exception
for.
There is no added information that could help the user in the exception.
For example it doesn't list the URL--the one thing that would actually help.
> > (b) Fallback to substituteless building (maybe only for this thing).
>
> Is it not the case currently?
No, I'm pretty sure I had to manually specify "--fallback" like a week ago--otherwise
it would not fallback to building without substitutes, but it would just fail.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#25719: "guix package -i" exception should be a normal error message
2020-12-02 13:35 ` Danny Milosavljevic
@ 2020-12-14 13:11 ` zimoun
2021-03-24 21:57 ` zimoun
1 sibling, 0 replies; 6+ messages in thread
From: zimoun @ 2020-12-14 13:11 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: 25719
Hi Danny
On Wed, 02 Dec 2020 at 14:35, Danny Milosavljevic <dannym@scratchpost.org> wrote:
>> > substitute: 1727: 3 [%start-stack load-stack #<procedure a97d60 at ice-9/boot-9.scm:4047:10 ()>]
>> > substitute: 1732: 2 [#<procedure a99b70 ()>]
>> > substitute: In unknown file:
>> > substitute: ?: 1 [primitive-load "/gnu/store/175nlv448nk5kagwwl3zyy2w4726qfz6-guix-0.12.0-4.d9da/bin/.guix-real"]
>> > substitute: In guix/ui.scm:
>> > substitute: 1228: 0 [run-guix-command substitute "--query"]
>> > substitute:
>> > substitute: guix/ui.scm:1228:8: In procedure run-guix-command:
>> > substitute: guix/ui.scm:1228:8: Throw to key `bad-response' with args `("Bad Response-Line: ~s" (""))'.
>> >
>> > It might make sense to
>> >
>> > (a) convert that into a normal runtime error message and
>>
>> What do you mean?
>
> The above is an exception.
>
> In this case the download failed--and unfortunately that is a completely normal
> thing on the internet. Therefore, that is not something you'd use an exception
> for.
>
> There is no added information that could help the user in the exception.
> For example it doesn't list the URL--the one thing that would actually help.
If I understand correctly, instead of the backtrace you would like a
message captured by the exception, right?
All the best,
simon
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#25719: "guix package -i" exception should be a normal error message
2020-12-02 13:35 ` Danny Milosavljevic
2020-12-14 13:11 ` zimoun
@ 2021-03-24 21:57 ` zimoun
2021-03-24 22:23 ` Danny Milosavljevic
1 sibling, 1 reply; 6+ messages in thread
From: zimoun @ 2021-03-24 21:57 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: 25719
Hi Danny,
On Wed, 02 Dec 2020 at 14:35, Danny Milosavljevic <dannym@scratchpost.org> wrote:
> On Tue, 01 Dec 2020 19:28:12 +0100
> zimoun <zimon.toutoune@gmail.com> wrote:
>
>> This old bug #25719 is about exception and error message. See:
>>
>> <http://issues.guix.gnu.org/issue/25719>
>>
>> On Tue, 14 Feb 2017 at 09:41, Danny Milosavljevic <dannym@scratchpost.org> wrote:
>> > When I have network problems sometimes I get a backtrace like this:
>>
>> First, do you still experiment such behaviour? Since it 3 years old.
>
> I haven't seen this particular exception in a long time. I cannot tell whether
> the actual usability has been fixed, though--it could be that only the servers
> are more reliable and this code path is thus not currently being entered.
Therefore, I am in favor to close it. And maybe reopen it or open
another one it happens again. WDYT?
Cheers,
simon
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-03-24 22:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-14 8:41 bug#25719: "guix package -i" exception should be a normal error message Danny Milosavljevic
2020-12-01 18:28 ` zimoun
2020-12-02 13:35 ` Danny Milosavljevic
2020-12-14 13:11 ` zimoun
2021-03-24 21:57 ` zimoun
2021-03-24 22:23 ` Danny Milosavljevic
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.