Removed Tree-Sitter from Runestone itself - #296
Conversation
simonbs
commented
Jun 15, 2023
@ActuallyTaylor Hey! Thanks for opening this PR. I'd love to get rid of the Tree-sitter submodule and depend on Tree-sitter through SPM. However, I'm a little reluctant to make that dependency on a package specification managed by a third-party, so I'll wait to see if the specification is merged into the official Tree-sitter repository before merging this PR. |
ActuallyTaylor
commented
Jun 15, 2023
That sounds great to me! I would also be reluctant to merge based on a third-party so if the specification gets merged I will update this thread. |
ActuallyTaylor
commented
Jul 12, 2023
This commit removes the dependency on my branch of TreeSitter and replaces it with the main TreeSitter repository which merged my branch Merge #2311. |
There was a problem hiding this comment.
@ActuallyTaylor This is amazing! Thanks for putting in the work to have Tree-sitter support Swift Package Manager 🙌
I've added a comment on pinning to a specific version of Tree-sitter rather than the main branch. Is that possible?
I'm happy to merge this once the SwiftLint issues have been addressed.
Uh oh!
There was an error while loading. Please reload this page.
simonbs
commented
Jul 14, 2023
Just realized that we can't pin against a specific version until a new version of Tree-sitter that includes the Package.swift has been published. Guess we'll have to pin against the master branch, or alternatively a specific commit, until then. |
ActuallyTaylor
commented
Jul 14, 2023
Hmm that is a good point, I think the best for now would be to pin to the merge commit on main until the next version of Tree-sitter is released. |
simonbs
commented
Jul 14, 2023
That sounds like a good approach. Will you update this PR to do that? |
ActuallyTaylor
commented
Jul 14, 2023
Yep I can update it now |
simonbs
left a comment
There was a problem hiding this comment.
Great! Thanks for putting in the work on this! 🙏
This pull request removes the Tree-Sitter subdirectory from Runestone in favor of a SPM dependency. Everything functions exactly the same as before.
Currently, this pull request uses the repository https://github.com/ActuallyTaylor/tree-sitter-spm which is a fork of the original Tree-Sitter repository with SPM support added. This is not ideal, as it is not the main repository of Tree-Sitter. To remedy this, I have created a pull request on Tree-Sitter itself Tree-Sitter PR #2311 that once added, will bring SPM support to the main branch.