Skip to content

Hello world example doesn't compile #7963

@juliancoffee

Description

@juliancoffee

Describe the bug

I copied the src/main.rs from the examples helloworld folder and got some errors. Obviously, embedding an image didn't work cause it lies in the main project, but that's sort of expected.
But then the main thing is that it uses fn ui method in the implementation of eframe::App, but it should be update.

To Reproduce
Steps to reproduce the behavior:

  1. Copy the example
  2. Run cargo run
  3. Fix image thing
  4. Run cargo run

Expected behavior
Seeing how it is on the screenshot in the Hello World folder

Image

Screenshots

Image

Desktop (please complete the following information):

  • OS: macos something new
  • Browser: None
  • Version:
eframe = "0.33.3"
egui_extras = { features = ["default", "image"], version = "0.33.3" }
env_logger = "0.11.9"

Smartphone (please complete the following information):

  • Device:
  • OS:
  • Browser
  • Version

Additional context

I think I could try an MR, after all, I got it to work with some tweaks, but I'm not sure if examples are checked with CI, maybe there's something wrong on my end?

Alright, example compiles and runs locally, so I guess either I'm using too old a version, or these examples are using too old a version 😅
But I use `eframe = "0.33.3" too, so I'm a bit confused why that's the case 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions