Tonic build error "there are too many leading `super` keywords"

I'd like to ask a question, I'm encountering this problem when compiling proto files with rust tonic-build

   |
11 |         super::super::super::trace::v1::ResourceSpans,
   |                ^^^^^ there are too many leading `super` keywords

For more information about this error, try `rustc --explain E0433`.

I'm going to build the client file for this proto file,and I'm cloning the entire opentelemetry folder.
This is my build file.

fn main() -> Result<(), Box<dyn std::error::Error>> {
    tonic_build::configure()
        .protoc_arg("--experimental_allow_proto3_optional")
        .build_server(false)
        .compile(
            &["opentelemetry/proto/collector/trace/v1/trace_service.proto"],
            &["."],
        )?;
    Ok(())
}

The solution has been found. Thank you.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.