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

cargo run --example ggez fails #1

Closed
debris opened this issue Aug 22, 2019 · 2 comments · Fixed by #3
Closed

cargo run --example ggez fails #1

debris opened this issue Aug 22, 2019 · 2 comments · Fixed by #3
Labels
feature New feature or request
Milestone

Comments

@debris
Copy link
Contributor

debris commented Aug 22, 2019

error:

thread 'main' panicked at 'calledResult::unwrap()on anErrvalue: ResourceNotFound("ui.png", [("/Users/marek/projects/iced/target/release/examples/resources", FilesystemError("Path \"ui.png\" is not valid: must be an absolute path with no references to parent directories")), ("/Users/marek/Library/Application Support/ggez.iced", FilesystemError("Path \"ui.png\" is not valid: must be an absolute path with no references to parent directories")), ("/Users/marek/Library/Preferences/ggez.iced", FilesystemError("Path \"ui.png\" is not valid: must be an absolute path with no references to parent directories"))])', src/libcore/result.rs:999:5

@debris
Copy link
Contributor Author

debris commented Aug 22, 2019

I'm not sure what is the best way to fix it is and how ggez attaches resources to the project

@hecrj
Copy link
Member

hecrj commented Aug 22, 2019

ggez loads resources based on the executable location.

In order to run the example, you need to create a resources symbolic link in target/debug/examples pointing to examples/resources. In Fish:

ln -s (pwd)/examples/resources target/debug/examples/.

@hecrj hecrj closed this as completed in #3 Aug 27, 2019
@hecrj hecrj added the feature New feature or request label Aug 27, 2019
@hecrj hecrj added this to the 0.1.0 milestone Sep 24, 2019
tarkah pushed a commit to tarkah/iced that referenced this issue Sep 2, 2022
…gable-area-when-cramped

When pane grid title bar is cramped, still show content until hover and allow dragging
tarkah added a commit to tarkah/iced that referenced this issue Sep 2, 2022
CurryPseudo pushed a commit to CurryPseudo/iced that referenced this issue Apr 25, 2023
bungoboingo referenced this issue in bungoboingo/iced Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants