* Cryptic error messages: Bug in guile?
@ 2018-11-13 1:35 swedebugia
2018-11-13 1:44 ` brettg
2018-11-13 1:48 ` Alex Vong
0 siblings, 2 replies; 4+ messages in thread
From: swedebugia @ 2018-11-13 1:35 UTC (permalink / raw)
To: guile-user
Hi
I try to package for guix.
Sometimes I forget a parens somewhere.
When I invoke make in the guix source tree the parens error will be
reported as any other kind of error. (unbound variable, package not
found, etc)
I would like to know if there is a way to avoid/improve this.
E.g. make guile count parens before evaluation or whatever so that I get
a clear error, fast.
Alternatively maybe somebody else has a parens counter script I could
use? E.g. I could tell make to first traverse all files looking for
unmatching parens.
--
Cheers Swedebugia
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cryptic error messages: Bug in guile?
2018-11-13 1:35 Cryptic error messages: Bug in guile? swedebugia
@ 2018-11-13 1:44 ` brettg
2018-11-13 1:48 ` Alex Vong
1 sibling, 0 replies; 4+ messages in thread
From: brettg @ 2018-11-13 1:44 UTC (permalink / raw)
To: swedebugia; +Cc: guile-user, guile-user
On 13.11.2018 02:35, swedebugia wrote:
> Hi
>
> I try to package for guix.
> Sometimes I forget a parens somewhere.
>
> When I invoke make in the guix source tree the parens error will be
> reported as any other kind of error. (unbound variable, package not
> found, etc)
>
> I would like to know if there is a way to avoid/improve this.
>
> E.g. make guile count parens before evaluation or whatever so that I
> get a clear error, fast.
>
> Alternatively maybe somebody else has a parens counter script I could
> use? E.g. I could tell make to first traverse all files looking for
> unmatching parens.
Generally you can backtrace these kinds of errors and see what the
unbound variable is tied to some Guile module that you can declare. IIRC
this is also available in `guix lint`.
Did that help any?
Brett Gilio
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cryptic error messages: Bug in guile?
2018-11-13 1:35 Cryptic error messages: Bug in guile? swedebugia
2018-11-13 1:44 ` brettg
@ 2018-11-13 1:48 ` Alex Vong
2018-11-20 20:47 ` Ludovic Courtès
1 sibling, 1 reply; 4+ messages in thread
From: Alex Vong @ 2018-11-13 1:48 UTC (permalink / raw)
To: swedebugia; +Cc: guile-user
[-- Attachment #1: Type: text/plain, Size: 777 bytes --]
Hello,
swedebugia <swedebugia@riseup.net> writes:
> Hi
>
> I try to package for guix.
> Sometimes I forget a parens somewhere.
>
> When I invoke make in the guix source tree the parens error will be
> reported as any other kind of error. (unbound variable, package not
> found, etc)
>
> I would like to know if there is a way to avoid/improve this.
>
> E.g. make guile count parens before evaluation or whatever so that I
> get a clear error, fast.
>
> Alternatively maybe somebody else has a parens counter script I could
> use? E.g. I could tell make to first traverse all files looking for
> unmatching parens.
What error message do you receive? Usually I get something like:
ERROR: In procedure read:
In procedure scm_i_lreadparen: #<unknown port>:1:2: end of file
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cryptic error messages: Bug in guile?
2018-11-13 1:48 ` Alex Vong
@ 2018-11-20 20:47 ` Ludovic Courtès
0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2018-11-20 20:47 UTC (permalink / raw)
To: guile-user
Hi,
Alex Vong <alexvong1995@gmail.com> skribis:
> swedebugia <swedebugia@riseup.net> writes:
>
>> Hi
>>
>> I try to package for guix.
>> Sometimes I forget a parens somewhere.
>>
>> When I invoke make in the guix source tree the parens error will be
>> reported as any other kind of error. (unbound variable, package not
>> found, etc)
[...]
> What error message do you receive? Usually I get something like:
>
> ERROR: In procedure read:
> In procedure scm_i_lreadparen: #<unknown port>:1:2: end of file
This message is rather obscure (unless you’re familiar with
libguile/read.c) so Guix has a hack to translate it into a
human-readable message:
https://git.savannah.gnu.org/cgit/guix.git/tree/guix/ui.scm#n348
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-11-20 20:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-13 1:35 Cryptic error messages: Bug in guile? swedebugia
2018-11-13 1:44 ` brettg
2018-11-13 1:48 ` Alex Vong
2018-11-20 20:47 ` Ludovic Courtès
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).