Skip to content

Would the scip-code org consider adopting the remaining indexers? #468

Open

Description

@grinidx

scip-java, scip-go and scip-rust moved to scip-code when SCIP's governance became independent. scip-typescript, scip-python, scip-clang, scip-ruby and scip-dotnet stayed under sourcegraph. I do not know whether that split was deliberate or simply where things stopped, so this is a question rather than a proposal.

The reason for asking is that the split has started to track activity. As of today:

Repository Org Last push Open issues and PRs
scip-java scip-code 9 Aug
scip-go scip-code 9 Aug
scip scip-code 6 Aug
scip-clang sourcegraph 8 Aug 46
scip-typescript sourcegraph 7 Aug 53
scip-dotnet sourcegraph 1 Aug, no commit to main since 27 May 33

That is not a complaint about anyone's priorities. Sourcegraph have been straightforward about them: on scip-dotnet#61 a maintainer wrote that they have "no plans for any new features in SCIP indexers in general" and are "focusing on support, prioritising customer support". That is a reasonable position for a company to take, and it looks like exactly the situation the governance transition was designed for.

I have a concrete case, which prompted the question rather than being the point of it. scip-dotnet does not index Razor or Blazor. Those reach the compilation as source-generated documents, so iterating project.Documents misses every one of them: on a scaffolded app that is 0 documents for 7 .cshtml files, and 0 for 11 .razor. I have a patch, open as scip-dotnet#117, with the existing snapshots byte-identical across net8.0, net9.0 and net10.0. It has not been reviewed, and four other pull requests there have been waiting longer, so I do not read that as anything personal.

I am not asking anyone to merge that patch. I am asking whether the adoption model already used three times might suit the indexers that were left, and if so what the process would be. If the answer is that the split was intentional and those repositories are staying put, that is a perfectly good answer and worth knowing.

I would be glad to help maintain the .NET indexer if that were useful. I have been working in that codebase, I have a fork with the Razor work in it, and I would rather contribute upstream than fork permanently.

For completeness: scip-dotnet is Apache 2.0 with no CLA, so forking is available and needs nobody's agreement. I would much rather not. A fork would split the ecosystem, need a new name under the trademark clause, and leave .NET users choosing between two half-maintained indexers. Asking first seemed better.

Activity

  1. jupblb commented on Aug 11, 2026

    @jupblb
    Member

    The effort to migrate the indexers started at the end of 2025. Our initial vision was to update the indexer implementations with the newest compiler and language features and bring them into compliance with the latest SCIP version. This was our approach when migrating scip, scip-go, and scip-java (+scip-kotlin).

    I was against simply dumping stale codebases into the scip-code org, as such an initiative wouldn't help build a community around them. The indexers under the Sourcegraph org require an upfront investment to make them easy for others to work with.

    This is especially important when using AI agents. Running them on projects that lack proper foundations will likely lead to a lot of spaghetti code. I'm not sure we would have the capacity needed to review such contributions.

    CC: @peterguy @emidoots

  2. grinidx commented on Aug 13, 2026

    @grinidx
    ContributorAuthor

    Thanks, that's a clear answer and it corrects my assumption - I'd read the split as where things had stopped rather than as a policy. Modernise first, then move, makes sense.

    On the AI-agent concern, which I think is the fair one to raise: I'd rather answer it with the diff than with reassurance. #117 keeps every existing snapshot byte-identical across net8.0, net9.0 and net10.0, adds a snapshot fixture in the project's own style rather than asserting by hand, and leaves dotnet format --verify-no-changes clean. If it had generated review burden, those are the three places it would show. Happy to be told it still does.

    On "requires upfront investment", it would help to know what you'd count as ready. From the outside the gap looks concrete rather than vague - scip-dotnet's vendored scip.proto predates a fair bit of the current schema:

    • no typed_range or typed_enclosing_range, so it still emits only the deprecated encoding
    • no Document.position_encoding, which matters for anything consuming indexes from several languages
    • SymbolInformation is missing kind, display_name, signature_documentation and enclosing_symbol
    • no Document.text, Occurrence.text or Occurrence.language

    If bringing that up to the current spec is roughly the bar, that's a well-defined piece of work and I'd be glad to do it, in reviewable pieces rather than one drop. If the bar is something else, or if scip-dotnet is low enough priority that it isn't worth anyone's review time either way, that's a perfectly good answer too and I'd rather know than keep asking.

  3. jupblb commented on Aug 16, 2026

    @jupblb
    Member

    I expect at least the following criteria to be met before migrating an indexer:

    1. Replace vendored scip.proto with dedicated bindings from scip-code/scip, imported as a dependency.
    2. Ensure the indexer implementation is compliant with the latest SCIP protocol version and outputs relevant data, such as SymbolInformation.kind.
    3. Close all pending issues and PRs that have a single, clear, and non-controversial solution.
    4. Support the latest and LTS language versions, including related toolchains (compilers, build tools, etc.).
    5. Set up easy-to-use release and test pipelines.

    Note on using AI: I think it's fine as long as the I/O boundary of the indexer is well-tested. We mostly rely on snapshot indexing as a way to test the implementation E2E. This should be the primary focus area for any contributor. Snapshot inputs should be minimal, well-maintained, and reflect indexer implementation quirks or specific programming language features.

  4. grinidx commented on Aug 17, 2026

    @grinidx
    ContributorAuthor

    That's a clear bar, thank you - much easier to work against than "upfront investment".

    The note on AI is the part I most wanted to hear, and I agree with where you've put the emphasis. Snapshot testing at the I/O boundary is what #117 already leans on: it adds a snapshots/input/razor fixture covering a Razor Page with @model and @functions, a _ViewImports.cshtml, a Blazor component with @code and an _Imports.razor, with expected output for all three target frameworks, and every pre-existing snapshot stays byte-identical. It also widens IsSnapshotFile, which only compared .cs, so Razor snapshots would otherwise have been written and never asserted on.

    On your criteria, one is not currently possible and I think it is the interesting one.

    There are no .NET bindings. bindings/ has go, haskell, java, kotlin, rust and typescript. So criterion 1 cannot be met by importing a dependency until somebody publishes them.

    The good news is that it looks small. buf.gen.yaml already drives generation, and csharp is a protoc built-in, so it would be roughly the same few lines as the java and kotlin entries, plus a bindings/dotnet project and a NuGet package to publish from. That is work that stands on its own regardless of what happens to scip-dotnet, since anyone writing a .NET SCIP consumer currently vendors the proto by hand.

    Would bindings be a welcome contribution to scip-code/scip? If so I would rather start there than with the indexer, because criteria 1 and 2 both depend on them and it is useful to the ecosystem either way.

    On criterion 3, for whoever picks this up: scip-dotnet has 30 open pull requests and 4 open issues, the oldest from February 2023. Almost all are Renovate dependency bumps, so they fall squarely into the "single, clear and non-controversial" category, but it is 30 rather than a handful.

    I should be straight about scope. Bindings, bringing the indexer to the current protocol, clearing that backlog, and the toolchain and pipeline work is a project rather than a weekend, and I would rather say so now than start it and go quiet. Bindings I am confident about and happy to begin as soon as you say they would be accepted. The indexer work I would want to take in reviewable pieces, and how far I get honestly depends on how much review time exists at the other end - which is the same constraint you raised at the start.

  5. jupblb commented on Aug 17, 2026

    @jupblb
    Member

    Would [dotnet] bindings be a welcome contribution to scip-code/scip?

    Yes. :) Just make sure the implementation works nicely with nix and add a workflow that publishes the bindings automatically with a new major release. If this requires any manual steps on admin end let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions