Repository navigation
allow to include same file from multiple files - #133
Conversation
add a set of already added files and check if files was already added, in such case do not try to add it again
|
Thanks for the suggestion. I indeed did not think of diamond topologies here. Couldn't we simply do Would it be possible for you to create unit-test example under |
|
sounds a good idea, I hope I will have time soon to fix |
|
I did changes and add diamond file. not sure if this is the testing you meant and where is the suite I should include it. |
|
Thanks for the PR. |
|
The latest release v2.4.5 contains your patch. Thanks again for your help. |
add a set of already added files and check if files was already added, in such case do not try to add it again
This happened to me while trying to include same files from multiple files (diamond topology)
got this exception when starting an idea project:
Exception in thread "main" kotlin.io.FileAlreadyExistsException: .../kscripts/utils.kt -> /Users/oshai/.kscript/kscript_tmp_project__ksuite.kts_1530089926297/src/utils.kt: The destination file already exists.
at kotlin.io.FilesKt__UtilsKt.copyTo(Utils.kt:193)
at kotlin.io.FilesKt__UtilsKt.copyTo$default(Utils.kt:184)
at kscript.app.AppHelpersKt.createSymLink(AppHelpers.kt:267)
at kscript.app.AppHelpersKt.launchIdeaWithKscriptlet(AppHelpers.kt:254)
at kscript.app.KscriptKt.main(Kscript.kt:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jetbrains.kotlin.runner.AbstractRunner.run(runners.kt:61)
at org.jetbrains.kotlin.runner.Main.run(Main.kt:109)
at org.jetbrains.kotlin.runner.Main.main(Main.kt:119)