Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Problem with lines where colon is used: invalid point #763

Open
RuzgarDogu opened this issue Feb 17, 2022 · 1 comment
Open

Problem with lines where colon is used: invalid point #763

RuzgarDogu opened this issue Feb 17, 2022 · 1 comment

Comments

@RuzgarDogu
Copy link

RuzgarDogu commented Feb 17, 2022

There is a weird problem which might be related to my configuration, but

In lines where I use colons - such as if conditions or for loops - it gives the error "Flake8 error: invalid point" on the first line, instead of the line with the error.

Like the example given below, If I remove the colon in line 3, the linter highlights the first line where variable declaration is made, and says "Flake8 error: invalid point" while it should highlight line 3 with the actual error.

a = 1
for x in range(4):
    if x == 3
        print(x)

I tried with different versions of Flake8, uninstalled and reinstalled linter-flake8 but couldn't solve the issue.

Thank you in advance.

@gilbert-ncl
Copy link

Me too, on windows.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants