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

0.37.0: InvalidPathException #761

Closed
juergenzimmermann opened this issue Jun 3, 2020 · 0 comments · Fixed by #763
Closed

0.37.0: InvalidPathException #761

juergenzimmermann opened this issue Jun 3, 2020 · 0 comments · Fixed by #763
Assignees
Labels
Milestone

Comments

@juergenzimmermann
Copy link

When I invoke java -jar C:/ktlint/ktlint-0.37.0-all.jar src/**/*.kt I get the following stacktrace:

Exception in thread "main" java.util.concurrent.ExecutionException: java.nio.file.InvalidPathException: Illegal char <<> at index 0: <stdin>
        at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
        at com.pinterest.ktlint.KtlintCommandLine.parallel(Main.kt:532)
        at com.pinterest.ktlint.KtlintCommandLine.parallel$default(Main.kt:506)
        at com.pinterest.ktlint.KtlintCommandLine.lintFiles(Main.kt:265)
        at com.pinterest.ktlint.KtlintCommandLine.run(Main.kt:233)
        at com.pinterest.ktlint.Main.main(Main.kt:62)
Caused by: java.nio.file.InvalidPathException: Illegal char <<> at index 0: <stdin>
        at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
        at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
        at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
        at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
        at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
        at java.base/java.nio.file.Path.endsWith(Path.java:435)
        at com.pinterest.ktlint.core.internal.EditorConfigLoader.loadPropertiesForFile(EditorConfigLoader.kt:47)
        at com.pinterest.ktlint.core.KtLint.lint(KtLint.kt:143)
        at com.pinterest.ktlint.internal.FileUtilsKt.lintFile(FileUtils.kt:51)
        at com.pinterest.ktlint.KtlintCommandLine.process(Main.kt:358)
        at com.pinterest.ktlint.KtlintCommandLine.access$process(Main.kt:116)
        at com.pinterest.ktlint.KtlintCommandLine$lintFiles$2$1.call(Main.kt:257)
        at com.pinterest.ktlint.KtlintCommandLine$lintFiles$2$1.call(Main.kt:116)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        at java.base/java.lang.Thread.run(Thread.java:832)

Environment:

  • Version of ktlint used: 0.37.0
  • Name and version: ktlint-0.37.0-all.jar
  • Operating System and version: Windows 10 Enterprise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants