1
5

hello @linuxmint@mamot.fr @linuxmint@lemmy.ml @linuxmint@mastodon.social

tl;dr I have got a problem with the tree-sitter-cli package version stuck at 0.20.8-5.

I installed the nvim-treesitter plugin in Neovim, and when I run :checkhealth, I get the following message:

nvim-treesitter:
Requirements ~
- ✅ OK Neovim was compiled with tree-sitter runtime ABI version 15 (required >=13).
- ❌ ERROR tree-sitter-cli v0.25.0 is required
- ..

#linuxmint #tree-sitter-cli #neovim #tree-sitter

1/X

@linuxmint@mamot.fr @linuxmint@lemmy.ml @linuxmint@mastodon.social

When I try $sudo apt install tree-sitter-cli, I get the following response:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
tree-sitter-cli is already the latest version (0.20.8-5).
0 updated, 0 newly installed, 0 to remove, and 0 not updated.

2/X

@linuxmint@mamot.fr
@linuxmint@lemmy.ml @linuxmint@mastodon.social

Unless I am mistaken, the repositories are taken from Ubuntu, more specifically from http://archive.ubuntu.com/ubuntunoble-backports/xx or http://security.ubuntu.com/ubuntunoble-security/xx

which may not correspond to the latest Ubuntu channel.

3/X

@linuxmint@mamot.fr
@linuxmint@lemmy.ml @linuxmint@mastodon.social

However, according to https://launchpad.net/ubuntu/+source/tree-sitter, the most recent package for tree-sitter supported on Ubuntu would be version 0.25.9.

4/X

@linuxmint@mamot.fr @linuxmint@lemmy.ml @linuxmint@mastodon.social

(this is the end)

And I think to myself:

- If I'm right, I don't see what I can do...
- If I'm wrong, I don't know what to look for.

So I use my wild card, thinking that the “Linux Mint” community on Mastodon might be...

magic meme

@linuxmint@mamot.fr @linuxmint@lemmy.ml @linuxmint@mastodon.social

one step further

$apt policy tree-sitter-cli

tree-sitter-cli:
Installé : 0.20.8-5
Candidat : 0.20.8-5
Table de version :
*** 0.20.8-5 500
500 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages
100 /var/lib/dpkg/status

which should point to the URL
http://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/
where it is a "Packages.gz" file

apply a "grep 'tree-sitter-cli' " on the .gz file content confirm the 0.20.8-5 version