-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not cast value of type 'Swift.String' (0x7ff8556a6848) to 'Swift.Dictionary<Swift.String, SourceKittenFramework.SourceKitRepresentable>' (0x7ff855e42708). #1399
Comments
Please provide some source code that triggers this. Something in the code is causing SourceKit to return a string for a field that sourcekitten is expecting to be a map. It's probably a new / unusual construct -- all of our regular test projects run cleanly on Xcode 16 RC1. |
Hi @johnfairh thanks for responding... strangely (AFAIK) there is nothing new here just rebuilding with latest Xcode, so I am not able to pinpoint which part of the code is triggering this complaint. I'll probably need to narrow down the scope of the doc generation incrementally. |
This is the sourcekitten phase crashing. If there's really no per-sourcefile output that you've elided (kind of thing like |
a more complete log... 95 files handled apparently correctly, then this error.
|
Aha ok. So if we're lucky the problem is in |
The most recent run of this (a few weeks ago) logged some warnings after the 95th file was processed, could the issue now be in this wrap up activity?
|
Nope - those |
Fixed by pulling in a version of sourcekitten that includes the update to parse the new Swift-6 output format. |
Using:
The text was updated successfully, but these errors were encountered: