GNOME Bugzilla – Bug 742900
Use different colored underlines for warnings / info messages from g-c-a
Last modified: 2018-01-11 09:46:10 UTC
gnome-code-assistance has various levels of messages, including info, warning and error. For example, the python backend lists PEP8 errors as info, and syntax errors as errors. Other backends might use the warning level too. Right now, Builder highlights all types of error (afaik, I haven't seen a "warning" type error yet) with a red squiggly underline. It would make sense to use a blue squiggly underline for "info", and orange sqiuggly underline for warnings.
I'm not sure if this bug in builder, probably in GtkSourceView, but I should check.
Builder uses custom styling for this. gedit for example, which uses GtkSourceView too, has a very different style of highlighting these and does differentiate between the various levels. So I think it's something that should be fixed in Builder.
It's actually a bug in Gtk. I looked into this a couple of months ago, and there is no way to set the underline color for PANGO_UNDERLINE_ERROR regions using GtkTextTag. We need to add support for that to Gtk, and then we can pretty much just make it work. Although, I'd prefer to let the style schemes choose the color.
I added the support we need to Gtk, hopefully it is good enough to get merged and we can start taking advantage of it down here.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-builder/issues/10.