#find #protobuf #navigation #protocols #indexing #reference #go

scip

SCIP (pronunciation: "skip") is a language-agnostic protocol for indexing source code, which can be used to power code navigation functionality such as Go to definition, Find references, and Find implementations

5 releases

0.3.3 Jan 24, 2024
0.3.2 Nov 3, 2023
0.3.1 Oct 25, 2023
0.1.1 Aug 11, 2022
0.1.0 Aug 11, 2022

#201 in Database interfaces

Download history 6253/week @ 2023-12-23 5057/week @ 2023-12-30 6451/week @ 2024-01-06 5923/week @ 2024-01-13 6522/week @ 2024-01-20 4026/week @ 2024-01-27 5218/week @ 2024-02-03 7702/week @ 2024-02-10 8061/week @ 2024-02-17 6742/week @ 2024-02-24 7401/week @ 2024-03-02 7591/week @ 2024-03-09 7714/week @ 2024-03-16 7642/week @ 2024-03-23 7499/week @ 2024-03-30 6440/week @ 2024-04-06

30,433 downloads per month
Used in ra_ap_rust-analyzer

Apache-2.0

315KB
5.5K SLoC

SCIP Code Intelligence Protocol

SCIP (pronunciation: "skip") is a language-agnostic protocol for indexing source code, which can be used to power code navigation functionality such as Go to definition, Find references, and Find implementations.

This repository includes:

  • A protobuf schema for SCIP.
  • Rich Go and Rust bindings for SCIP: These include many utility functions to help build tooling on top of SCIP.
  • Auto-generated bindings for TypeScript and Haskell.
  • The scip CLI, which makes SCIP indexes a breeze to work with.

If you're interested in better understanding the motivation behind SCIP, check out the announcement blog post.

If you're interested in writing a new indexer that emits SCIP, check out our documentation on how to write an indexer. Also, check out the Debugging section in the Development docs.

If you're interested in consuming SCIP data, you can either use one of the provided language bindings, or generate code for the SCIP protobuf schema using the protobuf toolchain for your language ecosystem. Also, check out the Debugging section in the Development docs.

Tools using SCIP

Several indexers currently emit SCIP data:

For more details about indexers, including LSIF-based indexers, see the Sourcegraph documentation.

Other tools which use SCIP include the Sourcegraph CLI, and the SCIP CLI in this repo.

Installing the scip CLI

You can find binaries for the scip CLI tool here. You can also compile a binary locally using:

git clone https://github.com/sourcegraph/scip.git --depth=1
cd scip
go build ./cmd/scip

You can consult the CLI reference or --help for usage information.

Contributing

We welcome questions, suggestions as well as code and docs contributions.

For submitting contributions, check out Development.md to better understand project structure and common workflows.

Contributors should abide by the Sourcegraph Code of Conduct.

Dependencies

~2MB
~48K SLoC