Bug 344072

Summary: Colors for coloring variables aren't recycled properly
Product: [Applications] kdevelop Reporter: Avihay <kde>
Component: Language Support: QML/JavaScriptAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Avihay 2015-02-12 10:32:46 UTC
Colors for coloring variables aren't recycled properly when leaving the scope, resulting in all variables past a point being colored in the last color available.

I'm not sure what scopes trigger it, or rather, fail to recycle, but it's easy to see in a pure JS file written in node.js style of over 1k lines (or even less), especially if you have a few require at the start that claim a decent chunk of available colors, for the entire document.

Reproducible: Sometimes

Steps to Reproduce:
1. open a pure JS file written in node.js style of over 1k lines (or even less)
2. scroll down till there's no more color variations for the variables


Actual Results:  
all variables are colored with the last color available for variables

Expected Results:  
variables should  recycle colors from some scopes that were closed and shouldn't conflict
Comment 1 Justin Zobel 2021-03-09 22:48:49 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.