On Mon, Nov 06, 2017 at 03:12:11PM -0500, myglc2 wrote:
Toggle quote (9 lines)
> My system recently broke when I did an upgrade. I reported what I> thought was a bug (bug#29072) but it turned out that, because qemu> package code had been moved, my system configuration had become broken> ;-(> > Confronted with my situation, helpful developers said "The package code> was moved in commit xxx" (Leo) and "maybe you have a mistake in your> config (Efraim)."
I'm sorry that my comment was not enough on its own!
Toggle quote (6 lines)
> Once I understood what had happened I wondered, "Gee, I have been using> guix for 18 months so why didn't I figure this out myself." ;-)> > But a less committed user might say, "Wow, Guix breaks at random, error> messages are hard to understand, and support is difficult." :-(
Good point.
Toggle quote (3 lines)
> ISTM this raises issues and questions about Guix configuration> usability:
Indeed.
Toggle quote (4 lines)
> Guix config errors are reported as raw scheme errors which are not> user-friendly, except, perhaps, to guile users ;-) Could we improve this> situation by adding config troubleshooting guidance to the doc?
Yes, we do try to add helpful error messages, although obviously thereis a lot more work to be done.
As far as I can tell, the issue was related to the fact that you areusing Guix by building it from source and re-using the same builddirectory, which may contain stale compiled .go files. In this case,there was a leftover qemu.go, which shadowed the correct file,virtualization.go.
This is a useful development technique but not how Guix is supposed tobe deployed and updated. `guix pull && guix package --upgrade` is stillwhat we recommend and support.
If you want to deploy Guix by building it "by hand", I recommend using afresh Git checkout and directory each time you build it. That way, youcan be sure to avoid this class of error (stale module references inleftover .go files), which is well-known to the seasoned Guix developersbut totally confounding for everyone else.
Toggle quote (9 lines)
> Guix config errors consume meaningful amounts of user and support> effort. I say this because a) it took quite a few iterations to figure> out what was wrong in my situation, and b) google search for '"no code> for module" guix' finds 613 hits, which will no doubt grow linearly with> number of Guix users unless something is done. So I wonder, could an> error handler that translates into more user-friendly terms reduce user> frustration, increase the rate of user self help, reduce support load,> and effectively pay for itself?
That would be awesome!
Toggle quote (4 lines)
> Are the current Guix config errors usable by the average GNU/Linux> distribution user? If not, don't they need to be improved before we call> it 1.0?
Based on how much time it's possible to spend on IRC helping people, I'dsay there is lots of room for improvement in this area.
Toggle quote (2 lines)
> Does this mean that package code must not be moved after 1.0?
A couple thoughts... it would be nice if the GuixSD configurationexample templates used a filename agnostic method of resolving moduleimports. I'm not a strong enough Schemer to evaluate the situation orsuggest a solution, but I think that the filenames should not berelevant at that level. Perhaps one could use'specification->package+output',as demonstrated in the documentation of package manifests:https://www.gnu.org/software/guix/manual/html_node/Invoking-guix-package.html Toggle quote (2 lines)
> Finally: Should I close bug#29072? ;-)
The problem of the missing QEMU patch is resolved. The broader issue ofconfusing error messages could be continued here, or elsewhere. It's upto you :)