diagnostics, ui: Adjust to 'read-error' and 'syntax-error' in Guile 3.0.6.
authorLudovic Courtès <ludo@gnu.org>
Wed, 28 Apr 2021 22:38:03 +0000 (00:38 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 28 Apr 2021 23:22:04 +0000 (01:22 +0200)
commit524c9800afb433cc474132185d8e37f72004adb3
tree019787ee7991d95e92e58f0f3e2f30224c821ab9
parent0ce1b281511bd1a9505f416ec7ff1be3c3d7a243
diagnostics, ui: Adjust to 'read-error' and 'syntax-error' in Guile 3.0.6.

* guix/diagnostics.scm (source-properties->location): Add clause for
vectors.
* guix/ui.scm (report-load-error): Tweak 'read-error' handling for 3.0.6.
* tests/guix-package.sh: Relax regexp for the "unbound variable"
diagnostic check.
* tests/guix-system.sh: Adjust "missing closing paren" check for 3.0.6.
* tests/records.scm (location-alist): New procedure.
("define-record-type* & wrong field specifier")
("define-record-type* & wrong field specifier, identifier")
("define-record-type* & duplicate initializers"): Use it.
guix/diagnostics.scm
guix/ui.scm
tests/guix-package.sh
tests/guix-system.sh
tests/records.scm