Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Indexing fails abruptly for a Python codebase #418

Closed

Description

@shobrook

Hi,

I tried indexing a majority-Python codebase locally using the CLI and it failed with this error:

image

If I directly parse this file with the CLI, I get output with no errors:

image

But when I index the whole codebase, it fails on this file and stops the indexing process entirely. There appears to be no error-handling. I would have expected the indexing process to simply skip the offending line of code, or the file completely, instead of halting the indexing process.

As a result of this, I can't run queries for every file in the codebase since I'm working with only a partial index.

Any idea why this is the case? Would this behavior change if I used the API instead of the CLI?

Thank you in advance for your help!

Activity

  1. hendrikvanantwerpen commented on Apr 10, 2024

    @hendrikvanantwerpen
    Contributor

    Hi @shobrook! Thanks for reporting this. I agree this this is not ideal behavior for the CLI. I've opened a PR to fix that (#419).

  2. shobrook commented on Apr 10, 2024

    @shobrook
    Author

    Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions