~sircmpwn/hare-users

2 2

Error building deeply nested module

Details
Message ID
<CSCUX4PNMEXA.26G8J6FSPJW0W@bookchin>
DKIM signature
missing
Download raw message
Hi, I'm trying to build a hare module deeply nested within an existing
mixed hare and C project and encountering the following error:

`Abort: ./bufio/memstream.ha:65:22: bufio::fixed buffer exceeded`

user.ha:
│ use targets::socs::allwinner;
│ //use targets::socs::allwinne;
│ ...
└ let number: size = allwinner::test;

targets/socs/allwinner/todo.ha:
│ export def test: size = 42;
└

Notes:
* If I create a symlink at "targets/socs/allwinne" -> allwiner and use
that name instead, all is well.
* I've found the issue to be independent of the length of the absolute
path in my filesystem.
* `hare deps ./user.ha` works fine.

Any thoughts on what fixed buffer might be causing this?

So far I've tried a few searches on this and the hare-dev mailing lists,
grep'd ~sircmpwn/hare/ for some variations on "= 23z;" (the length of
the module name), and spent a few minutes looking through the source,
all with no initial luck.

Cheers,
RKL
Details
Message ID
<700f218d-6be7-7dab-ff5f-f68a600b9634@fentker.eu>
In-Reply-To
<CSCUX4PNMEXA.26G8J6FSPJW0W@bookchin> (view parent)
DKIM signature
missing
Download raw message
Found it through some good old print debugging :D

It's `namebuf` in mkfile (cmd/hare/plan.ha:312) being called from
`sched_hare_object` in cmd/hare/schedule.ha:229
Details
Message ID
<CSDK8LSTXMEC.3M0J4HXVQN0BJ@monch>
In-Reply-To
<700f218d-6be7-7dab-ff5f-f68a600b9634@fentker.eu> (view parent)
DKIM signature
missing
Download raw message
fwiw we're planning to completely rewrite all of that code in the relatively
near future, will keep this in mind when doing so
Reply to thread Export thread (mbox)