Error "Failed to produce diagnostic" instead of an actionable description of a coding error. #62142
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
failed to produce diagnostic
Bug → internal error: Failed to produce diagnostic for expression
SwiftUI
Flag: Related to (but not an issue with) SwiftUI
type checker
Area → compiler: Semantic analysis
Describe the bug
Compiling the attached project yields a "Failed to produce diagnostic" instead of an informative (if any) error message.
Steps To Reproduce
Expected behavior
The build completes, either accepting the presented code or issuing an error or warning as appropriate.
Actual behavior
An error at PlanetGroupListView.swift:17, with only a message saying swiftc "failed to produce diagnostic" and soliciting this report.
Screenshots
n/a
Environment (please fill out the following information)
macOS 13.0.1 (22A400)
Xcode version 14.1 (14B47b)
31% memory pressure
305 GB available storage
Force-Quit dialog shows 13 applications open.
Additional context
After quitting Xcode and the Simulator app, and relaunching Xcode, the issue persists.
A file containing logs for the compilation stages are attached.
SwiftCompile
(first round) was flagged as an error but didn't show any diagnostic.Project directory
LastChance.zip
Compile phases - log
Swift Compile Diagnostic - fritza - 16-Nov-2022.txt
The text was updated successfully, but these errors were encountered: