Re: Strange bug in code highlighting
Sven Brauch <mail-ITmcY+a7/[email protected]>
| Newsgroups | gmane.comp.kde.users.kdevelop |
|---|---|
| Message-ID | <[email protected]> |
On 26/02/18 20:47, Matthew Woehlke wrote: > Is this a known issue? Should I file a bug report (if so, against what > component?)? Yes, it's known. It is extremely difficult to trace though. I think the reason is somehow related to the modification revision attached to the parse job not fitting the contents, i.e. a race-condition between reading the contents of the document and the modification revision. Then if you insert a line in between these events, the syntax highlighting is translated one line wrong and you get this effect. It might also be related to saving the file at the "wrong" time, because I'm not sure the transition from the "unsaved" to the "on-disk" state is handled correctly when it happens at some random point during creating the parse job. Any insights on how to reproduce the issue are very welcome, I already spent hours trying to find it but didn't achieve much, mostly because it happens really really rarely. Best, Sven
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEESmKXmTK7vOXjlWrPaMqOOMS7P0sFAlqVg4YACgkQaMqOOMS7 P0tCKw//YsZYBJeKM8R2v1gK4RMiQLVJtdL0+D81wTuPqyhgRGi23rxGSgqPQL7f d1aQ8PGErvxCSmx5dfFMooTMW0Yr+b0g0+SAZSPhgsc7+u7NiU1tM5Up3fkUqZvE 2qH1t/GnTvijsNBkVVAUBKr6YX2TDNkuqbINyg/UNAUtVS9PoaWF3hotStxyDniE gguOARHRBH7pkYc/N835RRc4xxODjysRjia77jA2aw1mjDRFgetBuXJTcO7+ZGxO eGADjm3V+Mwf683ispjIf6z2SRTXKfzxp4RXICiuT/ig85Rq6GdO9fa4NlQ4/NOO U1YDdyH6iCUy9y+DCN23EyBGYzCECaBZoo4UOXmLnwGbMNGeljxZeSedU8QY5eQE Fu3w5sXb7NQv92eM08D/vQyxGcwpAkky6Znv3ubva67M99PkEMI4fYAp+kIrve5f 2vpl0iynaUci0w0p7iP2jAxK3xxtx97jkoZQDCoLl4zYJajZSa8RWLpd65PVD0Ku JVfsgi4anoUusWMvGtD3IjhiT72zWoqI/UChvns/Q1acNsL42s7EWi6gfyH147fj YDUL8oU+khLtT4gUVPE4qWK0qz45cL4uTh0GoC30aPC3POLl+l64Nzk+avzaBgD6 9fhlwoR2K0ZHBxUAfCt1IJSqziHeQcrhIho6kV886OzdkgVIksU= =QFhp -----END PGP SIGNATURE-----