Skip to content

Windows InvalidPathException #81

@GRapple02

Description

@GRapple02

I'm using Windows 10 and encountered the following exception in version v0.253.10629:

[Error - 오후 1:22:19] The Kotlin LSP server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
Exception in thread "main" java.nio.file.InvalidPathException: Illegal character [?] in path at index 2: \\?\d:\source\myproject\src\test\kotlin\com\myapp\api\controller\LoginControllerTest.kt
	at java.base/sun.nio.fs.WindowsPathParser.nextSlash(WindowsPathParser.java:212)
	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:111)
	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.nio.file.Path.of(Path.java:147)
	at com.jetbrains.ls.snapshot.api.impl.core.IndexerKt$eventFlow$1.invokeSuspend(Indexer.kt:327)
	at com.jetbrains.ls.snapshot.api.impl.core.IndexerKt$eventFlow$1.invoke(Indexer.kt)
	at com.jetbrains.ls.snapshot.api.impl.core.IndexerKt$eventFlow$1.invoke(Indexer.kt)
	at kotlinx.coroutines.flow.SafeFlow.collectSafely(Builders.kt:57)
	at kotlinx.coroutines.flow.AbstractFlow.collect(Flow.kt:226)
	at kotlinx.coroutines.flow.internal.ChannelLimitedFlowMerge$collectTo$2$1.invokeSuspend(Merge.kt:92)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:610)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runDefaultDispatcherTask(CoroutineScheduler.kt:1194)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:906)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:775)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:762)

This error occurs when running tests such as LoginControllerTest.kt:

package com.myapp.api.controller

import io.kotest.core.spec.style.BehaviorSpec

class CustomerLoginControllerTest : BehaviorSpec() {
    init {
        given("given something..") {
           ...
        }
    }
}

As far as I remember, this issue did not occur in version v0.252.17811.

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions