-
Notifications
You must be signed in to change notification settings - Fork 75
[fix] tsc-dyn-get--recorded-version: support new DYN-VERSION syntax
#249
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
[fix] tsc-dyn-get--recorded-version: support new DYN-VERSION syntax
#249
Conversation
tsc-dyn-get--recorded-version: support new DYN-VERSION syntax emacs-tree-sitter#249 Previously, a tree-sitter DYN-VERSION file used to look like this: 0.18.0 (with no final newlines). Now it may look like this: emacs-tree-sitter@0.18.0 (still sans final newlines). In tsc-dyn-get--recorded-version, support both formats by erasing everything up to and including first @
|
Hello @ubolonton, would you be so kind as to approve this pull request? |
|
@jcs090218 |
|
This makes sense to me! Thank you to everyone who participated in this bug! |
|
how about making a new tag? |
|
It seems like there is an error with our release pipeline. I will try to fix it ASAP. 🤔 |
|
This is a version:
This is not:
Please fix the things that write incorrect data into This file is also updated by |
This change allows the package to work on Emacs on Android + termux. Users will still need to manually install the required termux packages. Additionally, the DYN-VERSION file in the `tsc` package (in `.emacs.d/elpa/tsc-[version]/` ) may need to be manually modified to conform to the expected format--e.g. from `emacs-tree-sitter@0.18.0` to `0.18.0` (see emacs-tree-sitter#249 for more info). Finally, a change to `tree-sitter-langs` package is also needed for things to work locally.
This change allows the package to work on Emacs on Android + termux. Users will still need to manually install the required termux packages. Additionally, the DYN-VERSION file in the `tsc` package (in `.emacs.d/elpa/tsc-[version]/` ) may need to be manually modified to conform to the expected format--e.g. from `emacs-tree-sitter@0.18.0` to `0.18.0` (see emacs-tree-sitter#249 for more info). Finally, a change to `tree-sitter-langs` package is also needed for things to work locally (see emacs-tree-sitter/tree-sitter-langs#563).
|
@jcs090218 I have no familiarity with this codebase, but I would actually suggest to change the code that asks cargo for the version to write to DYN-VERSION in the first place. Then everything should be correct from the beginning. This function: For the split-string, just add a @. Then this PR can be reverted, resulting in fewer s-exps. |
Previously, a tree-sitter
(with no final newlines). Now it may look like this: (still sans final newlines).DYN-VERSIONfile used to look like this:In
tsc-dyn-get--recorded-version, support both formats by erasing everything up to and including first@