grule-rule-engine icon indicating copy to clipboard operation
grule-rule-engine copied to clipboard

deserializer.Deserialize undefined (type *antlr.ATNDeserializer has no field or method Deserialize)

Open kbakdev opened this issue 2 years ago • 3 comments

Describe the bug I have a problem when I am using the linter

To Reproduce Steps to reproduce the behavior:

  1. 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)

kbakdev avatar Jan 11 '23 12:01 kbakdev

I have the same problem

pokitpeng avatar Jun 02 '23 06:06 pokitpeng

I have the same problem

wxyz520 avatar Sep 18 '23 12:09 wxyz520

This seems to happen when upgrading from a previous version. Go gets confused.

Steps to fix:

  1. Go into your project's go.mod and go.sum files and manually delete all references to github.com/antlr/antlr4.
  2. Run go mod tidy.
  3. Verify that those references have been replaced with github.com/antlr/antlr4/runtime/Go/antlr instead.

juburr avatar Jan 31 '24 01:01 juburr