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

Underline mispositionned #126

Closed
ugomeda opened this issue Dec 15, 2015 · 7 comments
Closed

Underline mispositionned #126

ugomeda opened this issue Dec 15, 2015 · 7 comments
Labels

Comments

@ugomeda
Copy link

ugomeda commented Dec 15, 2015

I have this issue where linter-flake8 underlines the wrong part of a line :

flake8 backend/views/store.py
backend/views/store.py:50:26: F821 undefined name 'uuid'

And yet, characters 15-19 (instead of 26-30) are underlined, see the attached file :
screenshot from 2015-12-15 10-37-27

@Arcanemagus
Copy link
Member

@patrys looks like this is another issue in your code that attempts to get smart highlighting, do you have time to look over that (and #99 while you are at it 😛)?

@patrys
Copy link
Contributor

patrys commented Dec 15, 2015

Sure, I'll work on a fix.

@ugomeda
Copy link
Author

ugomeda commented Dec 16, 2015

Thanks !

@Arcanemagus
Copy link
Member

v1.9.3 has been published that includes this fix, please let us know if you see any more issues.

@ugomeda
Copy link
Author

ugomeda commented Jan 14, 2016

I'm reopening this issue, this happened with version 1.9.3 :

screenshot from 2016-01-14 10-04-58

Output of Flake8 (it's putting the error on the "from" sadly) :

malice_controller/tasks/utils.py:2:1: F401 'db' imported but unused

Maybe for a F401, find a match after the import ?

@jminuscula
Copy link

This is happening to me again in v2.0.2 —maybe I'm missing something?

$ apm list | grep linter-flake8
├── linter-flake8@2.0.2

$ flake8 --version
3.0.4 (pycodestyle: 2.0.0, mccabe: 0.5.2, pyflakes: 1.2.3) CPython 3.5.1 on Darwin

linter-flake8

@Arcanemagus
Copy link
Member

@jminuscula Can you please file a new issue, including the output that flake8 is giving you?

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

No branches or pull requests

4 participants