After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 742900 - Use different colored underlines for warnings / info messages from g-c-a
Use different colored underlines for warnings / info messages from g-c-a
Status: RESOLVED OBSOLETE
Product: gnome-builder
Classification: Other
Component: editor
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on: 402168
Blocks:
 
 
Reported: 2015-01-14 09:59 UTC by Elad Alfassa
Modified: 2018-01-11 09:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Elad Alfassa 2015-01-14 09:59:29 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.
Comment 1 Igor Gnatenko 2015-01-14 10:10:32 UTC
I'm not sure if this bug in builder, probably in GtkSourceView, but I should check.
Comment 2 Elad Alfassa 2015-01-14 10:16:53 UTC
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.
Comment 3 Christian Hergert 2015-01-14 10:17:37 UTC
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.
Comment 4 Christian Hergert 2015-02-10 01:25:37 UTC
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.
Comment 5 GNOME Infrastructure Team 2018-01-11 09:46:10 UTC
-- 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.