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

fix: ensure config-legacy.yml is created before accessed #2752

Merged
merged 3 commits into from
Jun 13, 2024

Conversation

dordsor21
Copy link
Member

@dordsor21 dordsor21 requested a review from a team as a code owner June 1, 2024 12:42
@github-actions github-actions bot added the Bugfix This PR fixes a bug label Jun 1, 2024
@dordsor21
Copy link
Member Author

Still get an error due to FAWE config, but the config(s) are still created

[13:34:24 WARN]: java.nio.file.NoSuchFileException: plugins\FastAsyncWorldEdit\config.yml
[13:34:24 WARN]:        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
[13:34:24 WARN]:        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
[13:34:24 WARN]:        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
[13:34:24 WARN]:        at java.base/sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:108)
[13:34:24 WARN]:        at java.base/sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:282)
[13:34:24 WARN]:        at java.base/java.nio.file.Files.copy(Files.java:1304)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.fastasyncworldedit.core.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:67)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.fastasyncworldedit.core.configuration.Config.load(Config.java:104)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.fastasyncworldedit.core.configuration.Settings.reload(Settings.java:102)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.fastasyncworldedit.core.Fawe.setupConfigs(Fawe.java:349)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.fastasyncworldedit.core.Fawe.<init>(Fawe.java:107)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.fastasyncworldedit.core.Fawe.set(Fawe.java:197)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.fastasyncworldedit.bukkit.FaweBukkit.<init>(FaweBukkit.java:70)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.sk89q.worldedit.bukkit.WorldEditPlugin.onEnable(WorldEditPlugin.java:196)
[13:34:24 WARN]:        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287)
[13:34:24 WARN]:        at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:188)
[13:34:24 WARN]:        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104)
[13:34:24 WARN]:        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507)
[13:34:24 WARN]:        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugin(CraftServer.java:639)
[13:34:24 WARN]:        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugins(CraftServer.java:550)
[13:34:24 WARN]:        at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:275)
[13:34:24 WARN]:        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1131)
[13:34:24 WARN]:        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319)
[13:34:24 WARN]:        at java.base/java.lang.Thread.run(Thread.java:1583)
[13:34:24 WARN]: java.io.FileNotFoundException: plugins\FastAsyncWorldEdit\config.yml (The system cannot find the file specified)
[13:34:24 WARN]:        at java.base/java.io.FileInputStream.open0(Native Method)
[13:34:24 WARN]:        at java.base/java.io.FileInputStream.open(FileInputStream.java:213)
[13:34:24 WARN]:        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:152)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.fastasyncworldedit.core.configuration.file.FileConfiguration.load(FileConfiguration.java:122)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.fastasyncworldedit.core.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:58)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.fastasyncworldedit.core.configuration.Config.load(Config.java:104)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.fastasyncworldedit.core.configuration.Settings.reload(Settings.java:102)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.fastasyncworldedit.core.Fawe.setupConfigs(Fawe.java:349)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.fastasyncworldedit.core.Fawe.<init>(Fawe.java:107)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.fastasyncworldedit.core.Fawe.set(Fawe.java:197)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.fastasyncworldedit.bukkit.FaweBukkit.<init>(FaweBukkit.java:70)
[13:34:24 WARN]:        at FastAsyncWorldEdit-Bukkit-2.10.1-SNAPSHOT.jar//com.sk89q.worldedit.bukkit.WorldEditPlugin.onEnable(WorldEditPlugin.java:196)
[13:34:24 WARN]:        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287)
[13:34:24 WARN]:        at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:188)
[13:34:24 WARN]:        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104)
[13:34:24 WARN]:        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507)
[13:34:24 WARN]:        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugin(CraftServer.java:639)
[13:34:24 WARN]:        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugins(CraftServer.java:550)
[13:34:24 WARN]:        at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:275)
[13:34:24 WARN]:        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1131)
[13:34:24 WARN]:        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319)
[13:34:24 WARN]:        at java.base/java.lang.Thread.run(Thread.java:1583)

@NotMyFault NotMyFault requested a review from a team June 3, 2024 11:18
@SirYwell
Copy link
Member

SirYwell commented Jun 3, 2024

Still get an error due to FAWE config, but the config(s) are still created

Does that happen on a fresh setup? Might not be a great look in that case

@dordsor21
Copy link
Member Author

Still get an error due to FAWE config, but the config(s) are still created

Does that happen on a fresh setup? Might not be a great look in that case

I can't remember if I was deleting the entire folder or just the config files, but in essence yes it does.

@dordsor21 dordsor21 force-pushed the fix/config-creation branch from 8a2f4b6 to 5e1aba5 Compare June 8, 2024 12:15
@dordsor21
Copy link
Member Author

(fully fixed now)

@dordsor21 dordsor21 merged commit 031fdf2 into main Jun 13, 2024
11 checks passed
@dordsor21 dordsor21 deleted the fix/config-creation branch June 13, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix This PR fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NoSuchFileException when generating new config files (fresh setup)
3 participants