Skip to content

Using a class from an external crate generate an extension conflict #1078

@gcesars

Description

@gcesars

I am trying to organize the code and avoid a huge library with the entire game and data logic in a single file.

Let's say I have a crate_a with a class/resource and a crate_b that needs to refer to this class for any reason.

Just by adding use crate_a::class_name in the crate_b library, it stops working. However, it compiles and runs the game.

The error is: ERROR: Attempt to register extension class 'InputManager', which appears to be already registered.

My guess is that the class is being registered when the library_a is loaded and it is being registered again when library_b is loaded.

Is this a user error? How to avoid it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: duplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions