grule-rule-engine
grule-rule-engine copied to clipboard
deserializer.Deserialize undefined (type *antlr.ATNDeserializer has no field or method Deserialize)
Describe the bug I have a problem when I am using the linter
To Reproduce Steps to reproduce the behavior:
- Running golangci-lint with this dep in
Expected behavior Some linter errrors
Additional context
/home/kacper/go/pkg/mod/github.com/hyperjumptech/[email protected]/antlr/parser/grulev3/grulev3_lexer.go:297:32: deserializer.Deserialize undefined (type *antlr.ATNDeserializer has no field or method Deserialize)
/home/kacper/go/pkg/mod/github.com/hyperjumptech/[email protected]/antlr/parser/grulev3/grulev3_parser.go:176:32: deserializer.Deserialize undefined (type *antlr.ATNDeserializer has no field or method Deserialize)
I have the same problem
I have the same problem
This seems to happen when upgrading from a previous version. Go gets confused.
Steps to fix:
- Go into your project's go.mod and go.sum files and manually delete all references to
github.com/antlr/antlr4. - Run
go mod tidy. - Verify that those references have been replaced with
github.com/antlr/antlr4/runtime/Go/antlrinstead.