Skip to content
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

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

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

Conversation

aminya
Copy link
Member

@aminya aminya commented Jul 1, 2022

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

Copy link
Member Author

@aminya aminya left a comment

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

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
Copy link
Member Author

aminya commented Jul 3, 2022

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
Member Author

aminya commented Jul 3, 2022

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

icecream17 and 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)
@aminya aminya force-pushed the merge-languages branch from c99a1cf to 4383804 Compare July 9, 2022 23:46
Copy link
Member Author

@aminya aminya left a comment

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

@DeeDeeG
Copy link
Member

DeeDeeG commented Jul 11, 2022

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
Member Author

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"

Copy link
Member Author

@aminya aminya left a comment

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

ghost commented Jul 18, 2022

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
Member Author

aminya commented Jul 18, 2022

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

Tree-sitter is editor agnostic.

@ghost
Copy link

ghost commented Jul 19, 2022

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 free to 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