Closed cgw2023 closed 4 months ago
[14:33:20 ERROR]: Error occurred while enabling ResidenceForm v2.2.0 (Is it up to date?)
java.io.UncheckedIOException: java.nio.file.FileSystemException: plugins/ResidenceForm/lang\en_US.yml: Invalid argument
at ltd.rymc.form.residence.config.ResourceConfigManager.reloadConfig(ResourceConfigManager.java:148) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.serialiser.AbstractLanguageSerialiser.deserialise(AbstractLanguageSerialiser.java:40) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.serialiser.AbstractLanguageSerialiser.deserialise(AbstractLanguageSerialiser.java:14) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.shade.space.arim.dazzleconf.internal.processor.FlexibleTypeImpl.fromSerialiser(FlexibleTypeImpl.java:332) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.shade.space.arim.dazzleconf.internal.processor.FlexibleTypeImpl.getObject0(FlexibleTypeImpl.java:319) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.shade.space.arim.dazzleconf.internal.processor.FlexibleTypeImpl.getObject(FlexibleTypeImpl.java:275) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.shade.space.arim.dazzleconf.internal.processor.Composition.processObject(Composition.java:89) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.shade.space.arim.dazzleconf.internal.processor.ProcessorBase.getProcessedValue(ProcessorBase.java:126) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.shade.space.arim.dazzleconf.internal.processor.ProcessorBase.process(ProcessorBase.java:97) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.shade.space.arim.dazzleconf.internal.processor.ProcessorBase.createConfig(ProcessorBase.java:71) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.shade.space.arim.dazzleconf.factory.ConfigurationFormatFactory.loadDefaults(ConfigurationFormatFactory.java:139) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.shade.space.arim.dazzleconf.factory.DelegatingConfigurationFactory.loadDefaults(DelegatingConfigurationFactory.java:67) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.shade.space.arim.dazzleconf.factory.AbstractConfigurationFactory.loadDefaults(AbstractConfigurationFactory.java:42) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.shade.space.arim.dazzleconf.helper.ConfigurationHelper.reloadConfigData(ConfigurationHelper.java:81) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.config.NormalConfigManager.reloadConfig(NormalConfigManager.java:95) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.ResidenceForm.loadConfig(ResidenceForm.java:63) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.ResidenceForm.onEnable(ResidenceForm.java:32) ~[ResidenceForm.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287) ~[folia-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:188) ~[folia-1.20.4.jar:git-Folia-"ec6b172"]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[folia-1.20.4.jar:git-Folia-"ec6b172"]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[folia-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugin(CraftServer.java:645) ~[folia-1.20.4.jar:git-Folia-"ec6b172"]
at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugins(CraftServer.java:556) ~[folia-1.20.4.jar:git-Folia-"ec6b172"]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:713) ~[folia-1.20.4.jar:git-Folia-"ec6b172"]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:458) ~[folia-1.20.4.jar:git-Folia-"ec6b172"]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:309) ~[folia-1.20.4.jar:git-Folia-"ec6b172"]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1217) ~[folia-1.20.4.jar:git-Folia-"ec6b172"]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:346) ~[folia-1.20.4.jar:git-Folia-"ec6b172"]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.nio.file.FileSystemException: plugins/ResidenceForm/lang\en_US.yml: Invalid argument
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:100) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:224) ~[?:?]
at java.nio.channels.FileChannel.open(FileChannel.java:309) ~[?:?]
at java.nio.channels.FileChannel.open(FileChannel.java:369) ~[?:?]
at ltd.rymc.form.residence.config.ResourceConfigManager.reloadConfigData(ResourceConfigManager.java:124) ~[ResidenceForm.jar:?]
at ltd.rymc.form.residence.config.ResourceConfigManager.reloadConfig(ResourceConfigManager.java:146) ~[ResidenceForm.jar:?]
... 28 more
在 #2 修复
在linux (ubuntu) 的情况下运行residenceform,lang资料夹以及里面的资料路径似乎会出错
图片可见有lang资料夹及lang\en_US.yml 和lang\zh_CH.yml,插件在windows的情况下能够读取lang里面的语言档案,但是在linux的情况,似乎\ / 是由于插件来路经设定 导致他没有读取lang资料夹内的语言档案,而在外面创建两个资料夹,带有windows 路经\ 符号的档案。
但是在linux的系统内,是无法正确运行\的路径,会出现 『invalid file name』 无效档案名称