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

Multiple channel mappings using snowflakes throws NumberFormatException on config save #19

Closed
zachbr opened this issue Jan 2, 2019 · 3 comments
Labels
area: mutators Issue relates to text transformations priority: normal Issue has normal priority for resolution type: bug Something isn't working

Comments

@zachbr
Copy link
Owner

zachbr commented Jan 2, 2019

16:06:40.330 [main] ERROR init - Could not save configuration file!
java.io.IOException: java.lang.NumberFormatException: For input string: "508562150651068416"
	at ninja.leaping.configurate.loader.AbstractConfigurationLoader.save(AbstractConfigurationLoader.java:174)
	at io.zachbr.dis4irc.config.Configuration.saveConfig$Dis4IRC_main(Configuration.kt:63)
	at io.zachbr.dis4irc.Dis4IRC.<init>(Dis4IRC.kt:76)
	at io.zachbr.dis4irc.Dis4IRCKt.main(Dis4IRC.kt:24)
Caused by: java.lang.NumberFormatException: For input string: "508562150651068416"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:583)
	at java.lang.Integer.parseInt(Integer.java:615)
	at com.typesafe.config.impl.SimpleConfigObject$RenderComparator.compare(SimpleConfigObject.java:452)
	at com.typesafe.config.impl.SimpleConfigObject$RenderComparator.compare(SimpleConfigObject.java:422)
	at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
	at java.util.TimSort.sort(TimSort.java:220)
	at java.util.Arrays.sort(Arrays.java:1438)
	at com.typesafe.config.impl.SimpleConfigObject.render(SimpleConfigObject.java:483)
	at com.typesafe.config.impl.AbstractConfigValue.render(AbstractConfigValue.java:356)
	at com.typesafe.config.impl.SimpleConfigObject.render(SimpleConfigObject.java:510)
	at com.typesafe.config.impl.AbstractConfigValue.render(AbstractConfigValue.java:356)
	at com.typesafe.config.impl.SimpleConfigObject.render(SimpleConfigObject.java:510)
	at com.typesafe.config.impl.AbstractConfigValue.render(AbstractConfigValue.java:356)
	at com.typesafe.config.impl.SimpleConfigObject.render(SimpleConfigObject.java:510)
	at com.typesafe.config.impl.AbstractConfigValue.render(AbstractConfigValue.java:356)
	at com.typesafe.config.impl.AbstractConfigValue.render(AbstractConfigValue.java:372)
	at ninja.leaping.configurate.hocon.HoconConfigurationLoader.saveInternal(HoconConfigurationLoader.java:219)
	at ninja.leaping.configurate.loader.AbstractConfigurationLoader.save(AbstractConfigurationLoader.java:169)
	... 3 more

Caused by:
lightbend/config#604
lightbend/config#541

@zachbr zachbr added type: bug Something isn't working priority: normal Issue has normal priority for resolution area: mutators Issue relates to text transformations labels Jan 2, 2019
@zachbr
Copy link
Owner Author

zachbr commented Jan 2, 2019

Will likely just disable the post-bridge initialization configuration save until this is fixed.
As a result, mutator configs will not be saved in the default configuration but people can copy from the example config until this issue is resolved by the HOCON library.

zachbr added a commit that referenced this issue Jan 2, 2019
@zachbr
Copy link
Owner Author

zachbr commented Jan 2, 2019

Release 1.0.2 will not save the config after bridge init as a workaround for this issue.

@zachbr
Copy link
Owner Author

zachbr commented Oct 3, 2020

Resolved by library updates at some point, seems to save just fine. Looks like they fixed the sorting system.

@zachbr zachbr closed this as completed Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: mutators Issue relates to text transformations priority: normal Issue has normal priority for resolution type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant