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

Error when casile setup #165

Open
jiucenglou opened this issue May 21, 2024 · 2 comments
Open

Error when casile setup #165

jiucenglou opened this issue May 21, 2024 · 2 comments
Labels

Comments

@jiucenglou
Copy link

After I downloaded zip file, unzipped, git init, casile setup fails. Could you suggest how to fix ? Many thanks !

(base) user@localhost:~/Downloads/casile-template-master$ casile setup
⛫ Welcome to CaSILE ⁨v0.13.1⁩!                                                                                              ⟳ Configuring repository for use with CaSILE.
✔ Everything seems to be ship shape, warm up the presses!
⟳ Building target(s) using ‘make’.                                                                                        thread 'main' panicked at src/status/mod.rs:130:46:
called `Result::unwrap()` on an `Err` value: Error { code: -3, klass: 4, message: "revspec 'HEAD' not found" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
(base) user@localhost:~/Downloads/casile-template-master$ 
@jiucenglou
Copy link
Author

run with RUST_BACKTRACE=1 environment variable does not provide extra information

(base) user@localhost:~/Downloads/casile-template-master$ RUST_BACKTRACE=1 casile -d setup
⛫ Welcome to CaSILE ⁨v0.13.1⁩!                                                                                              ⟳ Configuring repository for use with CaSILE.
Is the path a Git repository? Yes
✔ Everything seems to be ship shape, warm up the presses!
Is the path a Git repository? Yes
Is the system’s ‘make’ executable? Yes
Are we safely outside of the CaSILE source repository? Yes
Can we write to the project base directory? Yes
Is the system’s ‘make’ a supported version of GNU Make? Yes
⟳ Building target(s) using ‘make’.                                                                                        thread 'main' panicked at src/status/mod.rs:130:46:
called `Result::unwrap()` on an `Err` value: Error { code: -3, klass: 4, message: "revspec 'HEAD' not found" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
(base) user@localhost:~/Downloads/casile-template-master$ 

@alerque
Copy link
Member

alerque commented May 30, 2024

This is an interesting case I didn't setup CaSILE to handle. I would have suggested using git clone to start with the template repo. Using the ZIP download is okay, but as you noted you have to initialize a Git repository yourself. CaSILE has a hard prerequisite that projects are tracked in Git.

You ran git init, but you repository still has no commits. Apparently some of the things casile needs require that it can inspect the history. It is complaining that there is no HEAD in the repository, which means you don't have even a single commit and hence it can't figure out where it is in life.

I'll add check for that specifically so it gives a more intelligible error message.

@alerque alerque transferred this issue from sile-typesetter/casile-template May 30, 2024
@alerque alerque added the bug label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants