Skip to content

scip-go does not populate SymbolInformation.kind field #176

@phisanti

Description

@phisanti

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:

Current Behavior

When indexing a Go project with scip-go v0.1.26:

scip-go ./...
scip print index.scip

Output (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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions