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

Enquote Failure for Mac Installation #43

Closed
EmperorEntropy opened this issue Jan 3, 2024 · 8 comments
Closed

Enquote Failure for Mac Installation #43

EmperorEntropy opened this issue Jan 3, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@EmperorEntropy
Copy link

Hello. I am on a macOS, and I attempted to update my version of matugen by reinstalling it via cargo. However, I encountered the following error message while doing so:

error[E0433]: failed to resolve: use of undeclared crate or module `enquote`
 --> /Users/kl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/matugen-1.2.1/src/wallpaper/macos.rs:9:9
  |
9 |         enquote::enquote('"', path),
  |         ^^^^^^^ use of undeclared crate or module `enquote`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `matugen` (bin "matugen") due to previous error
error: failed to compile `matugen v1.2.1`, intermediate artifacts can be found at `/var/folders/gv/ff_6l8ys0mzb8bbrg2s7s5f00000gn/T/cargo-install6q2jJi`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Thank you!

@InioX InioX added the bug Something isn't working label Jan 4, 2024
InioX added a commit that referenced this issue Jan 4, 2024
@InioX
Copy link
Owner

InioX commented Jan 4, 2024

Hi!

Sorry about that, very stupid error on my end. Could you try compiling again on the latest commit?

@EmperorEntropy
Copy link
Author

I get a new error after compiling again on the latest commit:

error[E0432]: unresolved import `enquote`
 --> src/wallpaper/macos.rs:2:5
  |
2 | use enquote;
  |     ^^^^^^^ no external crate `enquote`

warning: unused import: `Help`
 --> src/util/image.rs:1:18
  |
1 | use color_eyre::{Help, Report};
  |                  ^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

For more information about this error, try `rustc --explain E0432`.
warning: `matugen` (bin "matugen") generated 1 warning
error: could not compile `matugen` (bin "matugen") due to previous error; 1 warning emitted
error: failed to compile `matugen v1.2.1 (https://github.com/InioX/matugen.git#9df00fc8)`, intermediate artifacts can be found at `/var/folders/gv/ff_6l8ys0mzb8bbrg2s7s5f00000gn/T/cargo-installXOBCHK`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

InioX added a commit that referenced this issue Jan 4, 2024
@InioX
Copy link
Owner

InioX commented Jan 4, 2024

How about now?

@EmperorEntropy
Copy link
Author

I still get an error about enquote:

error[E0463]: can't find crate for `enquote`
 --> src/wallpaper/macos.rs:2:1
  |
2 | extern crate enquote;
  | ^^^^^^^^^^^^^^^^^^^^^ can't find crate

warning: unused import: `Help`
 --> src/util/image.rs:1:18
  |
1 | use color_eyre::{Help, Report};
  |                  ^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

For more information about this error, try `rustc --explain E0463`.
warning: `matugen` (bin "matugen") generated 1 warning
error: could not compile `matugen` (bin "matugen") due to previous error; 1 warning emitted
error: failed to compile `matugen v1.2.1 (https://github.com/InioX/matugen.git#d2a268b4)`, intermediate artifacts can be found at `/var/folders/gv/ff_6l8ys0mzb8bbrg2s7s5f00000gn/T/cargo-installZnkMrW`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

@InioX
Copy link
Owner

InioX commented Jan 4, 2024

I have no idea what's causing the issue then.

It's defined under target.'cfg(macos)'.dependencies right here:

enquote = "1.1.0"

I guess as a last resort, I could try adding enquote to normal dependencies?

@InioX
Copy link
Owner

InioX commented Jan 18, 2024

Does it compile now on the dev branch?

@EmperorEntropy
Copy link
Author

Yes! I can install it without any issues, and it works properly! Thanks.

@InioX
Copy link
Owner

InioX commented Jan 18, 2024

Still weird that it did not pick it up inside target.'cfg(macos)'.dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants