Skip to content

[Go] "go test" does not pass #3557

@kaby76

Description

@kaby76

This seems to be a problem with some code that wasn't updated with ATN serialization/deserialization.

Unfortunately, I don't think the tests are performed in CI builds. cd runtime/Go/antlr4; go test. Honestly, these Go-specific tests probably should not even go here, but it is what it is, and I'm continuing the tradition.

ken@DESKTOP-DL44R7B:/mnt/c/msys64/home/Kenne/current/antlr4/runtime/Go/antlr$ go test
panic: Could not deserialize ATN with version 3 (expected 4).

goroutine 1 [running]:
github.com/antlr/antlr4/runtime/Go/antlr.(*ATNDeserializer).checkVersion(0x678980)
	/mnt/c/msys64/home/Kenne/current/antlr4/runtime/Go/antlr/atn_deserializer.go:87 +0xdd
github.com/antlr/antlr4/runtime/Go/antlr.(*ATNDeserializer).DeserializeFromUInt16(0xc00011a2a0, {0x678980, 0x7fffffff, 0x10})
	/mnt/c/msys64/home/Kenne/current/antlr4/runtime/Go/antlr/atn_deserializer.go:52 +0x7d
github.com/antlr/antlr4/runtime/Go/antlr.init()
	/mnt/c/msys64/home/Kenne/current/antlr4/runtime/Go/antlr/testing_lexer_b_test.go:44 +0x672
exit status 2
FAIL    github.com/antlr/antlr4/runtime/Go/antlr        0.005s

I'll fix the code. Blocked on another Go PR because of this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions