Skip to content

Commit d43e377

Browse files
docs: update troubleshooting page with info around custom compilers
Closes #953
1 parent 83df5bf commit d43e377

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/troubleshoot.org

+14
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ Make sure you are not overriding indentexpr in Org buffers with [[https://github
1111
Tree-sitter parser might not be installed.
1212
Try running ~:Org install_treesitter_grammar~ to reinstall it.
1313

14+
** I get =.../orgmode/parser/org.so is not a valid Win32 application= on Windows
15+
16+
This issue can happen due to wrong C compiler being used for building the parser.
17+
By default, first one available from this list is chosen: =cc, gcc, clang, cl, zig=
18+
If you want to use a specific parser, you can override the =compilers= list
19+
before calling the =setup()= like this:
20+
#+begin_src lua
21+
require('orgmode.utils.treesitter.install').compilers = { 'clang' }
22+
require('orgmode').setup()
23+
#+end_src
24+
After that, restart Neovim and run =:Org install_treesitter_grammar= to reinstall the parser.
25+
26+
[[https://github.com/nvim-treesitter/nvim-treesitter/wiki/Windows-support#which-c-compiler-will-be-used][nvim-treesitter]] mentions the similar issue as part of their Windows troubleshooting section.
27+
1428
** Dates are not in English
1529
Dates are generated with Lua native date support, and it reads your current locale when creating them.
1630
#+HTML: <br/>

0 commit comments

Comments
 (0)