Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
First of all I'm thinking that bug 6239 is not same - but may be the source is same :)
Example I have class with X lines but if i do right click on breakpoints/bookmarks area (the most left area in text editor) after the last line. I'm getting this exception.
System.ArgumentException: Line < MinLine
at Mono.TextEditor.Caret.set_Line (Int32 value) [0x0003e] in /home/vmladenov/Projects/work/git/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Caret.cs:55
at MonoDevelop.SourceEditor.SourceEditorView.OnIconButtonPress (System.Object s, Mono.TextEditor.MarginMouseEventArgs args) [0x0001c] in /home/vmladenov/Projects/work/git/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1074
at Mono.TextEditor.Margin.MousePressed (Mono.TextEditor.MarginMouseEventArgs args) [0x0000b] in /home/vmladenov/Projects/work/git/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/Margin.cs:86
at Mono.TextEditor.IconMargin.MousePressed (Mono.TextEditor.MarginMouseEventArgs args) [0x00000] in /home/vmladenov/Projects/work/git/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/IconMargin.cs:73
at Mono.TextEditor.TextEditor.OnButtonPressEvent (Gdk.EventButton e) [0x000a3] in /home/vmladenov/Projects/work/git/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextEditor.cs:1025
at Gtk.Widget.buttonpressevent_cb (IntPtr widget, IntPtr evnt) [0x0000d] in /home/abuild/rpmbuild/BUILD/gtk-sharp-2.12.10/gtk/generated/Widget.cs:2938
I comes from OnIconButtonPress method of SourceEditorView which receives
args.LineNumber == 0 param.
Git revision: 097de72fd94d30698fe5b10e57ac79b9a60a32dd