Misleading hint for url-fetch

  • Open
  • quality assurance status badge
Details
3 participants
  • Gábor Boskovits
  • Ludovic Courtès
  • Tobias Geerinckx-Rice
Owner
unassigned
Submitted by
Tobias Geerinckx-Rice
Severity
normal
T
T
Tobias Geerinckx-Rice wrote on 22 Jun 2019 22:23
(address . bug-guix@gnu.org)
87zhm9s72i.fsf@nckx
Guix,

I just encountered the following:

foo.scm:4:2: error: url-fetch: unbound variable
hint: Did you forget `(use-modules (guix build download))'?

Actually importing that module, instead of (guix download), will
cause some other very hard-to-debug error that I can't remember
but coincidentally helped someone fix on #guix the other day.

Now I understand how they got to that bad place.

Kind regards,

T G-R
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXQ6ONQAKCRANsP+IT1Vt
efOOAQCrvRws/NZNl47TGtaeH4q25N8yEnBMcqH0WZ8mImYF8gEAqTvQHiXCxb24
uPQOneVYV7NZHG2CQJq4SD2i4x/YsA8=
=ciSn
-----END PGP SIGNATURE-----

G
G
Gábor Boskovits wrote on 23 Jun 2019 08:18
(name . Tobias Geerinckx-Rice)(address . me@tobias.gr)(address . 36333@debbugs.gnu.org)
CAE4v=piG4PaEsap7Osr07BKXh51Jo-88ezcLkZ2YM363nt9kNA@mail.gmail.com
Hello,

Tobias Geerinckx-Rice <me@tobias.gr> ezt írta (id?pont: 2019. jún. 22.,
Szo, 20:24):

Toggle quote (5 lines)
> Guix,
>
> I just encountered the following:
>
>
I've also seen that.

foo.scm:4:2: error: url-fetch: unbound variable
Toggle quote (13 lines)
> hint: Did you forget `(use-modules (guix build download))'?
>
> Actually importing that module, instead of (guix download), will
> cause some other very hard-to-debug error that I can't remember
> but coincidentally helped someone fix on #guix the other day.
>
> Now I understand how they got to that bad place.
>
> Kind regards,
>
> T G-R
>

Best regards,
g_bor
Attachment: file
L
L
Ludovic Courtès wrote on 24 Jun 2019 21:51
(name . Tobias Geerinckx-Rice)(address . me@tobias.gr)(address . 36333@debbugs.gnu.org)
875zou69tm.fsf@gnu.org
Hello,

Tobias Geerinckx-Rice <me@tobias.gr> skribis:

Toggle quote (9 lines)
> I just encountered the following:
>
> foo.scm:4:2: error: url-fetch: unbound variable
> hint: Did you forget `(use-modules (guix build download))'?
>
> Actually importing that module, instead of (guix download), will cause
> some other very hard-to-debug error that I can't remember but
> coincidentally helped someone fix on #guix the other day.

Oh, bad hint indeed.

Now, the program cannot determine that of the two ‘url-fetch’, only one
makes sense.

Should it search further and propose all the possible options? In
general there won’t be more than a couple of options.

Thanks,
Ludo’.
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 36333@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 36333
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch