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

Skip failed files during indexing instead of aborting the whole index operation - #419

Merged
hendrikvanantwerpen merged 1 commit into
mainfrom
skip-files-failing-tsg
Apr 10, 2024
Merged

hendrikvanantwerpen merged 1 commit into
mainfrom
skip-files-failing-tsg

Conversation

@hendrikvanantwerpen

Copy link
Copy Markdown
Contributor

Running an index command in the CLI would abort if stack graph construction for one of the indexed failes failed.
This may be fine when debugging a spec, but too punitive for users, who would like as much partial information as possible in the database, even if some files are not covered by the spec, or bugs exist.
This PR changes the behavior to mark those files as failed (as we already do for files with parse errors) but continue with the remaining files.

Fixes #418.

Note that I've also bumped the version already, even though I'm not sure if I'll release right away or not.
In the past we'd only bump the version right before a release, which sometimes resulted in confusing situations when depending on the repo instead of released version.
The versions would still be comaptible, even thought he source already contained incompatible changes.
My idea is to make sure the version in the source always reflects the changes w.r.t. the last release.

@dcreager dcreager left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My idea is to make sure the version in the source always reflects the changes w.r.t. the last release.

Agreed, good call!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Indexing fails abruptly for a Python codebase

2 participants