Bug 384779 - The line with error is highlighted as wrong even when the error is fixed.
Summary: The line with error is highlighted as wrong even when the error is fixed.
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: All editors (show other bugs)
Version: 5.1.1
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-16 20:03 UTC by Juraj
Modified: 2019-09-24 14:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Example how to trigger this behavior / bug (1.05 MB, video/x-matroska)
2017-09-16 21:45 UTC, Juraj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juraj 2017-09-16 20:03:06 UTC
In the editor, when code checker find an error it highlights the wrong line with red background but when the error / wrong line is fixed error is removed from 'Problems' view but the line is still highlighted in editor and in minimap.

I tested this with Python file now but i experienced this with C/C++ as well

How to reproduce:
- Open file. (i tried only file which belongs to project)
- Write some wrong code
- Wait until the code analyser / checker marks the line as wrong
- Fix the error
- The line is still highlighted as wrong even when the error is not there anymore.
Comment 1 Juraj 2017-09-16 21:10:18 UTC
Additional information:
This behaviour is triggered when there is warning and error.
I tested it with Python file. I wrote wrong code / created error in a place which also PEP8 checker should mark as wrong (warning). Then i fixed the error but the line was still marker as error even after the warning was also removed.
Comment 2 Juraj 2017-09-16 21:45:01 UTC
Created attachment 107884 [details]
Example how to trigger this behavior / bug

More info:
"Settings -> Language Support -> Highlight problematic lines" is ENABLED
"Settings -> Analysers -> Python Style Checking -> Enable Style Checking" is ENABLED and configured like this:
Disable: E111,E114,E121,E123,E126,E203,E226,E24,E704,W503
Enable: E302,E263
Line length: 100
"Settings -> Language Support -> Background Parser -> Enable Background Parser" is ENABLED
Comment 3 Sven Brauch 2017-09-16 22:03:49 UTC
Hm interesting, this looks unrelated to python actually, but instead like a renderer (?) bug. Will need to investigate.
Comment 4 Thomas Schöps 2019-09-24 14:49:30 UTC
Should be fixed by: https://invent.kde.org/kde/kdevelop/merge_requests/18