sourcery icon indicating copy to clipboard operation
sourcery copied to clipboard

Sourcery yellow squiggly underlines appear in wrong location in PyCharm

Open DanielTsiang opened this issue 2 years ago • 1 comments

Checklist

  • [x] I have searched the Sourcery documentation for the issue, and found nothing
  • [x] 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

DanielTsiang avatar Jul 19 '23 20:07 DanielTsiang

Thanks for raising this - have just reproduced it

Hellebore avatar Jul 28 '23 13:07 Hellebore