-
Notifications
You must be signed in to change notification settings - Fork 53
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
Compile error, possibly two tui versions? #263
Comments
I get the same error installing macchina through EDIT 1: Building from source works fine, this is weird. Our CI also hasn't failed. EDIT 2: This shouldn't be happening, |
I will update macchina's AUR package so you could at least download it on your Arch box, while we figure things out. |
This might be a lockfile issue, I'll keep you posted. |
The issue has been addressed and the AUR package no longer fails to build, BUT the cargo package is still facing the same issue. |
I tried building with +nightly to turn on macro backtraces (
Is it complaining because the lifetime does not match? Full output here:
(see above, not sure if remainder is helpful)
|
I can't really provide you with a good answer to that question 😕
|
I just tried (successfully) building the AUR package and I notice that |
Interesting, I still haven't figured out why they are incompatible despite being identical with one another. |
We got another issue, except I (and you) cannot reproduce it as the AUR package builds successfully. |
color-to-tui 0.2.0 is pulling in tui 0.19.0: |
I misinterpreted My Rust-fu has gotten rusty these days. Anyways, nice catch! We'll need @uttarayan21 to update their EDIT: Cargo's documentation seems to disagree.
|
I updated the dependency of |
Thank you :) Any ideas as to how I can test whether this works locally or not? I can build fine locally, but packaging and installing through cargo fails. I want to avoid pushing broken versions. |
Turns out that didn't fix it, I yanked Here's the lockfile just to be sure. Checked out a09ab17.
|
I also have only one
|
Yeah, building from source doesn't have this issue. |
Too old Rust version? Though, |
Could be. I did receive a report from the same user a while back and I did inform them to upgrade to the latest version of I'm not really sure. |
Actually, this makes no sense, compiling with
Can you try building with |
I've ran |
😄 you're asking me?! I thought you could try |
Hmm, I was thinking of the wrong command then! EDIT: |
I'd clear the cache, start from scratch and build it offline. |
As in the build artifacts? I already did that :/ |
Then, it's probably pulling in something that shouldn't be there when in online mode. Can you get a |
Can do! |
Yeah, it looks like a cache issue. After clearing the build artifacts, both offline and online builds are no longer working. Here's the resulting diff, but I don't see any mentions of |
That's what I was looking for. Btw, I find it easier to read with |
Online Cargo.lock shows macchina pulling tui 0.18.0 while other dependencies (ansi-to-tui and color-to-tui) are pulling the latest (0.19.0). Bumping tui to 0.19.0 fixes those cryptic error messages. I wonder if this is solved for real or cargo is playing games. |
Hmm... you do specify the exact version. Are those crates calling tui ^0. |
I am, both dependencies I mentioned are specifying Either the documentation is contradicting itself, or I'm misunderstanding it, somehow. |
Sorry, was offline myself for an hour. I thought the above would pull the latest version of the 0.* series, in this case 0.19.0 conflicting with your 0.18.0. But, anyway all good now I guess. |
🤞 |
The issue should be resolved now with Thank you all, you've been super helpful - I would not have done it without you! |
Describe the bug
When compiling Macchina v6.1.1, I receive the error:
expected enum `tui::style::Color`, found a different enum `tui::style::Color` arguments to this function are incorrect
. I am compiling withcargo install macchina
on Arch Linux using Rust v1.63To Reproduce
Steps to reproduce the behavior:
cargo install macchina
I have cleared
~/.cargo/registry/cache
,~/.cargo/registry/index
and~/.cargo/registry/src
but results in the same error.Expected behavior
Cargo to finish compiling and install macchina binary.
Screenshots
Full error:
System Information
The text was updated successfully, but these errors were encountered: