sourcegraph / lsif-cpp

Language Server Index Format (LSIF) generator for C++
https://lsif.dev/
9 stars 3 forks source link

Update README to explain parameters #4

Closed christinaforney closed 4 years ago

christinaforney commented 4 years ago

While going through setting up this LSIF indexer on a C project, there were a few things that weren't clear:

We were able to work through and successfully generate an LSIF file, but when uploading it, we encountered two different errors on try 1 and try 2:

  1. 404 Not Found Unknown commit.
  2. stream error: stream ID 1; INTERNAL_ERROR

Not sure if this is an error with the uploader, or with the LSIF indexer.

chrismwendt commented 4 years ago

Thanks for running through this 🙇

Updated docs in https://github.com/sourcegraph/lsif-cpp/commit/5c9ab4ec1f38b86d9562fa7057431ff82da7e9a2

I'm not sure what happened with the "Unknown commit" error. The next time this happens, it would be helpful to see the full stdout of the upload command, the output of git rev-parse HEAD, etc.

The cause of "stream error" was fixed in https://github.com/sourcegraph/sourcegraph/pull/6622 https://github.com/sourcegraph/sourcegraph/pull/6648.