Closed molleweide closed 3 years ago
this error occurs when trying to access doom documentation via leader d d
.
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
E5108: Error executing lua ...k/cheovim/start/cheovim/lua/doom/core/functions/init.lua:155: Vim(lua):E5108: Er
ror executing lua Failed to load parser: uv_dlopen: dlopen(/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/norg.
so, 1): no suitable image found. Did find:
/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/norg.so: mach-o, but wrong architecture
/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/norg.so: mach-o, but wrong architecture
stack traceback:
[C]: in function '_ts_add_language'
...ffb_1/share/nvim/runtime/lua/vim/treesitter/language.lua:33: in function 'require_language'
...f37ffb_1/share/nvim/runtime/lua/vim/treesitter/query.lua:159: in function 'parse_query'
...lua/neorg/modules/core/norg/esupports/metagen/module.lua:48: in function 'is_metadata_present'
...lua/neorg/modules/core/norg/esupports/metagen/module.lua:95: in function 'inject_metadata'
...lua/neorg/modules/core/norg/esupports/metagen/module.lua:123: in function 'on_event'
...are/nvim/site/pack/packer/opt/neorg/lua/neorg/events.lua:154: in function <...are/nvim/site/pack/packer/opt/neorg/lua/neorg/events.lua:136>
...are/nvim/site/pack/packer/opt/neorg/lua/neorg/events.lua:158: in function 'broadcast_event'
...opt/neorg/lua/neorg/modules/core/autocommands/module.lua:47: in function '_neorg_module_autocommand_triggered'
[string ":lua"]:1: in main chunk
[C]: in function 'cmd'
...k/cheovim/start/cheovim/lua/doom/core/functions/init.lua:155: in function 'open_docs'
[string ":lua"]:1: in main chunk
stack traceback:
[C]: in function 'cmd'
...k/cheovim/start/cheovim/lua/doom/core/functions/init.lua:155: in function 'open_docs'
[string ":lua"]:1: in main chunk
Press ENTER or type command to continue
and this when trying to edit a new norg file:
E5108: Error executing lua Failed to load parser: uv_dlopen: dlopen(/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/par
ser/norg.so, 1): no suitable image found. Did find:
/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/norg.so: mach-o, but wrong architecture
/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/norg.so: mach-o, but wrong architecture
stack traceback:
[C]: in function '_ts_add_language'
...ffb_1/share/nvim/runtime/lua/vim/treesitter/language.lua:33: in function 'require_language'
...HEAD-2f37ffb_1/share/nvim/runtime/lua/vim/treesitter.lua:38: in function '_create_parser'
...HEAD-2f37ffb_1/share/nvim/runtime/lua/vim/treesitter.lua:93: in function 'get_parser'
...er/opt/nvim-treesitter/lua/nvim-treesitter/highlight.lua:107: in function 'attach'
...cker/opt/nvim-treesitter/lua/nvim-treesitter/configs.lua:455: in function 'attach_module'
...cker/opt/nvim-treesitter/lua/nvim-treesitter/configs.lua:478: in function 'reattach_module'
[string ":lua"]:1: in main chunk
E5108: Error executing lua Failed to load parser: uv_dlopen: dlopen(/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/par
ser/norg.so, 1): no suitable image found. Did find:
/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/norg.so: mach-o, but wrong architecture
/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/norg.so: mach-o, but wrong architecture
stack traceback:
[C]: in function '_ts_add_language'
...ffb_1/share/nvim/runtime/lua/vim/treesitter/language.lua:33: in function 'require_language'
...HEAD-2f37ffb_1/share/nvim/runtime/lua/vim/treesitter.lua:38: in function '_create_parser'
...HEAD-2f37ffb_1/share/nvim/runtime/lua/vim/treesitter.lua:93: in function 'get_parser'
...er/opt/nvim-treesitter/lua/nvim-treesitter/highlight.lua:107: in function 'attach'
...cker/opt/nvim-treesitter/lua/nvim-treesitter/configs.lua:455: in function 'attach_module'
...cker/opt/nvim-treesitter/lua/nvim-treesitter/configs.lua:478: in function 'reattach_module'
[string ":lua"]:1: in main chunk
Error detected while processing BufEnter Autocommands for "*.norg":
E5108: Error executing lua Failed to load parser: uv_dlopen: dlopen(/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/par
ser/norg.so, 1): no suitable image found. Did find:
/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/norg.so: mach-o, but wrong architecture
/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/norg.so: mach-o, but wrong architecture
stack traceback:
[C]: in function '_ts_add_language'
...ffb_1/share/nvim/runtime/lua/vim/treesitter/language.lua:33: in function 'require_language'
...f37ffb_1/share/nvim/runtime/lua/vim/treesitter/query.lua:159: in function 'parse_query'
...lua/neorg/modules/core/norg/esupports/metagen/module.lua:48: in function 'is_metadata_present'
...lua/neorg/modules/core/norg/esupports/metagen/module.lua:95: in function 'inject_metadata'
...lua/neorg/modules/core/norg/esupports/metagen/module.lua:123: in function 'on_event'
...are/nvim/site/pack/packer/opt/neorg/lua/neorg/events.lua:154: in function <...are/nvim/site/pack/packer/opt/neorg/lua/neorg/events.lua:136>
...are/nvim/site/pack/packer/opt/neorg/lua/neorg/events.lua:158: in function 'broadcast_event'
...opt/neorg/lua/neorg/modules/core/autocommands/module.lua:47: in function '_neorg_module_autocommand_triggered'
[string ":lua"]:1: in main chunk
Press ENTER or type command to continue
and this error shows constantly when having a norg file open:
Error detected while processing CursorHold Autocommands for "<buffer=64>":
E5108: Error executing lua Failed to load parser: uv_dlopen: dlopen(/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/par
ser/norg.so, 1): no suitable image found. Did find:
/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/norg.so: mach-o, but wrong architecture
/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/norg.so: mach-o, but wrong architecture
stack traceback:
[C]: in function '_ts_add_language'
...ffb_1/share/nvim/runtime/lua/vim/treesitter/language.lua:33: in function 'require_language'
...HEAD-2f37ffb_1/share/nvim/runtime/lua/vim/treesitter.lua:38: in function '_create_parser'
...HEAD-2f37ffb_1/share/nvim/runtime/lua/vim/treesitter.lua:93: in function 'get_parser'
...ext-commentstring/lua/ts_context_commentstring/utils.lua:83: in function 'get_node_at_cursor_start_of_line'
...-commentstring/lua/ts_context_commentstring/internal.lua:79: in function 'calculate_commentstring'
...-commentstring/lua/ts_context_commentstring/internal.lua:100: in function 'update_commentstring'
[string ":lua"]:1: in main chunk
Press ENTER or type command to continue
when typing in a lua file this show:
Error executing vim.schedule lua callback: Failed to load parser: uv_dlopen: dlopen(/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvi
m-treesitter/parser/lua.so, 1): no suitable image found. Did find:
/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/lua.so: mach-o, but wrong architecture
/Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/lua.so: mach-o, but wrong architecture
stack traceback:
[C]: in function '_ts_add_language'
...ffb_1/share/nvim/runtime/lua/vim/treesitter/language.lua:33: in function 'require_language'
...HEAD-2f37ffb_1/share/nvim/runtime/lua/vim/treesitter.lua:38: in function '_create_parser'
...HEAD-2f37ffb_1/share/nvim/runtime/lua/vim/treesitter.lua:93: in function 'get_parser'
...acker/opt/nvim-treesitter/lua/nvim-treesitter/indent.lua:52: in function 'get_indent'
.../opt/indent-blankline.nvim/lua/indent_blankline/init.lua:435: in function 'cb'
vim.lua:285: in function <vim.lua:285>
Press ENTER or type command to continue
Hmmm interesting, this seems to be a more general error with nvim-treesitter's parsers not working on M1 macbook due to its arm64 architecture. I'll investigate this after work tonight. And thank you for the detailed error logs :)
Actually reading this again I have no idea what the issue would be. Have you already got the neorg parser installed? There is this workaround if you're having trouble there. Maybe try this if you haven't already, then run :TSUninstall neorg
:TSInstallSync neorg
and comment the logged output?
cool i'll try this and report back. I will also checkout master and see if the same stuff occurs there. If anyone else here is using M1 macs please share if you also had these kinds of problems.
TSUninstall neorg:
nvim-treesitter[neorg]: Could not delete /Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/neorg.so
rm: /Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/neorg.so: No such file or directory
Press ENTER or type command to continue
TSInstallSync neorg
E5108: Error executing lua ...cker/opt/nvim-treesitter/lua/nvim-treesitter/install.lua:360: Parser not available for language neorg
stack traceback:
[C]: in function 'get_parser_install_info'
...cker/opt/nvim-treesitter/lua/nvim-treesitter/install.lua:360: in function 'install_lang'
...cker/opt/nvim-treesitter/lua/nvim-treesitter/install.lua:409: in function 'run'
[string ":lua"]:1: in main chunk
Press ENTER or type command to continue
using main branch works better, but the telescope preview err still pops now and then. Also when entering a lua file a rolling list of similar lua showed. Ima add the checkhealth for main in OP:
Yo, I think that regarding this (https://github.com/NTBBloodbath/doom-nvim/issues/233) your ideas about new modular struct. It would make sense to split the user configs files so that it is easier to pull in stuff or checkout individual files from a previous branch. Because in my previous molldev
branch which is the one I have most of my user configs in, it is quite a pain to walk through it, and pull in all of those changes into this new develop branch since eg. all of the user configs are in one file and therefore I need to split it up or whatever. Maybe, there should be a user dir where each functionality is contained in its own file, eg. autocommands, doom_options, nvim_options, mappings, etc.. so that I can at least quickly checkout my mappings file and ignore all of the rest. I don't fully understand the new modular architecture bc it is quite advanced but I just wanted to get this down.
on latest develop it is not possible to type in a lua file. it generates error on each keypress. I removed neorg from doom_modules also fyi.
Yo, I think that regarding this (https://github.com/NTBBloodbath/doom-nvim/issues/233) your ideas about new modular struct. It would make sense to split the user configs files so that it is easier to pull in stuff or checkout individual files from a previous branch. Because in my previous
molldev
branch which is the one I have most of my user configs in, it is quite a pain to walk through it, and pull in all of those changes into this new develop branch since eg. all of the user configs are in one file and therefore I need to split it up or whatever. Maybe, there should be a user dir where each functionality is contained in its own file, eg. autocommands, doom_options, nvim_options, mappings, etc.. so that I can at least quickly checkout my mappings file and ignore all of the rest. I don't fully understand the new modular architecture bc it is quite advanced but I just wanted to get this down.
LOL what i was trying to say is that when everything is in one file it becomes a pain in this situation I think.
Kind of off-topic here so don't want to talk about it too much but when we get around to switching to the more modular architecture it shouldn't effect anyone's configuration, it's more of a 'behind the scenes' restructure of the way doom-nvim is built + make it easier to maintain languages with custom/edge-case tooling. If there's points you want to raise comment them in that issue and we'll do our best to address them :)
Also the solution I posted on #222 may also solve these issues. Please also ensure that you're using the head
tree-sitter brew install tree-sitter --HEAD
cool. I will try to get down with the new module proposal more.
what does tree-sitter -V show for you. this is mine.
╰ tree-sitter -V
tree-sitter 0.20.0
i am asking because I am already having brew install tree-sitter --HEAD
in my installer scripts.
TSUninstall neorg: nvim-treesitter[neorg]: Could not delete /Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/neorg.so rm: /Users/hjalmarjakobsson/.local/share/nvim/site/pack/packer/opt/nvim-treesitter/parser/neorg.so: No such file or directory Press ENTER or type command to continue
TSInstallSync neorg E5108: Error executing lua ...cker/opt/nvim-treesitter/lua/nvim-treesitter/install.lua:360: Parser not available for language neorg stack traceback: [C]: in function 'get_parser_install_info' ...cker/opt/nvim-treesitter/lua/nvim-treesitter/install.lua:360: in function 'install_lang' ...cker/opt/nvim-treesitter/lua/nvim-treesitter/install.lua:409: in function 'run' [string ":lua"]:1: in main chunk Press ENTER or type command to continue
iirc neorg tree-sitter parser is called norg
instead of neorg
.
Also for the other errors that's being really strange to me, did you found something similar in nvim-treesitter repo issues?
yo!
after fixing brew every single error resolved itself:
Yay, that's great to hear! Ok so did the fix in #222 resolve this issue? Does this mean we can close this issue and are there any other related issues that we can close?
Closing for now!
I havent seen any issues atm. Pray to god
edit
after using latest develop branch for a few moment many errors occur. I have provided checkhealth below under details.
I am going to test the latest development branch on my intel later. but I haven't noticed any problems on my macbook pro intel and last time si checkout latest development was ~last thursday
This error occurs not everytime but often when typing in telescope preview window
I just pulled the latest dev branch. I use macOS M1 macbook air in alacritty terminal.
sys info
doom_root
variable:/Users/hjalmarjakobsson/.config/doom-nvim
doom_configs_root
variable:/Users/hjalmarjakobsson/.config/doom-nvim
edit > DEVELOP branch checkhealth on M1 macbook air.
main branch checkhealth on M1 macobook air