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.
By using gtk-sharp.sln, with MD master as of today (5082d005ef1a51dfe4957af31c92cf9c269a85da), I'm getting these errors in the console:
ERROR [2013-10-23 10:26:30Z]: VersionControl returned 2 items for /home/knocte/Documents/Code/gtk-sharpFIXCAIRODISPOSES/gtk/generated/CellRenderer.cs
ERROR [2013-10-23 10:26:30Z]: The infos were: /home/knocte/Documents/Code/gtk-sharpFIXCAIRODISPOSES/gtk/generated ::: /home/knocte/Documents/Code/gtk-sharpFIXCAIRODISPOSES/gtk/generated/CellRenderer.cs
ERROR [2013-10-23 10:26:30Z]:
System.InvalidOperationException: Sequence contains more than one matching element
at System.Linq.Enumerable.Single[VersionInfo] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.Single[VersionInfo] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at MonoDevelop.VersionControl.Repository.GetVersionInfo (FilePath localPath, VersionInfoQueryFlags queryFlags) [0x00090] in /home/knocte/Documents/Code/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/Repository.cs:161
at MonoDevelop.VersionControl.Views.SubviewAttachmentHandler.HandleDocumentChanged (System.Object sender, System.EventArgs e) [0x000c1] in /home/knocte/Documents/Code/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/SubviewAttachmentHandler.cs:68
This used to be caused by submodules, but I believe we have dealt with that case. I'm not sure why this is happening. What is the result from 'git diff' or 'git status' from commandline git?
The interesting thing is that GetVersionInfo is returning a directory *and* a file when we query for just a file.
> What is the result from 'git status' from commandline git?
Right now, this (although not sure if it was exactly this when I reproduced the error):
$ git status
# On branch fix_cairo_leak
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
# modified: cairo/Context.cs
# modified: generator/GObjectVM.cs
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
no changes added to commit (use "git add" and/or "git commit -a")
Actually maybe the issue is that the 'generated' directory is marked as git ignore but we're recursing into it anyway? Does that sound likely? Is 'gtk-sharpFIXCAIRODISPOSES/gtk/generated' an ignored directory?
> Does that sound likely?
Yes, that's why I named the bug like it is :)
> Is 'gtk-sharpFIXCAIRODISPOSES/gtk/generated' an ignored directory?
Gitignores should be handled by NGit. Maybe the treewalk is stupider than I thought. Will check it out.
This is fixed now by having a workaround having been applied for #17216.