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

/cygdrive/d/HOME/.emacs.d/test/task-3.3.0/Cargo.toml does not exist #3756

Open
djmitche opened this issue Jan 13, 2025 · 5 comments
Open

/cygdrive/d/HOME/.emacs.d/test/task-3.3.0/Cargo.toml does not exist #3756

djmitche opened this issue Jan 13, 2025 · 5 comments

Comments

@djmitche
Copy link
Collaborator

          I encountered a similar problem on Cygwin, despite the fact that `Cargo.toml` does exist:
-- Using Corrosion as a subdirectory
error: manifest path `/cygdrive/d/HOME/.emacs.d/test/task-3.3.0/Cargo.toml` does not exist
CMake Error at src/taskchampion-cpp/corrosion/cmake/CorrosionGenerator.cmake:26 (execute_process):
  execute_process failed command indexes:

    1: "Child return code: 101"

Call Stack (most recent call first):
  src/taskchampion-cpp/corrosion/cmake/CorrosionGenerator.cmake:227 (_cargo_metadata)
  src/taskchampion-cpp/corrosion/cmake/Corrosion.cmake:1113 (_generator_add_cargo_targets)
  src/taskchampion-cpp/CMakeLists.txt:19 (corrosion_import_crate)

Originally posted by @AnabasisXu in #3378 (comment)

@djmitche
Copy link
Collaborator Author

I'm curious about that .emacs.d in the path -- what is that from? And is the next component /test, related?

@AnabasisXu
Copy link

I'm curious about that .emacs.d in the path -- what is that from? And is the next component /test, related?

Not at all. I just happened to git clone to that path as I am trying to use more Emacs. Before doing this, I have tested at other paths and same error arises too.

@djmitche
Copy link
Collaborator Author

Ah, it appears that Cygwin is not supported for Rust -- rust-lang/rust#79854

So the cargo binary you're running is not built for Cygwin, so it has no idea what to do with a /cygdrive path.

@AnabasisXu
Copy link

I see...

I have tried to fix this by manually set the path of the Cargo.toml in D:\HOME\.emacs.d\test\task-3.3.0\src\taskchampion-cpp\corrosion\cmake\CorrosionGenerator.cmake, but it did not work out. Same result even if I provide a path in Windows format.

Any quick fix for this?

@djmitche
Copy link
Collaborator Author

I'm not terribly familiar, as I don't use Windows, but my sense is that MSYS and WSL are the currently-favored technologies for building POSIX applications on the platform. I suspect that attempting to manually fix things in the build process with Cygwin will be a difficult course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants