#navigation #protocols #indexing #find #intelligence #source #definition

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

8 unstable releases (3 breaking)

0.5.1 Oct 17, 2024
0.5.0 Sep 26, 2024
0.4.0 Jun 11, 2024
0.3.3 Jan 24, 2024
0.1.1 Aug 11, 2022

#49 in Database interfaces

Download history 7082/week @ 2024-07-17 6618/week @ 2024-07-24 6682/week @ 2024-07-31 7066/week @ 2024-08-07 6291/week @ 2024-08-14 6825/week @ 2024-08-21 6384/week @ 2024-08-28 6468/week @ 2024-09-04 5825/week @ 2024-09-11 6089/week @ 2024-09-18 6470/week @ 2024-09-25 5797/week @ 2024-10-02 6380/week @ 2024-10-09 6935/week @ 2024-10-16 6469/week @ 2024-10-23 6024/week @ 2024-10-30

26,796 downloads per month
Used in 2 crates (via ra_ap_rust-analyzer)

Apache-2.0

340KB
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
~46K SLoC