https://linen.dev logo
Cannot run locally
# help
a
I've already tried
cargo build
prior to running, and changing rustup version to
1.65
(was
1.67
) without success (though I'm new to rust so maybe I needed to do something additional for this project to actually use the different rustup version?) Anyway, running
cargo shuttle run
I get Compiling until
Copy code
error: couldn't read \\?\C:\Users\REDACTED\Documents\GitHub\rusty-discord-bot-2\target\debug\build\rustversion-f67f6bf812872eda\out/version.expr: The filename, directory name, or volume label syntax is incorrect. (os error 123)
   --> C:\Users\REDACTED\.cargo\registry\src\github.com-1ecc6299db9ec823\rustversion-1.0.11\src\lib.rs:185:30
    |
185 | const RUSTVERSION: Version = include!(concat!(env!("OUT_DIR"), "/version.expr"));
    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `include` (in Nightly builds, run with -Z macro-backtrace for more info)


error: aborting due to previous error


error: could not compile `rustversion` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
Error: 1 job failed
Currently trying to do this on Windows 10 - running a very basic serenity (discord bot) app originally generated by shuttle. Is it because it's expecting a linux based path (direction of the slash is different) which isn't working on Windows? So far I've just been deploying to get something running but would like to be able to run locally too for faster testing 😅 Thanks!
k
You may need to do a
cargo +1.65 build
first, and then
cargo +1.65 shuttle run
for it to work on windows.
1.66 may work too. The
+<version>
syntax is just to run a cargo command with a specific toolchain, if your default toolchain is that version you shouldn't need it.
a
Awesome, resolved! Thanks for the quick response 🙂 was not aware of the plus syntax, super convenient!
k
No worries! Yeah, it's a great little trick (you can also do +nightly, for example)
a
I always error, in windows 10 , shuttle 0.10
a
are you running the normal or binstall version of cargo-shuttle?
a
normal i solved , reinstall cargo-shuttle by 1.65
cargo +1.65 install cargo-shuttle --force
a
thanks for the update! I'll let other people know to try that if they come across it
r
it's not working
It is giving this error
k
r
Thanks, let me try
Not working
Same error
k
r
yes finally working, thanks a lot ❤️ and also thanks for fast replies ❤️
k
No worries, have fun!
r
hello @kind-area-3810 can i use cargo version 1.68 ?
g
I have not heard of any issues regarding Rust versions in a while. It should work.
4 Views