#Bevy Getting Started not compiling on Windows

15 messages · Page 1 of 1 (latest)

naive grove
#

Hello,

I'm following the Getting Started Guide, and I'm running into some strange errors with toml_edit.

I am on the latest nightly (cargo 1.86.0-nightly (fd784878c 2025-01-03)), and only have the following in my project. I disabled all the optimisations to see if they were causing issues, but didn't change anything. I also tried changing the edition to 2021, but that also didn't affect it.

I couldn't find any relevant issues on the bevy or toml_edit github repos, so thought I'd ask here

# /Cargo.toml
[package]
name = "megugame"
version = "0.1.0"
edition = "2024"

[dependencies]
bevy = "0.15.1"
// /src/main.rs
use bevy::prelude::*;

fn main() {
    App::new().run();
}
shell fox
#

Not sure if you tried this or if it will fix the issue, but have you tried running cargo clean and then cargo run again?

naive grove
#

yeah I've run it a few times, as well as nuking the lockfile, but no luck

shell fox
#

Im installing the nightly cargo build to see if I get the same error

#

Been running Cargo v1.83 on my machine

naive grove
#

so the winnow::Located issue is coming from toml_edit, but toml_edit uses winnow 0.6.18, and it was deprecated in 0.6.23, so not sure why it's using the wrong version

#

I can get rid of that error by manually adding winnow = "0.6.18" to my Cargo.toml

#

still need to figure out these str errors though

#

maybe i should just try an older toml_edit version and see what happens

#

hmm the trick doesn't seem to be working for toml_edit unfortunately

shell fox
#

That is interesting. I just verified I dont have any issue using the nightly build (just to rule that out)

naive grove
#

hmmm

#

i nuked my lockfile and did this:

[dependencies]
bevy = "0.15.1"
winnow = "0.6.18"
toml_edit = "0.22.20"

and it seems to be compiling properly now...

#

i have no clue what's happening sobbing

I removed the winnow and toml_edit, removed my lockfile, and it's compiling???

rust having a weird one, but at least its working now lmao, guess I'll mark this as solved sobbing

thank you for your help though :)

shell fox
#

Weird! Glad its working though. Thats all that matters haha