I would like to know if some other windows users have troubles with the Run-configuration generation. I am trying to understand why this problem is happening (I can’t recreate it sadly enough):
java.nio.file.AccessDeniedException: .idea\runConfigurations\StartForgeServer.xml
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.createFile(Files.java:632)
at com.qixalite.spongestart.tasks.GenerateIntelijTask.generateConfig(GenerateIntelijTask.java:62)
at com.qixalite.spongestart.tasks.GenerateIntelijTask.doStuff(GenerateIntelijTask.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Well it wasn’t really a LZMA lib problem. The installer finished, only their was still error output that had to be read. That was causing java to hold the program and basically deadlock the whole thing.
This solved the problem:
Still awkward tho, on linux the program just finishes errors or not.
I ran the setupServer in the terminal which itself is in IntelliJ. After I closed the terminal, the run configurations updated automatically. I just hit the run button and the server started.
Sadly, no debug messages are shown. I always have to use info or above. There definitely is the possibility to show the debug messages of plugins but I don’t know how without googling. Would be cool if you add this to the script.
@thomas15v with the 4.0.0 release there comes the spongegradle plugin. the main extension for that plugin is sponge too. as such your block conflicts with the block provided by spongegradle. I suggest you change your block to spongestart?
StartServer$SpongeClassLoader.class and StartServer.class are not copied anywhere in project directory tree, they’re just sitting in %USERPROFILE%\.gradle\caches\SpongeStart\start. So, IDEA is complaining: “java.lang.ClassNotFoundException: StartServer”.