Bug 13330 - Error tooltips are broken
Summary: Error tooltips are broken
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
Depends on:
Reported: 2013-07-18 18:42 UTC by Mikayla Hutchinson [MSFT]
Modified: 2014-01-20 06:08 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Mikayla Hutchinson [MSFT] 2013-07-18 18:42:23 UTC
Error tooltips are often not displayed e.g. unresolved overloads, and the following pango error is printed to the log:

WARNING [2013-07-18 15:52:56Z]: Pango-Warning: pango_layout_set_markup_with_accel: Error on line 1 char 79: 'byte[]' is not a valid name: '['
Stack trace: 
   at Pango.Layout.pango_layout_set_markup(IntPtr , IntPtr , Int32 )
   at Pango.Layout.SetMarkup(System.String markup) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/gtk-sharp-2-12-branch/pango/generated/Layout.custom:line 92
   at MonoDevelop.Components.FixedWidthWrapLabel.SetLayoutMarkupAndResize() in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/FixedWidthWrapLabel.cs:line 239
   at MonoDevelop.Components.FixedWidthWrapLabel.CreateLayout() in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/FixedWidthWrapLabel.cs:line 95
   at MonoDevelop.Components.FixedWidthWrapLabel.OnStyleSet(Gtk.Style previous_style) in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/FixedWidthWrapLabel.cs:line 139
   at Gtk.Widget.styleset_cb(IntPtr widget, IntPtr previous_style) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/gtk-sharp-2-12-branch/gtk/generated/Widget.cs:line 923
   at Gtk.Widget.gtk_widget_show_all(IntPtr )
   at Gtk.Widget.ShowAll() in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/gtk-sharp-2-12-branch/gtk/generated/Widget.cs:line 4306
   at Mono.TextEditor.TooltipProvider.ShowTooltipWindow(Mono.TextEditor.TextEditor editor, Int32 offset, ModifierType modifierState, Int32 mouseX, Int32 mouseY, Mono.TextEditor.TooltipItem item) in /Users/michael/Mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TooltipProvider.cs:line 85
   at Mono.TextEditor.TextArea.TooltipTimer() in /Users/michael/Mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextArea.cs:line 2736
   at GLib.Timeout+TimeoutProxy.Handler() in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/gtk-sharp-2-12-branch/glib/Timeout.cs:line 70
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run() in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/gtk-sharp-2-12-branch/gtk/Application.cs:line 135
   at MonoDevelop.Ide.IdeApp.Run() in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs:line 397
   at MonoDevelop.Ide.IdeStartup.Run(MonoDevelop.Ide.MonoDevelopOptions options) in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:line 286
   at MonoDevelop.Ide.IdeStartup.Main(System.String[] args) in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:line 533
   at MonoDevelop.Startup.MonoDevelopMain.Main(System.String[] args) in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Startup/MonoDevelop.Startup/MonoDevelopMain.cs:line 17
Comment 1 Mike Krüger 2013-07-19 00:50:43 UTC
Which error is broken ? 
I think this is 100% reproduceable therefore I need the exact case.
Comment 2 Mikayla Hutchinson [MSFT] 2013-07-20 22:39:57 UTC
Here's an easy repro:

Task.Factory.StartNew (new List<int> ());
Comment 3 Mike Krüger 2013-07-23 02:36:14 UTC
Comment 4 Nischal 2014-01-20 06:08:15 UTC
Checked with the code line mentioned in comment 2 and now error tooltips are appearing correctly. Screencast: http://screencast.com/t/LWq5pnPO

Please let me know in case additional areas/pointers I need to check. 

Environment info:
Xamarin Studio
Version 4.2.3 (build 127)
Git revision: 781819ed590c05a48201be53eb9602b56a4c1fde

Hash: aed2b17

Mono 3.2.6 ((no/9b58377)

Xam.Android 4.13.0-33 (Mac master)