GNU bug report logs - #77560
The guix style command deletes #; comments.

Previous Next

Package: guix;

Reported by: Yuval Langer <yuval.langer <at> gmail.com>

Date: Sat, 5 Apr 2025 18:57:03 UTC

Severity: normal

To reply to this bug, email your comments to 77560 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#77560; Package guix. (Sat, 05 Apr 2025 18:57:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Yuval Langer <yuval.langer <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 05 Apr 2025 18:57:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Yuval Langer <yuval.langer <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: The guix style command deletes #; comments.
Date: Sat, 5 Apr 2025 21:56:14 +0300
[ed: this bug report is written in the style of a rant, please do not
take it personally, I just find rant styled prose very funny.  It may
also demonstrate some of my frustration with the bug………]

You know what I hate?  guix style command deleting my #;ed up
exploratory bits of code.  I hate it!

You are at the exploratory stages of a bit of coding, you write one or
two extra version of the same functionality, so you comment them out
with #;, right?  Then just so that things look nicer you guix
style... and then your code is GONE!  It's all GONE!

Maybe put this #; comments deletion functionality behind a flag with a
very visible warning and change the code submission guidelines to
reflect that?

Many thanks,
Yuval Langer.




Information forwarded to bug-guix <at> gnu.org:
bug#77560; Package guix. (Thu, 29 May 2025 12:09:01 GMT) Full text and rfc822 format available.

Message #8 received at 77560 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: 77560 <at> debbugs.gnu.org
Subject: The guix style command deletes #; comments.
Date: Thu, 29 May 2025 14:08:00 +0200
I think this is because READ-WITH-COMMENTS in (guix read-print) 
does not have a clause for reading expressions that start with #;. 
It explicitly handles single line comments, and it knows about 
G-expressions (starting with #), but it does not handle #;, so it 
cannot preserve them.

-- 
Ricardo




This bug report was last modified 17 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.