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

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 this issue Oct 31, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@tbenr
Copy link

tbenr commented Oct 31, 2024

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

@tbenr tbenr added the bug Something isn't working label Oct 31, 2024
@Fummowo
Copy link

Fummowo commented Nov 17, 2024

Having the same issue 😓

@iVolt1
Copy link

iVolt1 commented Dec 9, 2024

Same issue here too.

@iVolt1
Copy link

iVolt1 commented Dec 9, 2024

I should add that 1.63 still works ok for me.

@chommik
Copy link

chommik commented Dec 30, 2024

I'm having the same problem, so I did a quick bisect to get some clues. It turns out, that d68d59b is the one to blame – librespot-player runs fine with this commit reverted.

@devgianlu
Copy link
Member

devgianlu commented Dec 30, 2024

I'm having the same problem, so I did a quick bisect to get some clues. It turns out, that d68d59b is the one to blame – librespot-player runs fine with this commit reverted.

Yes, that seems to be the problem. I cannot understand why tho. I am a bit rusty with my own code after so many years.

Since this is not actively developed anymore I will probably downgrade and pin the version of the lib.

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

5 participants