leabra icon indicating copy to clipboard operation
leabra copied to clipboard

Emergent v1.4.31 seems to break Leabra

Open bdknguyen opened this issue 1 year ago • 0 comments

Hi there,

I'm currently setting up a new model in a separate directory outside the main Leabra folder. When I initially tried to compile it, I got these errors:

# github.com/emer/leabra/leabra
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:167:45: not enough arguments in call to ly.LeabraLay.UnitVal1D
        have (int, int)
        want (int, int, int)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:190:37: not enough arguments in call to ly.LeabraLay.UnitVal1D
        have (int, int)
        want (int, int, int)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:232:37: not enough arguments in call to ly.LeabraLay.UnitVal1D
        have (int, int)
        want (int, int, int)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:250:38: not enough arguments in call to ly.LeabraLay.UnitVal1D
        have (int, int)
        want (int, int, int)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:360:26: cannot use ly (variable of type *Layer) as emer.Layer value in argument to emer.SendNameTry: *Layer does not implement emer.Layer (missing method AddClass)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:363:30: cannot use ly (variable of type *Layer) as emer.Layer value in argument to emer.SendNameTypeTry: *Layer does not implement emer.Layer (missing method AddClass)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:366:26: cannot use ly (variable of type *Layer) as emer.Layer value in argument to emer.RecvNameTry: *Layer does not implement emer.Layer (missing method AddClass)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\layer.go:369:30: cannot use ly (variable of type *Layer) as emer.Layer value in argument to emer.RecvNameTypeTry: *Layer does not implement emer.Layer (missing method AddClass)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\network.go:43:9: cannot use &Layer{} (value of type *Layer) as emer.Layer value in return statement: *Layer does not implement emer.Layer (missing method AddClass)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\network.go:48:9: cannot use &Prjn{} (value of type *Prjn) as emer.Prjn value in return statement: *Prjn does not implement emer.Prjn (missing method AddClass)
..\..\bdkn9463\go\pkg\mod\github.com\emer\[email protected]\leabra\network.go:48:9: too many errors

The go.mod file that I initially generated set the required Emergent version to v1.4.31, but the compilation errors went away when I set it back to v1.3.53 (the version specified in the Leabra repository's go.mod file). This was just something I tried randomly, and I'm not sure why it worked.

bdknguyen avatar May 02 '24 20:05 bdknguyen