Skip to content

Sourcery yellow squiggly underlines appear in wrong location in PyCharm  #368

Open
@DanielTsiang

Description

@DanielTsiang

Checklist

  • I have searched the Sourcery documentation for the issue, and found nothing
  • I have checked there are no open bugs referencing the same bug or problem

Description

Sourcery yellow squiggly underlines appear in wrong location in PyCharm in version 1.6.0 of Sourcery. I would have expected the yellow squiggly line to appear under store = [] in the below example, but instead it appeared a lot further up the file for an unrelated code.

I haven't tested with many other versions but it did not work correctly for version 1.6.0. Currently I have version 1.2.0 of Sourcery installed and the yellow squiggly underlines appear where they should.

Code snippet that reproduces issue

store = []
for i in range(10):
    store.append(i)

Debug Information

IDE Version:

  • PyCharm 2023.1.4 (Community Edition)

Sourcery Version:

  • 1.6.0: Yellow squiggly line appearing in wrong location in PyCharm.
  • 1.2.0: Yellow squiggly line appearing in correct location in PyCharm.

Operating system and Version:

  • macOS Ventura 13.4.1

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