Hello! Does anyone have a clue why syntax highlig...
# multiplatform
d
Hello! Does anyone have a clue why syntax highlighting of Swift code interacting with KMP fails to syntax highlight so badly? I've attached a simple example.
f
Yes, a lot!
My guess, it’s xcode who don’t like the big umbrella header.
d
But.. it's actually quite small. It's currently 2.2k. It was previously 27k, and the I'd suppose it's reasonable for it to fail
f
Check the output of this command
Copy code
SOURCEKIT_LOGGING=3 /Applications/Xcode.app/Contents/MacOS/Xcode
At least it helps me about the completion, I will also retry for the highlighting
BTW: Xcode is not really reliable about this kind of issue (for many years). At least the completion is working (sometimes)
d
What am I looking for in the source kit-logging? Is the request - response mapped by the index within the square brackets?
Copy code
2025-10-09 09:17:49.815 Xcode[2509:7109359] SourceKit-client: [2:request:259:184.3122] [34]
Copy code
2025-10-09 09:17:49.816 Xcode[2509:7109362] SourceKit-client: [2:response:278043:184.3139] [34] {
}
f
What am I looking for in the source kit-logging?
Good question! I was expected to see some error on the output, but there is nothing. I’m not an expert on sourcekit