unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55826: guix pull fails on local channel
@ 2022-06-07  0:20 Kjartan Oli Agustsson
  2022-06-07  6:32 ` Liliana Marie Prikler
  0 siblings, 1 reply; 4+ messages in thread
From: Kjartan Oli Agustsson @ 2022-06-07  0:20 UTC (permalink / raw)
  To: 55826

[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]


I recently installed the full Guix system, and after reading the
sections of the manual about channels I set one up for my personal
modifications to existing packages.  Everything worked fine until I
committed changes to one of those package definitions and re-ran 'guix
pull' which fails with:
> Updating channel 'kjartan' from Git repository at 'file:///home/kjartan/guix-custom'...
> Authenticating channel 'kjartan', commits 3bd6c82 to 6677083 (1 new commits)...
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> #<unknown port>:5:1: unexpected end of input while searching for: )
If I delete the git repository and re-initialize it the pull is
successful, but once I commit any changes to this new repository the
problem re-appears.  Does anyone have any clues as to what could be
wrong, or how I could go about debugging this?

If it helps the channel definition is:
(channel
  (name 'kjartan) 
	(url "file:///home/kjartan/guix-custom")
	(introduction
		 (make-channel-introduction
      	"3bd6c82a5bb588c35ead0458036aac0ef60f166a"
				(openpgp-fingerprint
		    	 "4801 0D71 49C0 1DD6 E5FD  6AC9 D757 2FE3 605E E6B0"))))

-- 
Kjartan Óli Ágústsson

GPG Key fingerprint: 4801 0D71 49C0 1DD6 E5FD  6AC9 D757 2FE3 605E E6B0

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 691 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#55826: guix pull fails on local channel
  2022-06-07  0:20 bug#55826: guix pull fails on local channel Kjartan Oli Agustsson
@ 2022-06-07  6:32 ` Liliana Marie Prikler
  0 siblings, 0 replies; 4+ messages in thread
From: Liliana Marie Prikler @ 2022-06-07  6:32 UTC (permalink / raw)
  To: Kjartan Oli Agustsson, 55826

Am Dienstag, dem 07.06.2022 um 00:20 +0000 schrieb Kjartan Oli
Agustsson:
> 
> I recently installed the full Guix system, and after reading the
> sections of the manual about channels I set one up for my personal
> modifications to existing packages.  Everything worked fine until I
> committed changes to one of those package definitions and re-ran
> 'guix pull' which fails with:
> 
> > Updating channel 'kjartan' from Git repository at
> > 'file:///home/kjartan/guix-custom'...
> > Authenticating channel 'kjartan', commits 3bd6c82 to 6677083 (1 new
> > commits)...
> > ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> > #<unknown port>:5:1: unexpected end of input while searching for: )
> If I delete the git repository and re-initialize it the pull is
> successful, but once I commit any changes to this new repository the
> problem re-appears.  Does anyone have any clues as to what could be
> wrong, or how I could go about debugging this?
Chances are that the changes you're trying to commit are ill-formed. 
Use an editor that highlights brackets such as Emacs to find out where
you are missing one.  If it's in the middle of the file, marking the
whole file and pressing TAB once should make the fault visible – if
it's towards the end, enter closing parentheses until they are no
longer matched up with anything prior.

