Open ujwal-jain opened 3 years ago
Looks like you ran into error while compiling the Haskell grammar, I am not an expert on that but I remember there was issues.
@theHamsta you followed that better, could you help us a bit here?
It works on our CI with gcc-10 https://github.com/nvim-treesitter/nvim-treesitter/runs/3013299834. Maybe you can borrow that setup? Could it be related that your GCC tries to use libcpp instead of it's libstdc++
You need a compiler that uses C++-14 as a default language or download the parser from CI or compile the parser manually compiling C++ and C separately to be able to specify the language options.If it's possible we would like to avoid our 1-command compilation by three invocations because only one language failing with Apple clang.
Do you need haskell? You could also specify ignore_install = {"haskell"}
in your setup call.
Not really sure what the problem is, but certainly I don’t need Haskell, so I’m just going to ignore it lol. I tried following that setup you linked but to no success…
So this setup should just skip Haskell in maintained
. You can also remove ensure_install
and just install all parsers you need manually or just run :TSInstall all
once where Haskell will but it will not annoy you the next start-up
lua <<EOF
require'nvim-treesitter.configs'.setup {
ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
ignore_install = { "haskell" }, -- List of parsers to ignore installing
highlight = {
enable = true, -- false will disable the whole extension
disable = { "c", "rust" }, -- list of language that will be disabled
},
}
EOF
I was able to fix this on my mac by doing the following
gcc
with brew install gcc
gcc-11 --version
CC
environment variable to gcc-11
with export CC='gcc-11'
:TSInstall haskell
Describe the bug
I installed neovim on Mac through homebrew and after doing PlugInstall, nvim-treesitter is not compiling the languages.
To Reproduce
Steps to reproduce the behavior:
Install neovim through homebrew Install Plug package manager for neovim Add Plug 'nvim-treesitter/nvim-treesitter' to the init.vim Type
nvim
in the command line At the bottom, the status for treesitter will be downloading, then compiling, then will result in errors.Expected behavior
Should just compile and do syntax highlighting...
Output of
:checkhealth nvim_treesitter
Paste the output here
This is the start of the errors, there's more things like this.
Output of
nvim --version
Additional context
I feel like its a problem with my GCC version, so I looked online and found that some people fixed this issue by adding CC="gcc-11" in their .zshrc. Sadly, this didn't work for me.