-
Notifications
You must be signed in to change notification settings - Fork 23
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
Restore OTP 25 support #41
Conversation
@belltoy Thanks for this. I don't have a problem restoring OTP 25 support via this patch. But in CI we can only |
Updated and rebased. |
Why is there a change in the |
Every time I run cargo build, cargo will always give that change. It seems there should be the source and checksum field there. |
The reason why there is a change in my compilation is that cargo uses oss https://github.com/WhatsApp/erlang-language-platform/blob/main/Cargo.toml#L101-L102 # @fb-only: tree-sitter-erlang = { path = "./tree-sitter-erlang" }
tree-sitter-erlang = "0.7.0" # @oss-only I guess the annotation [patch.crates-io]
tree-sitter-erlang = { path = "path/to/tree-sitter-erlang" } And run the IMO, adding the two fields back to the lock file should be a fix for the open source version. |
@robertoaloi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Unfortunately accepting those two lines breaks in the internal tooling/CI. We are discussing how to make it work for both versions. In the meantime I will patch it and get this one in! |
@robertoaloi merged this pull request in 8b8eb2e. |
Thanks, Roberto. |
Thank you for the contribution! |
I've read about the failure mentioned in #37. It's because the
erlang_service
uses the new map comprehension syntax introduced in OTP 26.Only three places use the new syntax. Can we restore OTP 25 support by replacing the map comprehension with the legacy
maps:to_list
/maps:from_list
? I have built theelp
based on2024-07-16
and2024-08-05
, seems to work fine.