Comments (13)
guys!!!! problem solved.
you had to symlink to gcc-11
ln -sf /usr/local/bin/gcc-11 /usr/local/bin/gcc
They updated the readme for tree sitter haskell.
from doom-nvim.
No stress!!
from doom-nvim.
macOS? If yes, I got past that by adding require('nvim-treesitter.install').compilers = { 'gcc' }
to lua/doom/modules/config/doom-treesitter.lua
(though I think anywhere would do, as long as it's early enough). clang
defaults to c++11
while the Haskell tree-sitter parser relies on some c++14
features. something like that.
from doom-nvim.
Not exactly... there are 2 commonly used C/C++ compilers. Generally speaking, Linux-sphere uses gcc
and macOS uses clang
. In addition, the C++ language spec has different "versions". At least the clang
that comes with macOS defaults to version 11 of the spec. Current gcc
defaults to version 17 of the spec. Haskell treesitter depends on some features available in version 14 of the spec (and onwards). Also it looks like Apple symlinks gcc
to clang
which just adds to the confusion. macOS does not come with gcc
(it used to tho). Hope that helps.
from doom-nvim.
Hey, that's really weird because it works for me, can you please provide some information of your system? e.g. treesitter binary version
I'll not be able to help too much right now because I'm not at home :(
from doom-nvim.
Hi, have you managed to fix this? If you don't have the treesitter CLI then you can try installing it and trying again
from doom-nvim.
Hi, have you managed to fix this? If you don't have the treesitter CLI then you can try installing it and trying again
Yo! No not yet. but i haven't really been working on it either. i have been learning other doom stuff.
macOS? If yes, I got past that by adding
require('nvim-treesitter.install').compilers = { 'gcc' }
tolua/doom/modules/config/doom-treesitter.lua
(though I think anywhere would do, as long as it's early enough).clang
defaults toc++11
while the Haskell tree-sitter parser relies on somec++14
features. something like that.
I will try this!!
from doom-nvim.
yo it didn't work :(
I am looking into the issue more now!
from doom-nvim.
yo it didn't work :(
I am looking into the issue more now!
Did you brew install gcc
first? I should've probably mentioned it.
from doom-nvim.
ooh i just saw you replied again.
so this is what i have done:
- l have read this: tree-sitter/tree-sitter-haskell#34
- checked treesitter version
- and installed gcc with brew now
i also tried with clang bc somebody said recommended to try just incase.
still doesn't work. I will keep searching. I also asked about the error in the linked issue.
from doom-nvim.
wait a minute. doesn't this mean i am using wrong version of gcc. or how do i make sure that the brew provided gcc is used?? I have been googling a bit and it seems really hard to update clang++, no??
╰ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
from doom-nvim.
Yeah thanks man! The c world is quite new to me.
from doom-nvim.
Hi guys,
I just got my new macbook air m1 silicone and it seems that I get the exact same
error when starting neovim after having setup all of my configs.
I will report back if I figure out why.
from doom-nvim.
Related Issues (20)
- [BUG] Update minimum neovim version to 0.7 HOT 2
- [FEATURE REQUEST] Install script improvements (warn if already installed, --check flag)
- [FEATURE REQUEST] Refactor `require` to use `pcall` in language configurations
- [BUG] Error when using Telescope shortcut HOT 2
- [FEATURE REQUEST] Refactor `auto_installer` module to use mason.nvim
- [BUG] module 'null-ls' not found: HOT 1
- Colorizer not working anymore HOT 1
- [BUG] MacOS GCC Treesitter grammer install error `<sys/_types/_int8_t.h>`
- improved debugging of modules
- On Doom Install Whichkey Error HOT 6
- [BUG] tree sitter error when typing in telescope prompt
- [QUESTION] Nvim 0.8 support? HOT 8
- [BUG] cc LSP not working on Linux by default HOT 2
- [INFO]: (v4.1.0-alpha4) startup messages after nuking on macbook air M1
- [BUG] Symbols Sidebar requires setup HOT 2
- [BUG] Fugitive Commit doesn'work HOT 1
- [FEATURE REQUEST] add `module` name/path to each module bind tree -> make debugging easier HOT 1
- [BUG] Formatting typescript file does not respect shiftwidth settings, hence tabSize is incorrect
- [FEATURE REQUEST] Update `nvim-mapper` repo
- [BUG] Jump to definition bind from `<leader> c d` is overridden by diagnostics
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doom-nvim.