Skip to content

Emergent v1.4.31 seems to break Leabra #30

Open
@bdknguyen

Description

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\leabra@v1.2.10\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\leabra@v1.2.10\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\leabra@v1.2.10\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\leabra@v1.2.10\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\leabra@v1.2.10\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\leabra@v1.2.10\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\leabra@v1.2.10\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\leabra@v1.2.10\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\leabra@v1.2.10\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\leabra@v1.2.10\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\leabra@v1.2.10\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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions