Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Update [email protected] #25443

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

claytonrcarter
Copy link
Contributor

Identify the Bug

This updates Atom and relevant bundled languages to tree-sitter v0.20. This helps address (but doesn't really "fix") #22129 and #23041. This PR supercedes #23283.

Description of the Change

There are 3 parts to this update:

  1. Update Atom and language-rust-bundled (which is in the Atom repo)
  2. Update the core languages (those w/ tree-sitter grammars) that have been updated for tree-sitter 0.20
  3. JUST FOR TESTING includes submodules for the languages that have pending updates that are not yet merged

As the pending PRs are reviewed and merged, I will update this PR to remove the submodules and include those as normal version updates.

Updates needed:

Note all languages that are blocked by an existing PR are already included in this PR as git submodules but just for testing and proof of concept. Once all these (or equivalent) PRs are merged, all changes from the commit titled chore(FIXME): Include PENDING tree-sitter language updates (including the submodules) will be removed form this PR and replaced with normal semver-style dependencies.

See also: https://github.com/icecream17/atom-update-backlog/blob/main/Languages.md

Also while I was here, I updated the error message thrown by tree-sitter to make debugging version mismatches a little easier. It doesn't fully address #23041, but I hope that it will help. This is entirely optional though, and I can remove this change if you'd prefer.

Alternate Designs

None considered.

Possible Drawbacks

Once this is updated and released, 3rd party language packages with tree-sitter grammars will stop working until they too are updated.

Verification Process

No new tests were added. I'm just relying on the existing tests and some manual testing.

Release Notes

Atom's tree-sitter support (including core languages with tree-sitter grammars) has been updated.

The RangeError thrown by tree-sitter doesn't say anything about which language
is incompatible. By clarifying that this is in fact a tree-sitter error and
which language is affected, debugging the source of these errors should be
easier.
@claytonrcarter claytonrcarter changed the title Update tree sitter Update [email protected] May 5, 2022
Copy link

@k4153r81 k4153r81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

K4153r

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants