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

codeintel: Fix package set construction#53763

Merged
efritz merged 2 commits into
mainfrom
ef/fix-clobber-scip
Jun 20, 2023
Merged

codeintel: Fix package set construction#53763
efritz merged 2 commits into
mainfrom
ef/fix-clobber-scip

Conversation

@efritz

@efritz efritz commented Jun 20, 2023

Copy link
Copy Markdown
Contributor

We're neglecting to add some packages to the lsif_packages table. Tracked this down to the packageSet map having false values when they should've been true.

Turns out that when processing documents in a particular order we can re-assign false over a true assignment in this map, counting definitions instead as references. This makes it unable to be the target of a jump-to-definition operation.

This PR fixes it so that we don't mark definitions as references once marked as definition.

Test plan

Ran QA tests locally.

@efritz efritz added team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/language-platform labels Jun 20, 2023
@efritz efritz requested review from Strum355 and cesrjimenez June 20, 2023 13:57
@efritz efritz self-assigned this Jun 20, 2023
@cla-bot cla-bot Bot added the cla-signed label Jun 20, 2023
@sourcegraph-bot

sourcegraph-bot commented Jun 20, 2023

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 9f89d65...fac3f16.

Notify File(s)
@Strum355 enterprise/internal/codeintel/uploads/internal/background/processor/scip.go

@efritz efritz enabled auto-merge (squash) June 20, 2023 14:02
@efritz efritz merged commit 8231c68 into main Jun 20, 2023
@efritz efritz deleted the ef/fix-clobber-scip branch June 20, 2023 14:13
github-actions Bot pushed a commit that referenced this pull request Jun 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/graph Graph Team (previously Code Intel/Language Tools/Language Platform)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants