nvim treesitter - deptno/deptno.github.io GitHub Wiki

nvim-treesitter

Error detected while processing FileType Autocommands for "*":
E5108: Error executing lua Failed to load parser: uv_dlopen: dlopen(/U
sers/deptno/.config/nvim/pack/_undefined/start/nvim-treesitter/parser/
vim.so, 0x0001): tried: '/Users/deptno/.config/nvim/pack/_undefined/st
art/nvim-treesitter/parser/vim.so' (mach-o file, but is an incompatibl
e architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/vim.so
' (no such file), '/usr/lib/vim.so' (no such file)
stack traceback:
        [C]: in function '_ts_add_language'
        ...0.6.1/share/nvim/runtime/lua/vim/treesitter/language.lua:33
: in function 'require_language'
        ...r/neovim/0.6.1/share/nvim/runtime/lua/vim/treesitter.lua:38
: in function '_create_parser'
        ...r/neovim/0.6.1/share/nvim/runtime/lua/vim/treesitter.lua:93
: in function 'get_parser'
        .../start/nvim-treesitter/lua/nvim-treesitter/highlight.lua:10 7: in function 'attach'
        ...ed/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:45
8: in function 'attach_module'
        ...ed/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:48
1: in function 'reattach_module'
        [string ":lua"]:1: in main chunk
file /Applications/Alacritty.app/Contents/MacOS/alacritty
/Applications/Alacritty.app/Contents/MacOS/alacritty: Mach-O 64-bit executable x86_64
  • alacritty@0.9 x86_64 검색 κ²°κ³Όλ‘œλŠ” arm64 native λ₯Ό μ‚¬μš©ν•˜λŠ” 경우 μ΄μŠˆκ°€ μ—†λŠ” 것 으둜 보인닀. :TSInstall μ‹œμ— μ„€μΉ˜λ˜λŠ” so νŒŒμΌλ“€μ˜ λΉŒλ“œκ°€ λ¬Έμ œκ°€ λœλ‹€.

arm64 기반의 μ‰˜μ—μ„œ μ„€μΉ˜κ°€ λ˜μ–΄μ•Όν•œλ‹€. uname -m 을 ν†΅ν•΄μ„œ 아킀텍쳐 확인이 κ°€λŠ₯ν•˜λ‹€. arm64 λ²„μ „μ˜ ν„°λ―Έλ„μ—μ„œ μ‹€ν–‰ν•˜λ©΄ κ²°κ³Όκ°€ arm64 둜 ν™•μΈλœλ‹€. λ§₯에 기본으둜 ν¬ν•¨λœ ν„°λ―Έλ„μ—μ„œ μ‹€ν–‰ν•˜λ©΄λœλ‹€.

uname -m
arm64

확인 ν›„μ—λŠ” neovim μ‹€ν–‰ 후에 μ•„λž˜μ™€ 같이 λͺ…λ Ήμ–΄λ₯Ό μž…λ ₯ν•œλ‹€.

:TSUninstall all
:TSInstall all

ν•΄λ‹Ή νŒŒμΌλ“€μ„ 열어보면 파둜 μ—λŸ¬κ°€ 제거된 것을 확인할 수 μžˆλ‹€.

link

⚠️ **GitHub.com Fallback** ⚠️