Skip to content

Duplicate symbols (same symbol name across different symbols) in generated index #160

Open
@ofeki-neosec

Description

@ofeki-neosec

It seems like in some cases the indexer binary would name two different symbols in the same exact symbol name.
I have some symbols in the code that are defined in different files using the same code (due to coding conventions).
For example:

SCHEMA = "content" # In the first file
SCHEMA = "admin" # In the second file

or

router = APIRouter()

In both files.

For some reason, the created index file contains a symbol block with an identical symbol for both files, without any differentiation of both symbols. This makes resolving references impossible since there's no way to know which symbol is being referenced in the code.

Examples for the resolved symbols:

scip-python python 18 fab26367f82173242a708664ff78e5710a5f59c8 /SCHEMA.
scip-python python 23 4ca18dc98dea1287e17d506f1ca8f717225af20b /router.

I'm running Python 3.12.6 and I'm pointing the indexer to an empty scip-python.json file ([]) if that matters.
Is there any way it can be solved through #156 ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions