sourcegraph / scip

SCIP Code Intelligence Protocol
Apache License 2.0
246 stars 32 forks source link

Symbol parser panics on symbol `"scip-go . . . "` #50

Open olafurpg opened 2 years ago

olafurpg commented 2 years ago
github.com/sourcegraph/scip/bindings/go/scip.(*symbolParser).current(...)
    /Users/olafurpg/gopath/pkg/mod/github.com/sourcegraph/scip@v0.1.0/bindings/go/scip/symbol.go:96
github.com/sourcegraph/scip/bindings/go/scip.(*symbolParser).acceptEscapedIdentifier(0xc0000b54f8, {0x15d1ee6, 0xf}, 0x20)
    /Users/olafurpg/gopath/pkg/mod/github.com/sourcegraph/scip@v0.1.0/bindings/go/scip/symbol.go:202 +0x176
github.com/sourcegraph/scip/bindings/go/scip.(*symbolParser).acceptSpaceEscapedIdentifier(...)
    /Users/olafurpg/gopath/pkg/mod/github.com/sourcegraph/scip@v0.1.0/bindings/go/scip/symbol.go:189
github.com/sourcegraph/scip/bindings/go/scip.ParsePartialSymbol({0xc002deb5f0, 0xe}, 0x1)
    /Users/olafurpg/gopath/pkg/mod/github.com/sourcegraph/scip@v0.1.0/bindings/go/scip/symbol.go:46 +0x2e5
github.com/sourcegraph/scip/bindings/go/scip.ParseSymbol(...)
    /Users/olafurpg/gopath/pkg/mod/github.com/sourcegraph/scip@v0.1.0/bindings/go/scip/symbol.go:21
github.com/sourcegraph/scip/bindings/go/scip.(*SymbolFormatter).Format(0x40?, {0xc002deb5f0?, 0x0?})
    /Users/olafurpg/gopath/pkg/mod/github.com/sourcegraph/scip@v0.1.0/bindings/go/scip/symbol_formatter.go:35 +0x2e
github.com/sourcegraph/scip/bindings/go/scip/testutil.FormatSnapshot.func2({0xc002deb5f0, 0xe})
    /Users/olafurpg/gopath/pkg/mod/github.com/sourcegraph/scip@v0.1.0/bindings/go/scip/testutil/format.go:68 +0x3d
github.com/sourcegraph/scip/bindings/go/scip/testutil.FormatSnapshot(0xc00303e1c0, 0x37?, {0x15ccadc, 0x2}, {0x15f2c50, 0x15f2c58, 0x15f2c60, 0x15f2c68, 0x15f2c70})
    /Users/olafurpg/gopath/pkg/mod/github.com/sourcegraph/scip@v0.1.0/bindings/go/scip/testutil/format.go:103 +0xa9a
github.com/sourcegraph/scip/bindings/go/scip/testutil.FormatSnapshots(0xc0000b5c08, {0x15ccadc, 0x2}, {0x15f2c50, 0x15f2c58, 0x15f2c60, 0x15f2c68, 0x15f2c70})
    /Users/olafurpg/gopath/pkg/mod/github.com/sourcegraph/scip@v0.1.0/bindings/go/scip/testutil/format.go:28 +0x170
Strum355 commented 2 years ago

Same bug happening on scip-java output, when indexing maven/io.get-coursier/coursier-core_2.13/v2.1.0-M5