Cheers




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#55826: guix pull fails on local channel
  2022-06-07  9:34 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2022-06-07 22:10   ` Kjartan Oli Agustsson
  0 siblings, 0 replies; 4+ messages in thread
From: Kjartan Oli Agustsson @ 2022-06-07 22:10 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 55826

[-- Attachment #1: Type: text/plain, Size: 1683 bytes --]


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

>> If I delete the git repository and re-initialize it the pull is
>> successful, but once I commit any changes to this new repository the
>> problem re-appears.
>
> It must be some specific change/file, not any change.

I just re-initialized the git repo, and changed the channel introduction
to use the initial commit on the new repo.  A 'guix pull' ran just fine.
Then I committed a change that added a single newline at the end of a
file, the error came back.

> A quick and dirty
>
>  ~/guix-custom$ guix repl -L. <each/scheme/file/in/turn.scm
>
> might be enough: Guile will print all kinds of things to ignore, but
> if you see the same error about searching for ), you'll know that the
> problem is in that file.

I tried this, the only output I got was:
;;; note: source file ./kjartan/packages/emacs.scm
;;;       newer than compiled /gnu/store/bgnnzx7qsiy22yggh3a0q4i0932n6hl7-kjartan/lib/guile/3.0/site-ccache/kjartan/packages/emacs.go

> But really…
>
>> Does anyone have any clues as to what could be
>> wrong, or how I could go about debugging this?
>
> …use an editor (like emacs, but other fine and graphical editors are
> available) that balances or at least highlights brackets. Manually
> counting them is madness and not how anybody writes Lisps in real
> life.

I am well aware of this, everything I have written in every file of the
channel has been written in Emacs, which does not report any unmatched
'(' anywhere in either of the two files I currently have.

-- 
Kjartan Óli Ágústsson

GPG Key fingerprint: 4801 0D71 49C0 1DD6 E5FD  6AC9 D757 2FE3 605E E6B0

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 691 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#55826: guix pull fails on local channel
       [not found] <mailman.8438.1654578063.1231.bug-guix@gnu.org>
@ 2022-06-07  9:34 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2022-06-07 22:10   ` Kjartan Oli Agustsson
  0 siblings, 1 reply; 4+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2022-06-07  9:34 UTC (permalink / raw)
  To: kjartanoli; +Cc: 55826

[-- Attachment #1: Type: text/plain, Size: 1907 bytes --]

Hi!

Kjartan Oli Agustsson 写道:
>> Updating channel 'kjartan' from Git repository at 
>> 'file:///home/kjartan/guix-custom'...
>> Authenticating channel 'kjartan', commits 3bd6c82 to 6677083 (1 
>> new commits)...
>> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
>> #<unknown port>:5:1: unexpected end of input while searching 
>> for: )

Guile errors are quite literal-minded, most of the time.  All the 
world's a string, and parsing it an adventure.

This error means that you have a missing or mismatched closing ) 
somewhere, or didn't close a " so Guile doesn't see it, or…

It's impossible to say more without seeing the code.

> If I delete the git repository and re-initialize it the pull is
> successful, but once I commit any changes to this new repository 
> the
> problem re-appears.

It must be some specific change/file, not any change.

A quick and dirty

  ~/guix-custom$ guix repl -L. <each/scheme/file/in/turn.scm

might be enough: Guile will print all kinds of things to ignore, 
but if you see the same error about searching for ), you'll know 
that the problem is in that file.

But really…

> Does anyone have any clues as to what could be
> wrong, or how I could go about debugging this?

…use an editor (like emacs, but other fine and graphical editors 
are available) that balances or at least highlights brackets. 
Manually counting them is madness and not how anybody writes Lisps 
in real life.

> If it helps the channel definition is:
> (channel
>   (name 'kjartan) 
> 	(url "file:///home/kjartan/guix-custom")
> 	(introduction
> 		 (make-channel-introduction
>       	"3bd6c82a5bb588c35ead0458036aac0ef60f166a"
> 				(openpgp-fingerprint
> 		    	 "4801 0D71 49C0 1DD6 E5FD  6AC9 D757 2FE3 
> 605E E6B0"))))

This looks fine, but I was unable to clone the repository. :-)

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-07 23:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-07  0:20 bug#55826: guix pull fails on local channel Kjartan Oli Agustsson
2022-06-07  6:32 ` Liliana Marie Prikler
     [not found] <mailman.8438.1654578063.1231.bug-guix@gnu.org>
2022-06-07  9:34 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-06-07 22:10   ` Kjartan Oli Agustsson

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).