SimiaCryptus/intellij-aicoder

java.nio.file.InvalidPathException: Illegal char <:> at index 6

Opened this issue · 0 comments

Intellij IDEA 2024.1.4
Version 1.5.13
Windows 10

I select couple of files (like C:\Users\Vermut\IdeaProjects\Ecengo\Lapsa\lapsa\views.py), go for "Patch files" option, ask a question and then, after solution is offered without issues, I submit a correction.

It throws:

java.nio.file.InvalidPathException: Illegal char <:> at index 6: Step 1: Register the Tenant Model in Admin
	at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:177)
	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:232)
	at java.base/java.io.File.toPath(File.java:2387)
	at com.simiacryptus.diff.AddApplyFileDiffLinksKt.resolve(AddApplyFileDiffLinks.kt:151)
	at com.simiacryptus.diff.AddApplyFileDiffLinksKt.addApplyFileDiffLinks(AddApplyFileDiffLinks.kt:52)
	at com.simiacryptus.diff.AddApplyFileDiffLinksKt.addApplyFileDiffLinks$default(AddApplyFileDiffLinks.kt:22)
	at com.github.simiacryptus.aicoder.actions.generic.MultiDiffChatAction$PatchApp.userMessage$lambda$11(MultiDiffChatAction.kt:162)
	at com.simiacryptus.skyenet.Discussable.feedback$lambda$4(Discussable.kt:163)
	at com.simiacryptus.skyenet.Retryable.init(Retryable.kt:19)
	at com.simiacryptus.skyenet.Retryable.<init>(Retryable.kt:13)
	at com.simiacryptus.skyenet.Discussable.feedback(Discussable.kt:162)
	at com.simiacryptus.skyenet.Discussable.textInput$lambda$3(Discussable.kt:125)
	at com.simiacryptus.skyenet.webui.application.ApplicationInterface$Companion.oneAtATime$lambda$0(ApplicationInterface.kt:42)
	at com.simiacryptus.skyenet.webui.session.SocketManagerBase.onCmd(SocketManagerBase.kt:211)
	at com.simiacryptus.skyenet.webui.session.SocketManagerBase.onWebSocketText$lambda$11(SocketManagerBase.kt:178)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)