No implementation for ninja.leaping.configurate.loader.ConfigurationLoader

Hello,

I create a new topic because the original was marked as “IGNORE” by its author.
I have the pretty same issue as described here : IGNORE: Configurate ..no implementation ; unable to create injector

I still have this error

No implementation for ninja.leaping.configurate.loader.ConfigurationLoader annotated with 
@org.spongepowered.api.config.DefaultConfig(sharedRoot=true) was bound".

I have read the doc and write my injection as follow :

 @Inject
 @DefaultConfig(sharedRoot = true)
 private ConfigurationLoader configurationLoader;

Documentation say it is possible to use @DefaultConfig on a ConfigurationLoader to have it directly.
Read here : Configuring Plugins — Sponge 7.2.0 documentation

I’ve also use private ConfigurationLoader<? extends ConfigurationNode> configurationLoader; instead of private ConfigurationLoader configurationLoader;

But issue are the same.

I use

plugins {
    id 'java'
    id 'org.spongepowered.plugin' version '0.9.0'
}
dependencies {
    compile 'org.spongepowered:spongeapi:7.1.0'
}

Does I missunderstood documentation ?

Try injecting on a field of type ConfigurationLoader<CommentedConfigurationNode> instead.

1 Like

Its working :smiley: Thanks :slight_smile:
I thought generics are optionnal and it could fit into <? extends ConfigurationNode> but I was wrong.