blangSDK
blangSDK copied to clipboard
FileAlreadyExistsException thrown running blang
I have installed blang using
bash workspace/blangSDK/setup-cli.sh
Exception in thread "main" java.lang.RuntimeException: java.nio.file.FileAlreadyExistsException: results/all/2018-11-19-20-39-05-CWiEBbRl.exec/blang-compilation/src/main/java/Helpers.java
at blang.runtime.internals.StandaloneCompiler.init(StandaloneCompiler.java:179)
at blang.runtime.internals.StandaloneCompiler.<init>(StandaloneCompiler.java:47)
at blang.runtime.internals.Main.main(Main.java:24)
Caused by: java.nio.file.FileAlreadyExistsException: results/all/2018-11-19-20-39-05-CWiEBbRl.exec/blang-compilation/src/main/java/Helpers.java
at sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:551)
at sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:253)
at java.nio.file.Files.copy(Files.java:1274)
at blang.runtime.internals.StandaloneCompiler$FileTransferProcessor.visitFile(StandaloneCompiler.java:189)
at blang.runtime.internals.StandaloneCompiler$FileTransferProcessor.visitFile(StandaloneCompiler.java:184)
at java.nio.file.Files.walkFileTree(Files.java:2670)
at java.nio.file.Files.walkFileTree(Files.java:2742)
at blang.runtime.internals.StandaloneCompiler.init(StandaloneCompiler.java:177)
... 2 more
This issue exists on Mac when using the blang IDE download, not an issue for the blangSDK.
Two things to try (I suspect the second one is the more likely given the error message)
- When installing via
setup-cli.sh
, make sure to call it in the current dir i.e. via./setup-cli.sh
- After install, the command blang should be ran in a directory in which blangSDK is not accessible. E.g. a clean directory containing only the .bl file to run and other supporting files.
Hope this helps!