You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
When I invoke
java -jar C:/ktlint/ktlint-0.37.0-all.jar src/**/*.kt
I get the following stacktrace:Environment:
The text was updated successfully, but these errors were encountered: