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

Fatal Error While Indexing: RangeError #76

Open
timhirsh opened this issue May 1, 2023 · 1 comment
Open

Fatal Error While Indexing: RangeError #76

timhirsh opened this issue May 1, 2023 · 1 comment

Comments

@timhirsh
Copy link

timhirsh commented May 1, 2023

Issue:

scip-python (v0.3.3) produces a fatal error while indexing our source tree during the "Analyze project and dependencies" phase:

$ scip-python index \
    --project-name=redacted \
    --output="output.scip"
...

Experienced Fatal Error While Indexing:
Please create an issue at github.com/sourcegraph/scip-python: RangeError: Value undefined out of range for undefined options property undefined
    at Map.set (<anonymous>)
    at Ie (/snapshot/scip-python/node_modules/@sourcegraph/scip-python/dist/pyright-internal.js:1:423676)
    at bn (/snapshot/scip-python/node_modules/@sourcegraph/scip-python/dist/pyright-internal.js:1:570870)
    at Object.Yn [as evaluateTypesForStatement] (/snapshot/scip-python/node_modules/@sourcegraph/scip-python/dist/pyright-internal.js:1:609861)
    at /snapshot/scip-python/node_modules/@sourcegraph/scip-python/dist/pyright-internal.js:1:689533
    at s.timeOperation (/snapshot/scip-python/node_modules/@sourcegraph/scip-python/dist/pyright-internal.js:1:895515)
    at o (/snapshot/scip-python/node_modules/@sourcegraph/scip-python/dist/pyright-internal.js:1:688786)
    at Object.evaluateTypesForStatement (/snapshot/scip-python/node_modules/@sourcegraph/scip-python/dist/pyright-internal.js:1:689496)
    at O.visitAssignment (/snapshot/scip-python/node_modules/@sourcegraph/scip-python/dist/pyright-internal.js:1:81983)
    at O.visitNode (/snapshot/scip-python/node_modules/@sourcegraph/scip-python/dist/pyright-internal.js:1:292422)

Background:
Our usage is in a bazel based repo (see #45, specifically the workaround described here). I realize this is a non-standard approach, and it's worked well enough in the past. However, over time, there are changes made to python code that break the nightly indexing job and our only option now is to exclude large portions of our source tree from being indexed to avoid the error above (I suspect it has to do with deps on generated code). Ideally the indexer would be able to handle this situation a bit more gracefully. Even printing out some more helpful debug info would be a good start.

@tjdevries
Copy link
Contributor

I just pushed an update to a new version of scip-python (0.4.1). Could you give that a try and see if it solves the problem? If it doesn't solve the problem, we can try some other methods.

Thanks!

@mmanela mmanela added the Migrated label May 6, 2024 — with Linear
@eseliger eseliger removed the Migrated label May 21, 2024
@linear linear bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants