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 "folder '/Users/myName/GitHub/Eldiron/core_embed_binaries/embedded/' does not exist" #2

Closed
leugengroot opened this issue Sep 28, 2022 · 6 comments

Comments

@leugengroot
Copy link

What my intention was:

Download the repo and start the Creator

What was the result?

❯ cargo run --bin creator
   Compiling libc v0.2.132
   Compiling cfg-if v1.0.0
   Compiling proc-macro2 v1.0.43
   Compiling quote v1.0.21
   Compiling unicode-ident v1.0.3
   Compiling syn v1.0.99
   Compiling bitflags v1.3.2
   Compiling version_check v0.9.4
   Compiling autocfg v1.1.0
   Compiling core-foundation-sys v0.8.3
   Compiling cc v1.0.73
   Compiling log v0.4.17
   Compiling rustc-hash v1.1.0
   Compiling glob v0.3.0
   Compiling memchr v2.5.0
   Compiling foreign-types-shared v0.1.1
   Compiling block v0.1.6
   Compiling typenum v1.15.0
   Compiling minimal-lexical v0.2.1
   Compiling lazy_static v1.4.0
   Compiling bindgen v0.59.2
   Compiling wasm-bindgen-shared v0.2.83
   Compiling regex-syntax v0.6.27
   Compiling once_cell v1.14.0
   Compiling shlex v1.1.0
   Compiling lazycell v1.3.0
   Compiling peeking_take_while v0.1.2
   Compiling smallvec v1.9.0
   Compiling bumpalo v3.11.0
   Compiling termcolor v1.1.3
   Compiling serde_derive v1.0.144
   Compiling byteorder v1.4.3
   Compiling cty v0.2.2
   Compiling hashbrown v0.12.3
   Compiling wasm-bindgen v0.2.83
   Compiling same-file v1.0.6
   Compiling serde v1.0.144
   Compiling opaque-debug v0.3.0
   Compiling parking_lot_core v0.8.5
   Compiling crc32fast v1.3.2
   Compiling core-foundation-sys v0.7.0
   Compiling unicode-width v0.1.9
   Compiling scopeguard v1.1.0
   Compiling adler v1.0.2
   Compiling bit-vec v0.6.3
   Compiling ppv-lite86 v0.2.16
   Compiling static_assertions v1.1.0
   Compiling cfg_aliases v0.1.1
   Compiling cpal v0.14.0
   Compiling ttf-parser v0.15.2
   Compiling hexf-parse v0.2.1
   Compiling serde_json v1.0.85
   Compiling profiling v1.0.6
   Compiling bytemuck v1.12.1
   Compiling crossbeam-utils v0.8.11
   Compiling itoa v1.0.3
   Compiling cpal v0.13.5
   Compiling ryu v1.0.11
   Compiling humantime v2.1.0
   Compiling tinyvec_macros v0.1.0
   Compiling arrayvec v0.7.2
   Compiling either v1.8.0
   Compiling paste v1.0.9
   Compiling cfg-if v0.1.10
   Compiling dispatch v0.2.0
   Compiling copyless v0.1.5
   Compiling audio-engine v0.4.1
   Compiling colors-transform v0.2.11
   Compiling winit v0.26.1
   Compiling fixedbitset v0.4.2
   Compiling hound v3.4.0
   Compiling rfd v0.10.0
   Compiling pollster v0.2.5
   Compiling colori v0.1.1
   Compiling pathdiff v0.2.1
   Compiling fs_extra v1.2.0
   Compiling zeno v0.2.2
   Compiling libloading v0.7.3
   Compiling instant v0.1.12
   Compiling wgpu-types v0.12.0
   Compiling generic-array v0.14.6
   Compiling ahash v0.7.6
   Compiling ahash v0.8.0
   Compiling foreign-types v0.3.2
   Compiling num-traits v0.2.15
   Compiling indexmap v1.9.1
   Compiling lock_api v0.4.8
   Compiling smartstring v1.0.1
   Compiling clang-sys v1.3.3
   Compiling fxhash v0.2.1
   Compiling ogg v0.8.0
   Compiling raw-window-handle v0.4.3
   Compiling raw-window-handle v0.5.0
   Compiling objc_exception v0.1.2
   Compiling walkdir v2.3.2
   Compiling codespan-reporting v0.11.1
   Compiling miniz_oxide v0.5.4
   Compiling wgpu-core v0.12.2
   Compiling bit-set v0.5.3
   Compiling regex v1.6.0
   Compiling safe_arch v0.5.2
   Compiling tinyvec v1.6.0
   Compiling itertools v0.10.3
   Compiling gcd v2.1.0
   Compiling open v3.0.2
   Compiling wide v0.6.5
   Compiling lewton v0.10.2
   Compiling malloc_buf v0.0.6
   Compiling getrandom v0.2.7
   Compiling core-foundation v0.9.3
   Compiling cpufeatures v0.2.5
   Compiling mach v0.3.2
   Compiling atty v0.2.14
   Compiling dirs-sys v0.3.7
   Compiling nom v7.1.1
   Compiling core-foundation v0.7.0
   Compiling aho-corasick v0.7.19
   Compiling flate2 v1.0.24
   Compiling rand_core v0.6.3
   Compiling crossbeam-channel v0.5.6
   Compiling core-graphics-types v0.1.1
   Compiling directories v4.0.1
   Compiling ultraviolet v0.8.1
   Compiling parking_lot v0.11.2
   Compiling core-graphics v0.19.2
   Compiling digest v0.9.0
   Compiling block-buffer v0.9.0
   Compiling integer-sqrt v0.1.5
   Compiling png v0.17.6
   Compiling rand_chacha v0.3.1
   Compiling hashbrown v0.11.2
   Compiling objc v0.2.7
   Compiling core-graphics v0.22.3
   Compiling cexpr v0.6.0
   Compiling sha2 v0.9.9
   Compiling rand v0.8.5
   Compiling metal v0.23.1
   Compiling objc_id v0.1.1
   Compiling cocoa-foundation v0.1.0
   Compiling core-video-sys v0.1.4
   Compiling fontdue v0.7.2
   Compiling env_logger v0.9.0
   Compiling rust-embed-utils v7.2.0
   Compiling objc-foundation v0.1.1
   Compiling cocoa v0.24.0
   Compiling wasm-bindgen-backend v0.2.83
   Compiling copypasta v0.8.1
   Compiling code_editor v0.2.2
   Compiling wasm-bindgen-macro-support v0.2.83
   Compiling winit_input_helper v0.12.0
   Compiling thiserror-impl v1.0.34
   Compiling wasm-bindgen-macro v0.2.83
   Compiling rust-embed-impl v6.2.0
   Compiling uuid-macro-internal v1.1.2
   Compiling rhai_codegen v1.4.2
   Compiling coreaudio-sys v0.2.10
   Compiling rust-embed v6.4.0
   Compiling core_embed_binaries v0.1.0 (/Users/jens/GitHub/Eldiron/core_embed_binaries)
   Compiling js-sys v0.3.59
   Compiling thiserror v1.0.34
