-
Notifications
You must be signed in to change notification settings - Fork 5
feature - RFC 106 enrich diagnostic graph facts #771
Copy link
Copy link
Open
Labels
editor integrationSuggestions, features, or bugs related to the Editor integration (`vscode extension` and LSP)Suggestions, features, or bugs related to the Editor integration (`vscode extension` and LSP)featureNew feature or requestNew feature or requestincan compilerSuggestions, features, or bugs related to the Compiler (frontend/backend/codegen)Suggestions, features, or bugs related to the Compiler (frontend/backend/codegen)toolingSuggestions, features, or bugs related to the Tooling (CLI/formatter/test runner)Suggestions, features, or bugs related to the Tooling (CLI/formatter/test runner)
Metadata
Metadata
Assignees
Labels
editor integrationSuggestions, features, or bugs related to the Editor integration (`vscode extension` and LSP)Suggestions, features, or bugs related to the Editor integration (`vscode extension` and LSP)featureNew feature or requestNew feature or requestincan compilerSuggestions, features, or bugs related to the Compiler (frontend/backend/codegen)Suggestions, features, or bugs related to the Compiler (frontend/backend/codegen)toolingSuggestions, features, or bugs related to the Tooling (CLI/formatter/test runner)Suggestions, features, or bugs related to the Tooling (CLI/formatter/test runner)
Type
Fields
Give feedbackNo fields configured for Feature.
Area
Problem statement
PR #764 establishes the first stable diagnostics plane, and PR #766 projects diagnostics into codegraph records. The current diagnostic surface is intentionally broad: phase-level codes, empty
related_spans, and prose-heavy messages.For RFC 106, diagnostics should become compiler-owned graph facts shared by
incan check --format json, LSP, andincan inspect codegraph, not separate CLI/LSP/codegraph classifiers with different truth surfaces.Related: #573, #764, #766, RFC 106.
Proposed solution
Evolve diagnostics into richer machine-readable facts that can be projected consistently into CLI JSON, LSP diagnostics, and codegraph records.
Follow-up work should add:
related_spansfrom compiler facts, such as duplicate declarations, callee signatures, provider/export declarations, and expected-type originsAlternatives considered
incan check, LSP, and codegraph should project the same compiler-owned diagnostic fact.Scope / acceptance criteria
In scope:
related_spansfor at least two high-value diagnostic families.Out of scope:
Done when: