Didier Villevalois
11/29/2026, 1:19 PMDidier Villevalois
11/29/2026, 1:21 PMtest("LocalSettingsTree isolates path segments containing '/' and restores across restarts.") {
// ...
}
Here is the parse error on KTC side:
WARN Failed to parse message ##teamcity[testStarted name='LocalSettingsTree isolates path segments containing |'/|' and restores across restarts|0x00b7' timestamp='2026-11-29T13:16:50.875'|0x29f8|'|0x00a0and|0x00a0restores|0x00a0across|0x00a0restarts.']: java.text.ParseException: Error while parsing TeamCity service message: Property value not found (no "=" character). Valid service message has a form of "##teamcity[messageName name1='escaped_value' name2='escaped_value']" where escaped_value uses substitutions: '->|', [->|[, ]->|], |->||, newline->|n
at jetbrains.buildServer.messages.serviceMessages.MapSerializerUtil.parseName(MapSerializerUtil.java:139)
at jetbrains.buildServer.messages.serviceMessages.MapSerializerUtil.stringToProperties(MapSerializerUtil.java:116)
at jetbrains.buildServer.messages.serviceMessages.ServiceMessage.parseAttributes(ServiceMessage.java:239)
at jetbrains.buildServer.messages.serviceMessages.ServiceMessage.init(ServiceMessage.java:390)
at jetbrains.buildServer.messages.serviceMessages.ServiceMessagesParser.doParse(ServiceMessagesParser.java:108)
at jetbrains.buildServer.messages.serviceMessages.ServiceMessagesParser.parse(ServiceMessagesParser.java:75)
at org.jetbrains.amper.teamcity.events.TeamCityMessageProcessor.parse(TeamCityMessageProcessor.kt:64)
at org.jetbrains.amper.tasks.wasm.BrowserTestTask$runTestsInBrowser$2$1$1$1$1$1$1.accept(BrowserTestTask.kt:243)
at org.jetbrains.amper.tasks.wasm.BrowserTestTask$runTestsInBrowser$2$1$1$1$1$1$1.accept(BrowserTestTask.kt:235)
at com.microsoft.playwright.impl.ListenerCollection.notify(ListenerCollection.java:45)
at com.microsoft.playwright.impl.BrowserContextImpl.handleEvent(BrowserContextImpl.java:814)
at com.microsoft.playwright.impl.Connection.dispatch(Connection.java:307)
at com.microsoft.playwright.impl.Connection.processOneMessage(Connection.java:222)
at com.microsoft.playwright.impl.ChannelOwner.runUntil(ChannelOwner.java:144)
at com.microsoft.playwright.impl.PageImpl.waitForCondition(PageImpl.java:1620)
at com.microsoft.playwright.Page.waitForCondition(Page.java:8542)
at org.jetbrains.amper.tasks.wasm.BrowserTestTask$runTestsInBrowser$2$1$1.invokeSuspend(BrowserTestTask.kt:255)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)Oliver.O
11/30/2026, 7:53 PM##teamcity[testStarted name='LocalSettingsTree isolates path segments containing |'/|' and restores across restarts|0x00b7' timestamp='2026-11-30T18:54:34.333' flowId='com.example.CommonTestBalloon|0x2198LocalSettingsTree|0x00a0isolates|0x00a0path|0x00a0segments|0x00a0containing|0x00a0|'|0x29f8|'|0x00a0and|0x00a0restores|0x00a0across|0x00a0restarts.']
Everything looks correct, including the single quote which is escaped by prefixing it with a pipe character (|) as specified by Kotlin Toolchain’s error message
> where escaped_value uses substitutions: '->|',
and conforming to the TeamCity protocol specification: jetbrains.com/help/teamcity/service-messages.html#…
If I run a JVM test with the above name via
./kotlin test ... --format=teamcity
I’m seeing this line in the output
##teamcity[testStarted name='Common|0x00a0with|0x00a0a|0x00a0name: LocalSettingsTree isolates path segments containing |'/|' and restores across restarts|0x00b7' flowId='|[engine:de.infix.testBalloon|]/|[suite:com.example.CommonTestBalloonSuite2|]/|[test:LocalSettingsTree isolates path segments containing |'%2F|' and restores across restarts.|]-773326a6-b208-43e1-a217-6ab8e9ef2922' displayName='LocalSettingsTree isolates path segments containing |'/|' and restores across restarts|0x00b7']
which shows the TeamCity message as modified by Kotlin Toolchain. The single quotes are escaped correctly, but using %2F instead of the forward slash (/) looks unusual. TestBalloon does not produce such encoding.
Unfortunately, I cannot reproduce anything for wasmJs, as I’m getting a Kotlin Toolchain error on Linux:
ERROR Error: Cannot find module '.../kotlin-toolchain-arena/build/tasks/_usingTestBalloon_testWasmJsDebug/playwright-project/node_modules/playwright/cli.js'
If all of this makes sense, could you file a bug with Kotlin Toolchain?Oliver.O
12/01/2026, 3:54 PMwasmJs “Cannot find module” error I was observing with Kotlin Toolchain is now filed as youtrack.jetbrains.com/issue/KTC-6194.
It reproduces in a simple module using just kotlin.test.Didier Villevalois
12/01/2026, 4:13 PMtimestamp attribute's end single quote there is some strange content which definitely looks like the end of the flowId attribute in your TC message (which isn't in mine).Didier Villevalois
12/01/2026, 4:16 PMflowId attribute contains the full test name.Oliver.O
12/01/2026, 4:50 PMwasmJs tests (which KTC fails to run on my machine).
We’re seeing at least one bug which is definitely caused by KTC (KTC-6194), and the second one (your error) seems likely to be caused by KTC. The best option is to file a bug against KTC with a reproducer, and additionally check whether it’s the single quote or the slash character. In addition, please ask on #kotlin-toolchain, as that’s probably still the fastest way of getting something triaged.