LambDynamicLights broken on macOS using Minecraft 1.19.4
aellul27 opened this issue ยท 7 comments
Describe the bug
LambDynamicLights crashes when opening it in modmenu or opening a world macOS on the 1.19.4 build.
To Reproduce
Steps to reproduce the behavior:
- Install forge and lambdynamiclights
- Run installation
- Open any world
- See error
Expected behavior
The expected behavior is that the world renders in allowing the player to play in that server instance. Instead, lambdynamic lights crashes.
Desktop (please complete the following information):
- OS: macOS 12.6.5
- Minecraft 1.16.4
- Fabric Loader version 0.14.9
- Mods fabric-api-0.78.0+1.19.4, iris-mc1.19.4-1.6.1, lithium-fabric-mc1.19.4-0.11.1, phosphor-fabric-mc1.19.x-0.8.1, sodium-fabric-mc1.19.4-0.4.10+build.24, modmenu-6.2.1, lambdynamiclights-2.3.0+1.19.4
- LambDynLights Version 2.3.0
- Branch 1.19.4
Additional context
The error that seems to be causing it is:
[23/04/2023 18:15:29 pm] Caused by: java.nio.file.NoSuchFileException: config/lambdynlights.toml
[23/04/2023 18:15:29 pm] at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
[23/04/2023 18:15:29 pm] at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
[23/04/2023 18:15:29 pm] at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
Caused by: java.nio.file.NoSuchFileException: config/lambdynlights.toml
If you have a ldl config in your config folder, try deleting it
+1, I'm having the exact same issue, my exception is instead
dev.lambdaurora.lambdynlights.shadow.nightconfig.core.io.WritingException: Error while saving the FileConfig to config/lambdynlights.toml
Deleting the file did not resolve it.
I'm actually having both errors:
[07/05/2023 15:38:37 PM] dev.lambdaurora.lambdynlights.shadow.nightconfig.core.io.WritingException: Error while saving the FileConfig to config/lambdynlights.toml
[07/05/2023 15:38:37 PM] at dev.lambdaurora.lambdynlights.shadow.nightconfig.core.file.WriteAsyncFileConfig$WriteCompletedHandler.failed(WriteAsyncFileConfig.java:166)
And
[07/05/2023 15:38:37 PM] Caused by: java.nio.file.NoSuchFileException: config/lambdynlights.toml
I would assume that the path is wrong? Lambdynlights.toml does exist in the config folder, Java would not prompt a NoSuchFileException with an existing file, and I would doubt the mod is deleting the config file at anytime.
After learning a little about Fabric and how other mods make config implementations, I'm inclined to say that the problem is in the line
Having by example BorderlessMining
import net.fabricmc.loader.api.FabricLoader;
[...]
private static final transient Path configFile = FabricLoader.getInstance().getConfigDir().resolve("borderlessmining.json");
Opened a pull request to fix this issue: #152
What's the reason behind the re-opening? Did the issue persist?
Pull request #152 has not been merged with the repositiory. I have re-opened the issue so people who are encountering the issue can find the required changes and to bring attention to the issue.