You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panic: interface conversion: antlr.PredictionContext is *antlr.EmptyPredictionContext, not *antlr.ArrayPredictionContext [recovered]
panic: interface conversion: antlr.PredictionContext is *antlr.EmptyPredictionContext, not *antlr.ArrayPredictionContext [recovered]
panic: interface conversion: antlr.PredictionContext is *antlr.EmptyPredictionContext, not *antlr.ArrayPredictionContext
@parrt@chenquan I cannot reproduce this with the latest runtime code. I have some recollection of fixing this as part of some other code fix, but I cannot be sure. Code should refer to the PredictionContext interface rather than a specific instance. I believe that I fixed this as a byproduct of changing the code that calls mergeArrays, many months ago.
I ran the code above and with the generated visitor it all works as I would expect and there is no panic.
BTW - would you please report bugs with code, rather than a screenshot, so I can be sure I am running the same thing? Cheers :).
Activity
jimidle commentedon Mar 15, 2023
@parrt @chenquan I cannot reproduce this with the latest runtime code. I have some recollection of fixing this as part of some other code fix, but I cannot be sure. Code should refer to the PredictionContext interface rather than a specific instance. I believe that I fixed this as a byproduct of changing the code that calls mergeArrays, many months ago.
I ran the code above and with the generated visitor it all works as I would expect and there is no panic.
BTW - would you please report bugs with code, rather than a screenshot, so I can be sure I am running the same thing? Cheers :).
I think that this can be closed.