Skip to content

➡️ Migrate all language packages + Bump Tree Sitter - #416

Open
aminya wants to merge 8 commits into
masterfrom
merge-languages
Open

➡️ Migrate all language packages + Bump Tree Sitter#416
aminya wants to merge 8 commits into
masterfrom
merge-languages

Conversation

@aminya

@aminyaaminya commented Jul 1, 2022

Copy link
Copy Markdown
Member

Continuation of #403 and #399. Please read the descriptions of those PRs first.

@aminyaaminya left a comment

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Autocomplete seems broken

@mauricioszabo

Copy link
Copy Markdown

Autocomplete seems broken

Can you give an example? I'm using these modifications for a whole week now, and did not find any issues (well, I am using the version that I bumped Electron too, but I'm not sure if this could change things this much)

@aminya

aminya commented Jul 3, 2022

Copy link
Copy Markdown
MemberAuthor

Autocomplete seems broken

Can you give an example? I'm using these modifications for a whole week now, and did not find any issues (well, I am using the version that I bumped Electron too, but I'm not sure if this could change things this much)

See the failing tests. HTML, Java, and Ruby have changed. Tree-sitter is the grammar of Atom, and changing it is actually a big deal.

@aminya

Copy link
Copy Markdown
MemberAuthor

Cherry-picked #417. We should fix the failing tests (there are a lot) before we can merge this.

icecream17and others added 8 commits July 9, 2022 16:45
To make #386 reviewable,
that pr will be separated into many simpler prs. This is one of them.
This first commit does the following:
- update package.json
- update package-lock.json using `./script/build` which also seems to update `apm/package-lock.json`
- update packages/README.md
- clone all language packages. Specifically:
- `mkdir packages/language-<all of them>`
- `cd packages/about`
- For all languages:
- `cd ../language-<>`
- `git clone language-<>`
- Move all files except `.git` from `language-<>/language-<>`
to `language-<>`
- delete `language-<>/language-<>`
Since at first I accidentally updated `dependencies` then
`packageDependencies`, it appears that since the versions of language-c,
language-css, language-go, language-javascript, and language-sass don't
match, `dependencies` was reset for those versions.
[Those repos just happen to be precisely the ones that have tree-sitter v19](https://github.com/icecream17/atom-update-backlog/blob/main/Languages.md), (sans language-sass),
which [currently breaks atom](atom#22129). So even though their repos are now
in `packages`, **I've decided to not use them**.
This is done by updating `packageDependencies` only for non-breaking
languages.
... previously v19 tree-sitter language packages.
Continuation of #399
(477b075)
but where the packages that would've broke Atom are now updated
Another link:
#403 (comment)

@aminyaaminya left a comment

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

We should update node-abi in all the packages

@icecream17icecream17 mentioned this pull request Jul 10, 2022
2 tasks
@DeeDeeG

DeeDeeG commented Jul 11, 2022

Copy link
Copy Markdown
Member

By the way, tree-sitter-typescript v19.x or newer doesn't build on Windows, in my testing.

tree-sitter/tree-sitter-typescript#146 (comment)
^ Related comment that explains when the build failure started, I think?

"url": "https://github.com/atom/language-typescript/issues"
},
"dependencies": {
"tree-sitter-typescript": "0.20.1"

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Suggested change
"tree-sitter-typescript": "0.20.1"
"tree-sitter-typescript": "github:tree-sitter/tree-sitter-typescript#master"

@aminyaaminya left a comment

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

There is a list of working tree-sitter packages here:

https://github.com/cursorless-dev/vscode-parse-tree/blob/4936a9c78b4e5aa3ad99816dfa751b00c5d9abd9/package.json#L78-L103

We should update all the outdated dependencies with these. This will probably fix the build issues.

@ghost

Copy link
Copy Markdown

There is a list of working tree-sitter packages here:

https://github.com/cursorless-dev/vscode-parse-tree/blob/4936a9c78b4e5aa3ad99816dfa751b00c5d9abd9/package.json#L78-L103

We should update all the outdated dependencies with these. This will probably fix the build issues.

It references "vscode" in the github repository name. Those are not for Atom.

@aminya

Copy link
Copy Markdown
MemberAuthor

It references "vscode" in the github repository name. Those are not for Atom.

Tree-sitter is editor agnostic.

@ghost

ghost commented Jul 19, 2022

Copy link
Copy Markdown

It references "vscode" in the github repository name. Those are not for Atom.

Tree-sitter is editor agnostic.

@aminya I made this fork specifically for Atom Community https://github.com/stechness/atomcommunity-parse-tree.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@aminya@mauricioszabo@DeeDeeG@icecream17