error: proc-macro derive panicked
 --> core_embed_binaries/src/lib.rs:4:10
  |
4 | #[derive(RustEmbed)]
  |          ^^^^^^^^^
  |
  = help: message: #[derive(RustEmbed)] folder '/Users/jens/GitHub/Eldiron/core_embed_binaries/embedded/' does not exist. cwd: '/Users/jens/GitHub/Eldiron'

error: could not compile `core_embed_binaries` due to previous error
warning: build failed, waiting for other jobs to finish...`

What was I expecting?

That I can compile and run the Creator Module

What I did exactly:

  • cloned/pulled the repo from Github on a MacBook pro running the Beta of macOS Ventura, rust installed
  • tried to start the process via console "cargo run --bin creator"
@markusmoenig
Copy link
Owner

Hi,

just create an empty folder "embedded" in the given directory. Git does not create the folder as it is empty on my machine, need to find a solution for this later.

@leugengroot
Copy link
Author

Hi Markus,

creating the empty folder did the trick, bit now I run into another error :-)

❯ cargo run --bin creator
   Compiling thiserror v1.0.34
   Compiling serde v1.0.144
   Compiling rhai v1.9.1
   Compiling coreaudio-sys v0.2.10
   Compiling js-sys v0.3.59
   Compiling core_embed_binaries v0.1.0 (/Users/jens/GitHub/Eldiron/core_embed_binaries)
   Compiling naga v0.8.5
   Compiling pathfinding v3.0.13
   Compiling web-sys v0.3.57
   Compiling console_log v0.2.0
   Compiling wgpu-hal v0.12.5
   Compiling serde_json v1.0.85
   Compiling vectorize v0.2.0
   Compiling uuid v1.1.2
   Compiling wgpu-core v0.12.2
   Compiling wgpu v0.12.0
   Compiling pixels v0.9.0
   Compiling coreaudio-rs v0.10.0
   Compiling cpal v0.14.0
   Compiling cpal v0.13.5
   Compiling audio-engine v0.4.1
   Compiling core_shared v0.1.0 (/Users/jens/GitHub/Eldiron/core_shared)
   Compiling core_render v0.1.0 (/Users/jens/GitHub/Eldiron/core_render)
   Compiling core_server v0.1.0 (/Users/jens/GitHub/Eldiron/core_server)
   Compiling creator v0.5.5 (/Users/jens/GitHub/Eldiron/creator)
    Finished dev [unoptimized + debuginfo] target(s) in 11.58s
     Running `target/debug/creator`
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', creator/src/editor.rs:624:24
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@markusmoenig
Copy link
Owner

Just fixed it, in development mode the editor just loads the local project from the repo, however some component was still expecting an installed project in the Documents folder (which you obviously don't have). Thanks.

@markusmoenig
Copy link
Owner

As this is fixed I close this issue for now. Please re-open if you have any other issue, thanks.

@leugengroot
Copy link
Author

leugengroot commented Oct 3, 2022

Edit:
made another new issue, as it looks I don't have the permission to reopen it ...


Hi,

ran into another problem ...

Jens

❯ cargo run --bin creator
   Compiling core_shared v0.1.0 (/Users/jens/GitHub/Eldiron/core_shared)
   Compiling core_server v0.1.0 (/Users/jens/GitHub/Eldiron/core_server)
   Compiling core_render v0.1.0 (/Users/jens/GitHub/Eldiron/core_render)
   Compiling creator v0.5.5 (/Users/jens/GitHub/Eldiron/creator)
    Finished dev [unoptimized + debuginfo] target(s) in 5.59s
     Running `target/debug/creator`
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', core_shared/src/asset/tileset.rs:72:67
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@fralonra
Copy link
Contributor

fralonra commented Apr 13, 2023

Hi,

just create an empty folder "embedded" in the given directory. Git does not create the folder as it is empty on my machine, need to find a solution for this later.

A common solution is to use a .gitkeep file to let git trace an empty folder.

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

No branches or pull requests

3 participants