-
Notifications
You must be signed in to change notification settings - Fork 11
feature - diagnostic explain command and help catalog #590
Copy link
Copy link
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationeditor 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)
Milestone
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationeditor 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
Stable diagnostic codes are useful only if users, editors, CI, and agents can resolve them into durable guidance. Human-facing compiler messages should stay concise, but repair workflows need a place to ask: what does this diagnostic mean, why does it fire, and what are the usual fixes?
Without an
explainsurface, downstream tools either scrape docs, embed stale copies of guidance, or ask language models to infer fixes from prose-only terminal output.Proposed solution
Add an
incan explaincommand backed by a diagnostic help catalog:The catalog entry should include:
JSON diagnostics should be able to point at the same catalog entry through an explain/help URL or code reference.
Alternatives considered
Scope / acceptance criteria
In scope:
incan explain <diagnostic-code>command or equivalent tooling-scoped command.Out of scope:
Done when:
incan explain <code>returns useful guidance for seeded diagnostics.--format jsonprovides machine-readable explanation metadata.