Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make snapshot-lsif command more robust #232

Merged
merged 1 commit into from
May 27, 2021

Conversation

olafurpg
Copy link
Member

These changes are needed to make the snapshot-lsif work the output of
an experimental Python indexer.

  • Don't crash with NoSuchElementException when a range has no text
    document, silently ignore it instead.
  • Use # instead of // for comments in Python snapshots.
  • Print the absolute path of the generated output directory.
  • Report a warning when skipping a file because it's not part of the
    sourceroot.

These changes are needed to make the `snapshot-lsif` work the output of
an experimental Python indexer.

- Don't crash with `NoSuchElementException` when a range has no text
  document, silently ignore it instead.
- Use `#` instead of `//` for comments in Python snapshots.
- Print the absolute path of the generated output directory.
- Report a warning when skipping a file because it's not part of the
  sourceroot.
@olafurpg olafurpg merged commit ee59136 into sourcegraph:main May 27, 2021
@olafurpg olafurpg deleted the robust-snapshot branch May 27, 2021 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants