hx --grammar build
fails with Groovy tree-sitter grammar on Ubuntu 20.04
#9228
-
DescriptionI'm attempting to set up a tree-sitter grammar for Groovy: tree-sitter-groovy. SetupThe addition I made to my [[language]]
name = "groovy"
scope = "source.groovy"
roots = []
file-types = ["groovy"]
[[grammar]]
name = "groovy"
source = { git = "https://github.com/Decodetalkers/tree-sitter-groovy", rev = "4c4c13eb3121f6bdc76d3ead9a1083ed08e70177" } ExecutionThe fetch succeeded. hx --grammar fetch The build command failed with the following output: hx --grammar build Building 137 grammars
136 grammars already built
Failure 1/1: groovy Failed to execute C/C++ compiler
Error: 1 grammars failed to build DebuggingI searched the issues in this repository: Issues. The general advice was to check that both $ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ g++ --version
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR P The other advice were to check/set the $ echo $CC
$ which gcc
/usr/bin/gcc
$ set -Ux CC /usr/bin/gcc
$ echo $CC
/usr/bin/gcc
$ hx --grammar build
Building 137 grammars
136 grammars already built
Failure 1/1: groovy Failed to execute C/C++ compiler
Error: 1 grammars failed to build I realized the fact that I'm working in a System InfomationOperating System: Ubuntu 20.04 $ uname -a
Linux wdxd3ks5m3 5.15.0-91-generic #101~20.04.1-Ubuntu SMP Thu Nov 16 14:22:28 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux NotesI really love using Helix as my main editor. The rough edges I've encountered have been dealing with languages that are not supported out of the box ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I can reproduce the build failure. That groovy parser doesn't check in the C files under |
Beta Was this translation helpful? Give feedback.
I can reproduce the build failure. That groovy parser doesn't check in the C files under
src/
into git that we compile, so the parsing step fails