-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Build failure on Cabal and Just grammars #6788
Comments
seems like your c++ compiler might be very old and doesn't use c++11 by default. You can try |
That was my thought, but I'm not sure what would be better?
|
Maybe apple-clang has a different default? Googling seems to turn up other people with a different problem, but other people always claim it works and the manpage definitely says gnu++14 is default even on mac... Odd. To enforce a uniform standard we could pass This is not quite the same as the normal clang default |
May need to add
|
that shouldn't matter we invoke the c compiler directly tough the CC crate. |
We can't compile C and Cpp files in one command using |
We probably don't need to restrict C to c99, I think we can just use c++11 if there is a scanner |
clang 14 on macos
|
To use |
Ok this was interesting, #6792 fixed this problem and with #6795 this actually fails in CI too (it already does right now) as we were simply ignoring grammar build failures by accident in the past. With those two PRs the problem is fixed and can be automatically tested in CI (so similar problems don't reappear in the future) |
Summary
Getting build failures with the new Cabal (#6485) grammar and Just. Appears to be C++ related?
Reproduction Steps
I tried this:
hx --grammar build
I expected this to happen:
Grammars built with no errors
Instead, this happened:
Errors building
just
andcabal
grammars.grammar build log
Helix log
~/.cache/helix/helix.log
Platform
macOS
Terminal Emulator
Alacritty
Helix Version
helix 23.03 (4cdba7c)
The text was updated successfully, but these errors were encountered: