Skip to content
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

Problem trying to compile last version on Master branch #2181

Closed
javierFerFer opened this issue Apr 19, 2022 · 6 comments
Closed

Problem trying to compile last version on Master branch #2181

javierFerFer opened this issue Apr 19, 2022 · 6 comments
Labels
C-bug Category: This is a bug O-windows Operating system: Windows

Comments

@javierFerFer
Copy link

Summary

Following the instructions of the reader, on windows 11 with Rust installed and c and c++ compilers installed, it is not possible to compile the cloned version of the repository.

You get the following error:

--- stder
thread 'main' panicked at 'Failed to compile tree-sitter grammars: Failed to build some grammar(s)

Caused by:
Parser compilation failed.
Stdout: scanner.c
C:\Users\Usuario\AppData/Roaming/helix\runtime\grammars\sources\haskell\src\scanner.c(211): error C2146: syntax error: missing ')' before identifier 'vs'

Reproduction Steps

I tried this:

  1. git clone https://github.com/helix-editor/helix
  2. cd helix
  3. cargo install --path helix-term --> Problem here
  4. hx --grammar fetch
  5. hx --grammar build

I expected this to happen:
Complete all commands

Instead, this happened:

Get this error
--- stder
thread 'main' panicked at 'Failed to compile tree-sitter grammars: Failed to build some grammar(s)

Caused by:
Parser compilation failed.
Stdout: scanner.c
C:\Users\Usuario\AppData/Roaming/helix\runtime\grammars\sources\haskell\src\scanner.c(211): error C2146: syntax error: missing ')' before identifier 'vs'

Helix log

~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines

Platform

Windows 11

Terminal Emulator

CMD

Helix Version

22.03-105-gcc68fa85

@javierFerFer javierFerFer added the C-bug Category: This is a bug label Apr 19, 2022
@sudormrfbin sudormrfbin added the O-windows Operating system: Windows label Apr 19, 2022
@fennelhans
Copy link

image

@kirawi
Copy link
Member

kirawi commented Apr 20, 2022

Which C/C++ compiler and version are you using?

@fennelhans
Copy link

Which C/C++ compiler and version are you using?

gcc.exe (MinGW-W64 x86_64-posix-seh, built by Brecht Sanders) 11.2.0

@javierFerFer
Copy link
Author

javierFerFer commented Apr 21, 2022

Which C/C++ compiler and version are you using?

gcc.exe (MinGW-W64 x86_64-posix-seh, built by Brecht Sanders) 11.2.0

How you define a C/C++ compiler when trying to compile helix-editor with cargo? I cannot compile and I supose that I have some problems with the compiler in Windows 11.....

@slinlee
Copy link
Contributor

slinlee commented Apr 21, 2022

This looks similar to this #1973

@pascalkuthe
Copy link
Member

This was likely fixed by #3190 if you still have issues on the latest master please open a new issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug O-windows Operating system: Windows
Projects
None yet
Development

No branches or pull requests

6 participants