Update to ANTLR Runtime 3.5.3#3669
Conversation
Test Results 22 files - 8 054 22 suites - 8 054 7m 2s ⏱️ - 3h 44m 32s For more details on these failures, see this check. Results for commit 9d1a856. ± Comparison against base commit 5bee596. This pull request removes 43123 tests.♻️ This comment has been updated with latest results. |
|
I also wonder what happens if you run the workflows for all (test) languages https://github.com/eclipse-xtext/xtext/blob/main/dev-doc/RegenerateLanguages.md as we have code / workflow fragments that patch around in the generated code using regexes Am also not sure if we have a generate all composite launch config meanwhile |
After I've fixed the first round of failures because But currently this still fails with I'll investigate it further. |
|
@HannesWell I wonder if this is the best way to spend your time. The content assist parser relies heavily on the internal state of the Antlr parser and by transitivity on the generated code patterns. What do you think will be the benefit of that effort? It's not that Antlr 3.2 has any known CVEs, has it? |
Probably not.
Yes, but I was hoping that we are lucky and the internals didn't change (much) with this respect in that increment. If you have analyzed and state that already, I've missed that.
Looking at that error it seems like the class
I'm not aware of any, but I also haven’t checked it. But in general I think it's got to be able to be able to follow the latest available, even if it's not yet urgent. One day the latest version might be needed urgently for whatever reason and then it's of course simple if the increment is smaller. |
@cdietrich, @szarnekow, should I do that or just close this PR without extracting anything? |
|
i propose to discuss in one of the next calls |
A naive attempt to resolve #3352.
Most changes are adaptions to the removal of the
Token.EOF_TOKENconstant:antlr/antlr3@484368a
It's replaced by a corresponding check for the token's type. Alternatively, null could be returned in case EOF is reached, but I assumed that's not the preferred solution. The advantage of the current approach is, that is compatible for new and old versions of Xtext, if there are any downstream consumers referencing the adapted code.