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

FileAlreadyExistsException thrown running blang #112

Open
amcpherson opened this issue Nov 20, 2018 · 2 comments
Open

FileAlreadyExistsException thrown running blang #112

amcpherson opened this issue Nov 20, 2018 · 2 comments

Comments

@amcpherson
Copy link

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
@amcpherson
Copy link
Author

This issue exists on Mac when using the blang IDE download, not an issue for the blangSDK.

@alexandrebouchard
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants