avatar
文章
11
标签
15
分类
6
Home
about
tags
categories
RL-learning
photos
LogoAttic的博客Lazyvim 配置中的 tree-sitter兼容问题解决 返回首页
搜索
Home
about
tags
categories
RL-learning
photos

Lazyvim 配置中的 tree-sitter兼容问题解决

发表于2025-12-26|更新于2026-01-17
|浏览量:

参考

  • https://github.com/LazyVim/LazyVim/issues/6793
  • https://github.com/LazyVim/LazyVim/issues/4485

随着lazyvim和tree-sitter的更新,lazyvim自动拉取的tree-sitter版本过新无法启动

会报类似下面的错误

1
[nvim-treesitter/install/c] error: Error during "tree-sitter build": /home/li/.nvm/versions/node/v24.12.0/lib/node_modules/tree-sitter-cli/tree-sitter: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by /home/li/.nvm/versions/node/v24.12.0/lib/node_modules/tree-sitter-cli/tree-sitter)

这时候千万不要试图升级glibc

解决方案就是去tree-sitter的主页直接下载系统可兼容的二进制文件手动安装

我的ubuntu22.04选择的是 tree-sitter 24.0

下载对应系统版本的tree-sitter: tree-sitter 24.0

  1. 首先卸载原有的tree-sitter
1
npm uninstall -g tree-sitter-cli
  1. 解压下载好的tree-sitter并且赋予可执行权限,并将其移动到 ~/.local/bin/
1
2
3
4
5
gzip -d tree-sitter-linux-x64.gz
cd tree-sitter-linux-x64
sudo chmod +x tree-sitter

mv tree-sitter ~/.local/bin/tree-sitter
  1. 确认tree-sitter版本是否正确
1
tree-sitter --version
  1. 重启nvim
1
nvim
文章作者: Attic
文章链接: https://osaerialrobot.top/2025/12/26/tree-sitter-lazyvim/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Attic的博客!
ubuntunvim
上一篇
test
if (typeof lightGallery !== 'undefined') { var options = { selector: '.gallery-item' }; lightGallery(document.getElementsByClassName('.article-gallery')[0], options); }
下一篇
collection
https://github.com/KumarRobotics/kr_mav_control https://github.com/google-deepmind/mujoco_menagerie.git if (typeof lightGallery !== 'undefined') { var options = { selector: '.gallery-item' }; lightGallery(document.getElementsByClassName('.article-gallery')[0], options); }
相关推荐
2025-12-10
tmux常用命令
Tmux 常用命令合集1 会话(session)——“进/出/删/切”1234567891011121314151617# 新建默认会话tmux# 新建命名会话tmux new -s demo# 断开会话(保持后台运行)# 快捷键:Ctrl+b d# 查看所有会话tmux ls# 重接指定会话tmux a -t demo # a 是 attach 的简写# 强制销毁会话tmux kill-session -t demo 2 窗口(window)——“标签页”1234567891011121314# 新建窗口# 快捷键:Ctrl+b c# 切换窗口# 快捷键:Ctrl+b p / n / 0~9# 重命名当前窗口# 快捷键:Ctrl+b ,# 关闭当前窗口# 快捷键:Ctrl+b &# 查看窗口列表(可搜索)# 快捷键:Ctrl+b w 3 窗格(pane)——“分屏”1234567891011121314151617181920212223# 左右分屏# 快捷键:Ctrl+b %# 上下分屏# 快捷键:Ct...
cover
2025-12-10
ubuntu软件推荐以及美化建议
macos 风格美化安装必要的工具和依赖12sudo apt updatesudo apt install -y gnome-tweaks gnome-shell-extensions sassc libglib2.0-dev-bin libxml2-utils 安装 WhiteSur 主题123456# 下载主题仓库git clone https://github.com/vinceliuice/WhiteSur-gtk-theme.git --depth=1cd WhiteSur-gtk-theme# 执行安装脚本(默认安装深色+浅色主题)./install.sh 12345# whitesur 图标主题cd ~git clone https://github.com/vinceliuice/WhiteSur-icon-theme.gitcd WhiteSur-icon-theme./install.sh 12345# 光标cd ~git clone https://github.com/vinceliuice/WhiteSur-cursors.gitcd WhiteSu...
cover
2025-12-09
ubuntu22.04安装docker
docker 安装首先卸载系统默认的的docker 1sudo apt remove docker docker-engine docker.io containerd runc 安装必要的库 1sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg lsb-release 1234567891011# 阿里源(推荐使用阿里的gpg KEY)curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg#添加 apt 源:#阿里apt源echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] ...
cover
2025-12-09
ubuntu platformio问题
在使用ubuntu配置vscode 的 platformio插件时,常常需要魔法上网来下载依赖 我们可以直接配置好vscode的proxy来下载,也可以用手机热点来下载 然而废了大半天劲配置好网络之后我的platformio却连不上板子 1lsusb 12345678910111213li@li-MS-7C94:~$ lsusbBus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 008: ID 8087:0032 Intel Corp. AX210 BluetoothBus 001 Device 006: ID 1462:7c94 Micro Star International MYSTIC LIGHT Bus 001 Device...
avatar
Attic
帝都苦苦挣扎的PhD
文章
11
标签
15
分类
6
公告
机器人描述文件查看 学术会议查询
最新文章
test2026-01-23
Lazyvim 配置中的 tree-sitter兼容问题解决
Lazyvim 配置中的 tree-sitter兼容问题解决2025-12-26
collection2025-12-12
CoRL2025论文集
CoRL2025论文集2025-12-12
px4 ctrl for ROS22025-12-12
© 2025 - 2026 By Attic框架 Hexo 8.1.1|主题 Butterfly 5.5.3
赣ICP备2025057989号-1  |  京公网安备11011402054558号
搜索
数据加载中