FyroxEngine / Fyrox

3D and 2D game engine written in Rust

Home Page:https://fyrox.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot create a project with fyrox-template that starts with a number

zment4 opened this issue · comments

Trying to run fyrox-template init --name 2dtest results in the following error

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: 
Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." }'

After a few baffling minutes, I realized the error was because the name started with a number, and for whatever reason, that's a no-go. I quickly patched up the template source to return a clearer error message in case someone else tries to create a new project with a name starting with a number, and doesn't realize why it doesn't work. PR incoming.