Skip to content

Make snapshot-lsif command more robust#232

Merged
olafurpg merged 1 commit into
scip-code:mainfrom
olafurpg:robust-snapshot
May 27, 2021
Merged

Make snapshot-lsif command more robust#232
olafurpg merged 1 commit into
scip-code:mainfrom
olafurpg:robust-snapshot

Conversation

@olafurpg

Copy link
Copy Markdown
Contributor

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 requested a review from Strum355 May 27, 2021 13:55
@olafurpg olafurpg self-assigned this May 27, 2021
@olafurpg olafurpg merged commit ee59136 into scip-code: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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants