-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
Description
scip-go v0.1.26 (latest) does not populate the SymbolInformation.kind field, leaving all symbols with kind: 0 (UnspecifiedKind). This prevents tools from distinguishing functions, types, variables, and other symbol kinds without parsing the symbol string.
SCIP Protocol Support
The SCIP protocol added the SymbolInformation.kind field to address this exact issue:
- Issue: #154 - Proposal: add several fields to SymbolInformation
- PR & Merge: #158 - Proposal: Add SymbolInformation.display_name
Current Behavior
When indexing a Go project with scip-go v0.1.26:
scip-go ./...
scip print index.scipOutput (all symbols):
&scip.SymbolInformation{
Symbol: "scip-go gomod ... main()."
Kind: 0, // ← UnspecifiedKind for all objects
DisplayName: "", // ← Also empty
}I noted that the DisplayName issue was already discussed in #148
Expected Behavior
Symbol kinds should be populated based on Go syntax:
&scip.SymbolInformation{
Symbol: "... main()."
Kind: 17, // Function
}
&scip.SymbolInformation{
Symbol: "... Server#"
Kind: 7, // Class (struct)
}
...
...
...
&scip.SymbolInformation{
Symbol: "... Port."
Kind: 15, // Field
}Note
I am willing to carry on a PR and execution if I have the support from the main team.
Reactions are currently unavailable