Subject: bug#57093: closed (Re: bug#57093: 'guix style --whole-file' hangs indefinitely if parenthesis is unmatched)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 10 Aug 2022 14:57:01 +0000

Your bug report

#57093: 'guix style --whole-file' hangs indefinitely if parenthesis is unmatched

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
57093: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57093
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#57093: 'guix style --whole-file' hangs indefinitely if parenthesis is unmatched
From: Ludovic Courtès <[email-masked]>
To: Mohammed AMAR-BENSABER <[email-masked]>
Cc: [email-masked]
Date: Wed, 10 Aug 2022 16:56:25 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Mohammed,

Mohammed AMAR-BENSABER <[email-masked]> skribis:

> guix style --whole-file package.scm hangs indefinitely if parenthesis is 
> unmatched. Relevant commit a15542d26df42dabdb5e2f76d150ae200230c3b0.

Oops, fixed in ebda12e1d2c64480bb7d5977e580d8b2eabeb503:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix style -f /tmp/t.scm
/tmp/t.scm:25:0: error: unexpected end of file
hint: Did you forget a closing parenthesis?
--8<---------------cut here---------------end--------------->8---

Thanks for your report!

Ludo’.

Subject: 'guix style --whole-file' hangs indefinitely if parenthesis is unmatched
From: Mohammed AMAR-BENSABER <[email-masked]>
To: [email-masked]
Date: Tue, 09 Aug 2022 23:25:34 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

guix style --whole-file package.scm hangs indefinitely if parenthesis is 
unmatched. Relevant commit a15542d26df42dabdb5e2f76d150ae200230c3b0.

Here is an example package definition with missing a parenthesis. 

(define-public vim-asyncrun
  (package
    (name "vim-asyncrun")
    (version "2.8.6")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                     (url "https://github.com/skywind3000/asyncrun.vim")
                     (commit version)))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "11zcw0sll6qg6ha0rr6n1cw5v73azvf7ycwn9lgiwa5cj7rrqjf4"))))
    (build-system copy-build-system)
    (arguments
     '(#:install-plan
       '(("plugin" "share/vim/vimfiles/")
         ("doc/" "share/vim/vimfiles/doc" #:include ("asyncrun.txt")))))
    (home-page "https://github.com/skywind3000/asyncrun.vim")
    (synopsis "Run Async Shell Commands in Vim")
    (description "This plugin takes the advantage of new APIs in Vim 8 (and
NeoVim) to enable you to run shell commands in background and read output in 
the
quickfix window in realtime.")
    (license license:expat))

-- 
Mohammed 'Renken' AMAR-BENSABER