Closed domq closed 11 months ago
Hello @ubolonton, would you be so kind as to approve this pull request?
@jcs090218 Would you merge this pr, I have the same error msg.
[2023-12-06T05:52:12.737495] tsc-dyn-get: Using source :compilation (:loaded nil :recorded emacs-tree-sitter@0.18.0 :requested 0.18.0)
[2023-12-06T05:52:12.749085] Could not get ‘tsc-dyn’: (error Invalid version syntax: ‘emacs-tree-sitter@0.18.0’ (must start with a number))
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:
0.18.0
This is not:
emacs-tree-sitter@0.18.0
Please fix the things that write incorrect data into DYN-VERSION
instead.
This file is also updated by tsc-dyn-get--github
.
@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:
(defun tsc-dyn-get--build-version ()
"Return the dynamic module's version after asking 'cargo'."
(thread-first (shell-command-to-string "cargo pkgid")
string-trim
(split-string "\[#:\]")
last car))
For the split-string, just add a @.
(defun tsc-dyn-get--build-version ()
"Return the dynamic module's version after asking 'cargo'."
(thread-first (shell-command-to-string "cargo pkgid")
string-trim
(split-string "\[#@:\]")
last car))
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:pre>emacs-tree-sitter@0.18.0</pre (still sans final newlines).DYN-VERSION
file used to look like this:In
tsc-dyn-get--recorded-version
, support both formats by erasing everything up to and including first@