-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ATN serialized data: remove shifting by 2, remove UUID #17
Conversation
@KvanTTT could you please reference what change motivated this PR for the record? I mean, what changed in the ANTLR, so it becomes necessary. |
Reference PR in the main repository antlr/antlr4#3516 and the issue antlr/antlr4#3515. Please let @parrt merge it because changes should be synched as I guess. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please let me know when it's good to merge.
woohoo! |
@KvanTTT looks like we're failing php in circlei due to ATN still. Did I mess up the merge?
|
Now ANTLR master branch depends on the recent master branch of https://github.com/antlr/antlr-php-runtime with removed shifting by 2. A similar structure with master and dev branches should be introduced into antlr-php-runtime. |
Ok, so i cut dev from master, reset hard master to 4.9.3 right? Heads up @marcospassos :) |
Sorry, I just fell into this thread. Is it all about releasing a new version, or still are there things to do to get it working? |
Yes, and set up dev in ANTLR for dev branch (leave master for master). Honestly, it looks a bit complicated. It seems we should manually fix CI files for every merge of dev into master. |
Is working on two branches really needed? |
v0.6.0 is out |
Hi @marcospassos unfortunately we are now experiencing a disconnect between the latest stable release and development because target languages are pulling from github instead of a released zip/jar/binary or whatever. So we have changed the way ATN serialization works in the development branch, but the fact that we changed your repo and Go Target, for example, means that now the runtime will not work with they released tool (which is a jar that must be created and pushed out during release). I'm open to suggestions. Maybe php users can pull from a specific tag that corresponds to the latest java tool jar? |
I'm wondering, could CI detects the branch it is being run on? If so, we can automatically detect the correct branch of antlr-php-runtime to pull during CI tests. This line: https://github.com/antlr/antlr4/blob/master/.circleci/scripts/install-linux-php.sh#L15 |
yeah was wondering about that. maybe that is simpler but php users will still need to ref a tag NOT the HEAD in github when install php antlr runtime, right? If @marcospassos is ok with that, we can change the php doc. |
It looks like main java tool is now out of sync with php target repo. |
I understand the problem now. Maybe we have better alternatives here: how about creating a tag, like If we decide to go this way, I'll probably install this action on the repo to handle the tag update automatically whenever I release a new version. |
Hi! Well, I don't think the main repo actually pulls in the php repo even during a release so as long as the documentation is consistent for PHP users, then I think we are OK. The antlr repo can have the master and dev branch so that we can continue to deliver stable release from master but also develop things in dev that break runtimes in the master branch. We'll need the CI settings so that we pull from master php but no big deal there. For the other targets, we will have the continuous integration pull from dev. We are currently doing this in the install script for CI:
Maybe we need to add a line that does
?? |
Yeah, the point is that we can't just pull from the master if we keep developing it there. But no worry, I can adapt the workflow to keep the work going on the dev branch and the master pointing out the latest version. |
Done! |
CI tests appear to be passing now!!! woot |
No description provided.