Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #1028

Open
ktzouno opened this issue Nov 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ktzouno
Copy link

ktzouno commented Nov 29, 2024

Describe the bug

java -jar librespot-player-1.6.4.jar starts the first time properly and creates a config.toml file. But restarting it after that throws this exception:

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)
	at com.electronwill.nightconfig.core.Config.set(Config.java:26)
2024-11-29 19:18:49,601 TRACE FileConfiguration:148 - Added new entry to configuration file: cache.dir
	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)

The cache.dir path it refers to in config.toml exists, because it was created by it in the first run:

### Cache ###
[cache]
        dir = "./cache/"
        # Cache enabled
        enabled = true
        doCleanUp = true

Version/Commit
librespot-player-1.6.4.jar

Any ideas? 🙂

@ktzouno ktzouno added the bug Something isn't working label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant