You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was discovered while trying to run gno test . on a converted version of https://github.com/notnil/chess . (as a fun fact, yaegi doesn't correctly handle that package's tests either: traefik/yaegi#1585 -- looks like we found ourselves a challenge-package!)
I did some debugging by adding this print statement in gnovm/pkg/gnolang/nodes.go:
I don't know if the issue is as specific like the title, but here is a minimal example:
This was discovered while trying to run
gno test .
on a converted version of https://github.com/notnil/chess . (as a fun fact, yaegi doesn't correctly handle that package's tests either: traefik/yaegi#1585 -- looks like we found ourselves a challenge-package!)I did some debugging by adding this print statement in
gnovm/pkg/gnolang/nodes.go
:The relevant output is in the last lines
I'm not 100% sure on the functioning of
Define2
, but a rough guess seems to be that it is seen as a re-definition and thus panics.I suspect this issue is not limited to the
tests
variable, but this needs more investigation.(The specific issue disappears changing the name of
var tests
to something else, likexxtests
.)(Part of a series of issues encountered while developing gnochess)
The text was updated successfully, but these errors were encountered: