-
-
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
Give warnings and errors when building from source on powershell. (Windows 10) resulting into fail build. #1973
Comments
looks like there's be a hard-coded |
thanks for making a fix @the-mikedavis , but it still throws warnings and errors. |
this is the last source that I build from history |
@the-mikedavis did I miss something from the installation? I'm starting to think the issue exist on my end. |
What versions of |
g++, gcc - 11.2.0 |
I try building one from November - June 2021 still no luck. |
I believe what's failing is the compilation command for tree-sitter gramamrs (here). Maybe the windows build is missing a flag? |
I'm sorry @the-mikedavis, I can't help you with the code. but now that you mentioned it. at the end it specifically mentioned that it can't find the directory for the tree-sitter. base on my recent build from source from November - June 2021. I encountered something similar, an error that has something to do with tree-sitter, it mention something about installing things recursively, submodules and empty directory. I use this source https://github.com/helix-editor/helix/tree/0af8928d630ada730402ad182e8d36a5db06a142 (Oct 3, 2021)(0af8928) |
Yeah a while back we were using git submodules for tree-sitter repositories. For old revisions you'll need to use |
@the-mikedavis Just an update. still failing when you build it from source using native windows, so I tried different approaches (still throwing the tree-sitter error). building it using wsl2 (ubuntu 20.04) went just fine, however when you change the theme :theme it throws an error about theme not supported required true color something like that. installing it using scoop was so smooth, I encountered no issues at all. |
Oh curious, I wonder if this is just a problem with compatibility with MinGW then 🤔 It sounds like on the wsl2/ubuntu setup you'll need to add a config to force true-color support: https://docs.helix-editor.com/configuration.html [editor]
true-color = true |
I forgot to mention that I use MinGW too on wsl2/ubuntu for gcc/g++. oh my bad. I didn't finish reading the 0.4 Configuration part docs. |
I'm getting this error on WSL2 latest version of rustic installed. |
@Antonio-Bennett make sure you have gcc/g++ compiler on wsl2. |
@reiend i do :( not sure why it started happening because it worked before then I switched to set it up with my forked repo and after it stopped working completely even with the main repo. Using homebrew rn but it doesn't get latest changes quickly |
weird. I tried building it again on native windows but still give the same error above. |
@Antonio-Bennett you can try installing via scoop, downsides is, it doesn't have the latest commits |
@reiend what's the difference to just continuing to use homebrew? I get to stay in wsl with homebrew though |
what is the helix version on homebrew? |
@reiend did you try |
Tried |
same It didn't work. |
Hi, I'm with the same errors from treesitter. |
Are all of you using GCC? I use |
Ok I tryed something. I was trying to run rustlings exercises and rust keep saying me that I have to install vs 2019 or vs 2022, I downloaded the installer for vs 2022 and selected the c++ tools, try the rustlings watch command and everything started working just fine, next I went to helix files and run again the commands, "cargo install --path helix-term" to be exactly, and it works, hx command is now in my path and I can continue with the normal installation of helix. As @kirawi noted I was trying with GCC. I don't know why but there's the problem with all of this. |
It seems that although we are using MingW, the compiler still received arguments in MSVC style. |
We could try having separate arguments for an MingW toolchain. |
Windows 10
Powershell 7.2.2
With gcc and g++ installed(MingW). installed using choco intall
rust was installed using choco install rust
To replicate the issue.
use windows 10
use powershell
install rust via choco install rust
install mingw via choco install
git clone https://github.com/helix-editor/helix
cd helix
cargo install --path helix-term
the warning and errors will occur on building[208-214]
see image below
The text was updated successfully, but these errors were encountered: