Skip to content

[Bug] Location node is empty for imports in JS and python (at least) #5651

@ventusfortis

Description

@ventusfortis

The location node got from imports (cpg.imports.location.l) is empty (by that I mean that all its fields are empty) in:

  • JS files (I also tried cpg.imports.file.l to get the filename)
Image Image
  • Python files
Image Image

It is not empty when loading Java files. but for these two languages it doesn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions