librespot-org / librespot-java

The most up-to-date open source Spotify client
Apache License 2.0
386 stars 95 forks source link

1.6.4 Does Not start: Cannot get/create entry with parent path [cache] because of an incompatible intermediary value of type #1011

Open tbenr opened 2 weeks ago

tbenr commented 2 weeks ago

Describe the bug when running java -jar librespot-player-1.6.4.jar it doesn't start even with freshly generated config.

1.6.3 works instead (same config)

my java version:

openjdk 21.0.4 2024-07-16 OpenJDK Runtime Environment (build 21.0.4+7-Ubuntu-1ubuntu224.04) OpenJDK 64-Bit Server VM (build 21.0.4+7-Ubuntu-1ubuntu224.04, mixed mode, sharing)

Screenshots/Stracktraces/Logs

Exception in thread "main" com.electronwill.nightconfig.core.IncompatibleIntermediaryLevelException: Cannot get/create entry with parent path [cache] because of an incompatible intermediary value of type: class com.electronwill.nightconfig.core.SimpleCommentedConfig
    at com.electronwill.nightconfig.core.concurrent.StampedConfig.getOrCreateConfig(StampedConfig.java:429)
    at com.electronwill.nightconfig.core.concurrent.StampedConfig.set(StampedConfig.java:576)
    at com.electronwill.nightconfig.core.utils.ConfigWrapper.set(ConfigWrapper.java:25)
2024-10-31 12:25:19,062 TRACE FileConfiguration:148 - Added new entry to configuration file: cache.dir
    at com.electronwill.nightconfig.core.Config.set(Config.java:26)
    at xyz.gianlu.librespot.player.FileConfiguration.checkMissingKeys(FileConfiguration.java:149)
    at xyz.gianlu.librespot.player.FileConfiguration.checkMissingKeys(FileConfiguration.java:144)
    at xyz.gianlu.librespot.player.FileConfiguration.updateConfigFile(FileConfiguration.java:196)
    at xyz.gianlu.librespot.player.FileConfiguration.<init>(FileConfiguration.java:95)
    at xyz.gianlu.librespot.player.Main.main(Main.java:36)

Version/Commit 1.6.4

Fummowo commented 2 days ago

Having the same issue 😓