Skip to content

"Org.so is not a valid Win32 application" error #953

Closed
@ColAlexsanders

Description

@ColAlexsanders

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions