-
-
Notifications
You must be signed in to change notification settings - Fork 158
"Org.so is not a valid Win32 application" error #953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What happens when you run |
I get a similar error, and an option to reinstall treesitter grammar. ``Error executing vim.schedule lua callback: ...eovim/share/nvim/runtime/lua/vim/treesitter/language.lua:112: Failed to load parser for language 'org': uv_dlopen: C:/%USERNAME%/AppData/Local/nvim-data/lazy/orgmode/parser/org.so is not a valid Win32 application. stack traceback: I have selected yes on the treesitter grammar reinstall prompt, and the error persists. |
Do you have any other tree-sitter grammars installed through |
Which Neovim version are you on? |
Just to confirm it's not a compiler issue, can you uninstall one of the language and install it again? For example: |
Can you correctly open a vim file without any errors? If yes, then lets try this:
Also, if it does not work, please try the minimal init provided.
|
Both of those didn't work for me. Got the same error messages as before, even when the minimal_init.lua script. |
Did you confirm that Also, for nvim-treesitter, do you use a specific compiler or you let it pick one automatically? |
I created a file called 'test.vim' in my downloads directory, and got no treesitter errors when opening it, and the bindings that I have configured for treesitter (init_selection, etc.) are working still. For my nvim-treesitter compiler, I use clang. |
Ok, lets try this. Do this before the orgmode setup call: require('orgmode.utils.treesitter.install').compilers = {'clang'}
-- Setup
require('orgmode').setup() Reinstall the grammar with |
Looks like it's working! I was able to use the TSToggle highlight command. Running the :Org install_treesitter_grammar command manually made it work. Thank you! |
Awesome! I'll add some documentation to Troubleshooting section in case someone else runs into a similar issue. |
I've been having this issue for a few weeks now, but this week I had some time to sit down and troubleshoot it further. Unfortunately, I am still trying to troubleshoot it, and I am out of ideas. I am writing this post because I want to understand what is actually happening here with potential fixes. Whenever I try to install the treesitter parser for orgmode (which automatically starts everytime I load neovim), I get an error, which is as follows:
`Error detected while processing User Autocommands for "VeryLazy":
Error executing vim.schedule lua callback: ...eovim/share/nvim/runtime/lua/vim/treesitter/language.lua:112: Failed to load parser for language 'org': uv_dlopen: C:/%USERNAME%/AppData/Local/nvim-data/lazy/orgmode/parser/org.so is not a valid Win32 application.
stack traceback:
[C]: in function '_ts_add_language'
...eovim/share/nvim/runtime/lua/vim/treesitter/language.lua:112: in function 'add'
...ta/lazy/orgmode/lua/orgmode/utils/treesitter/install.lua:277: in function 'fn'
vim/_editor.lua:351: in function <vim/_editor.lua:350>
[C]: in function 'wait'
...cal/nvim-data/lazy/orgmode/lua/orgmode/utils/promise.lua:283: in function 'install_grammar'
...ppData/Local/nvim-data/lazy/orgmode/lua/orgmode/init.lua:122: in function 'setup'
C:\Users\Alex\AppData\Local\nvim/lua/plugins.lua:91: in function 'config'
.../Local/nvim-data/lazy/lazy.nvim/lua/lazy/core/loader.lua:380: in function <.../Local/nvim-data/lazy/lazy.nvim/lua/lazy/core/loader.lua:378>
[C]: in function 'xpcall'
...ta/Local/nvim-data/lazy/lazy.nvim/lua/lazy/core/util.lua:135: in function 'try'
.../Local/nvim-data/lazy/lazy.nvim/lua/lazy/core/loader.lua:395: in function 'config'
.../Local/nvim-data/lazy/lazy.nvim/lua/lazy/core/loader.lua:362: in function '_load'
.../Local/nvim-data/lazy/lazy.nvim/lua/lazy/core/loader.lua:197: in function 'load'
...nvim-data/lazy/lazy.nvim/lua/lazy/core/handler/event.lua:85: in function <...nvim-data/lazy/lazy.nvim/lua/lazy/core/handler/event.lua:72>
[C]: in function 'nvim_exec_autocmds'
...ta/Local/nvim-data/lazy/lazy.nvim/lua/lazy/core/util.lua:175: in function <...ta/Local/nvim-data/lazy/lazy.nvim/lua/lazy/core/util.lua:169>`
My guess is that that somehow when the orgmode plugin tries to install the org parser, it is a corrupted version of it. I've also tried following the installation method https://github.com/milisims/tree-sitter-org and was able to get the parser inside of the treesitter directory inside of the nvim-data dir, but that still didn't work either. All of my plugins are up to date, and I am using lazy.nvim as my package manager. Let me know if you need anything else.
The text was updated successfully, but these errors were encountered: