wurstscript / WurstScript

Programming language and toolkit to create Warcraft III Maps
https://wurstlang.org
Apache License 2.0
226 stars 28 forks source link

Eliminate stacktrace when compiling on linux #1076

Closed Cokemonkey11 closed 1 year ago

Cokemonkey11 commented 1 year ago
$ grill build base_map.w3x
🔥 Grill warming up..
Custom WurstScript installation detected.
🔥 Ready. Version: <1.3.4.1-jenkins-WurstSetup-157>
🔨 Building project..
java.nio.file.NoSuchFileException: /mnt/c/Users/Cokem/workspace/kill-katydma/./wurst/_build/dependencies
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:427)
        at java.nio.file.Files.newDirectoryStream(Files.java:457)
        at java.nio.file.Files.list(Files.java:3451)
        at de.peeeq.wurstio.map.importer.ImportFile.getTransientImportDirectories(ImportFile.java:216)
        at de.peeeq.wurstio.map.importer.ImportFile.importFilesFromImports(ImportFile.java:188)
        at de.peeeq.wurstio.WurstCompilerJassImpl.runCompiletime(WurstCompilerJassImpl.java:125)
        at de.peeeq.wurstio.CompilationProcess.lambda$doCompilation$3(CompilationProcess.java:88)
        at de.peeeq.wurstio.TimeTaker.lambda$measure$0(TimeTaker.java:15)
        at de.peeeq.wurstio.TimeTaker$Default.measure(TimeTaker.java:33)
        at de.peeeq.wurstio.TimeTaker.measure(TimeTaker.java:14)
        at de.peeeq.wurstio.CompilationProcess.doCompilation(CompilationProcess.java:88)
        at de.peeeq.wurstio.Main.main(Main.java:146)
Failed to determine installed game version. Falling back to [1, 32]
Build succeeded. Output file: </mnt/c/Users/Cokem/workspace/kill-katydma/./_build/(1)KillKatydma0.2.1-prerelease.w3x>
compilation finished (errors: 0, warnings: 0)
🗺 Map has been built!

Note that there is still one stacktrace on linux, but the NotFoundException is now fixed