Errors during cargo build

After make devshell and cargo build I am seeing the following errors:

error: proc-macro derive panicked
  --> chirpstack/src/api/mod.rs:87:10
   |
87 | #[derive(RustEmbed)]
   |          ^^^^^^^^^
   |
   = help: message: #[derive(RustEmbed)] folder '/chirpstack/chirpstack/../ui/build' does not exist. cwd: '/chirpstack'

error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope
   --> chirpstack/src/api/mod.rs:283:24
    |
89  | struct Asset;
    | ------------- function or associated item `get` not found for this
...
283 |     let asset = Asset::get(path).ok_or_else(warp::reject::not_found)?;
    |                        ^^^ function or associated item not found in `Asset`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following traits define an item `get`, perhaps you need to implement one of them:
            candidate #1: `SliceIndex`
            candidate #2: `Row`
            candidate #3: `NamedRow`
            candidate #4: `Source`
            candidate #5: `MulticastGroupService`
            candidate #6: `GatewayService`
            candidate #7: `DeviceService`
            candidate #8: `DeviceProfileTemplateService`
            candidate #9: `DeviceProfileService`
            candidate #10: `ApplicationService`
            candidate #11: `TenantService`
            candidate #12: `UserService`
            candidate #13: `tonic::metadata::map::as_metadata_key::Sealed`
            candidate #14: `prometheus_client::metrics::counter::Atomic`
            candidate #15: `prometheus_client::metrics::gauge::Atomic`
            candidate #16: `RustEmbed`
            candidate #17: `rustls::client::StoresClientSessions`
            candidate #18: `rustls::server::StoresServerSessions`
            candidate #19: `Commands`
            candidate #20: `crc16::CrcType`
            candidate #21: `rustls::client::client_conn::StoresClientSessions`
            candidate #22: `rustls::server::server_conn::StoresServerSessions`
            candidate #23: `ClientPersistence`
            candidate #24: `rdkafka::message::Headers`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `chirpstack` due to 2 previous errors

Has anyone experienced these before?

You’re not the first to get this error. I only know anything about the rust on cars :slight_smile:

@fmgst that explanation does not help as i am running the latest master on chirpstack so it should not have errors regarding unimplemented methods…

In that case, you should report issue on github.

In my case, this forum is for hacks to be reviewed by people who know better :slight_smile:

You need to run make build-ui first:

1 Like