FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: Error out on undetermined project version by jelmer · Pull Request #213 · sourcegraph/scip-python · GitHub

fix: Error out on undetermined project version - #213

Open
jelmer wants to merge 1 commit into
sourcegraph:scipfrom
jelmer:fix-undefined-project-version
Open

fix: Error out on undetermined project version#213
jelmer wants to merge 1 commit into
sourcegraph:scipfrom
jelmer:fix-undefined-project-version

Conversation

jelmer commented Jun 8, 2026

Copy link
Copy Markdown

Indexing crashed with "TypeError: Cannot read properties of undefined (reading 'indexOf')" on projects that declare their version dynamically (PEP 621 dynamic = ["version"]) when it could not be inferred. The project version stayed undefined and normalizeNameOrVersion dereferenced it.

Throw a dedicated error instead, so indexing fails up front with a hint to pass --project-version rather than baking a bogus version into every symbol or crashing downstream.

Indexing crashed with "TypeError: Cannot read properties of undefined
(reading 'indexOf')" on projects that declare their version dynamically
(PEP 621 dynamic = ["version"]) when it could not be inferred. The
project version stayed undefined and normalizeNameOrVersion dereferenced
it.

Throw a dedicated error instead, so indexing fails up front with a hint
to pass --project-version rather than baking a bogus version into every
symbol or crashing downstream.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL