Bug Summary
Unable to create a new fabric project as it crashes during the moving source files stage
Detailed Description
I tried to create a new fabric project using the built in on-boarding, however i got an error during the "moving source files" stage.
Project location option was set to "C:\Users\Alex" and the project name was set to tests.
Steps to Reproduce
- launch railroad IDE
- complete the project on-boarding steps filling out every field
- get stuck on 42% Moving source files... for a few minutes
- Crashes with the error below
Expected Behavior
No response
Actual Behavior
No response
Mod Loader
Fabric
Railroad IDE Version
v0.0.3 (dev branch)
Java Version
corretto-21
JavaFX Version
No response
Operating System
Windows
OS Version
Windows 11
Logs or Stack Trace
17:13:09 [JavaFX Application Thread] ERROR Railroad - An exception occurred
java.lang.RuntimeException: Failed to copy directory contents
at dev.railroadide.railroad.utility.FileUtils.lambda$copyDirectoryContents$4(FileUtils.java:410)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1939)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
at dev.railroadide.railroad.utility.FileUtils.copyDirectoryContents(FileUtils.java:401)
at dev.railroadide.railroad.project.creation.service.NioFilesService.extractDirectoryContents(NioFilesService.java:76)
at dev.railroadide.railroad.project.creation.step.RenamePackagesStep.run(RenamePackagesStep.java:65)
at dev.railroadide.core.project.ProjectCreationPipeline.run(ProjectCreationPipeline.java:23)
at dev.railroadide.core.project.creation.ProjectCreationService$1.call(ProjectCreationService.java:43)
at dev.railroadide.core.project.creation.ProjectCreationService$1.call(ProjectCreationService.java:22)
at [email protected]/javafx.concurrent.Task$TaskCallable.call(Task.java:1399)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at [email protected]/javafx.concurrent.Service.lambda$executeTask$6(Service.java:724)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at [email protected]/javafx.concurrent.Service.lambda$executeTask$7(Service.java:723)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.io.IOException: Cannot access file with path exceeding 32000 characters
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:81)
Caused by: java.io.IOException: Cannot access file with path exceeding 32000 characters
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileCopy.asWin32Path(WindowsFileCopy.java:496)
at java.base/sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:159)
at java.base/sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:282)
at java.base/java.nio.file.Files.copy(Files.java:1305)
at dev.railroadide.railroad.utility.FileUtils.lambda$copyDirectoryContents$4(FileUtils.java:407)
... 24 more
Additional Context
No response
Bug Summary
Unable to create a new fabric project as it crashes during the moving source files stage
Detailed Description
I tried to create a new fabric project using the built in on-boarding, however i got an error during the "moving source files" stage.
Project location option was set to "C:\Users\Alex" and the project name was set to tests.
Steps to Reproduce
Expected Behavior
No response
Actual Behavior
No response
Mod Loader
Fabric
Railroad IDE Version
v0.0.3 (dev branch)
Java Version
corretto-21
JavaFX Version
No response
Operating System
Windows
OS Version
Windows 11
Logs or Stack Trace
Additional Context
No response