Closed PatilShreyas closed 1 year ago
I've already raised PR to fix this: https://github.com/tschuchortdev/kotlin-compile-testing/pull/365
Let me know your thoughts!
That's a very common problem on Windows. Good that you found it! I've left a few comments on the PR.
Summary
I found this issue when using this utility on a Windows machine. My profile name is "Shreyas Patil". You might have observed that there is a whitespace character presence in my profile name. So whenever this utility tries to find
kotlin-compile-testing-1.5.0.jar
, the following crash occurs (stacktrace attached below) due to the path:file:/C:/Users/Shreyas Patil/.gradle/caches/modules-2/files-2.1/com.github.tschuchortdev/kotlin-compile-testing/1.5.0/caaaf0a415b4069943b5b9b81903d6ad60d067a9/kotlin-compile-testing-1.5.0.jar
In this path, we can see that whitespace also continues to be present while creating URI.
Stacktrace
Solution
Encode the path string before creating URI out of it.