View previous topic :: View next topic |
Author |
Message |
awishformore
Joined: 03 Sep 2008 Posts: 17
|
Posted: Tue Jun 29, 2010 2:28 pm Post subject: VS 2010 right-click error |
|
|
Hello there.
I switched back up to Visual Studio 2010 and installed VisualD to give it another spin. Something new came up this time: every time I right-click anywhere in the solution/project/file view, I get the following pop-up error:
Code: | System.ArgumentException: The method returned a COM Variant type that is not Interop compatible.
at System.StubHelpers.ObjectMarshaler.ConvertToManaged(IntPtr pSrcVariant)
at Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.GetProperty(UInt32 itemid, Int32 propid, Object& pvar)
at Ankh.VS.Selection.SelectionContext.<GetDescendants>d__14.MoveNext()
at Ankh.VS.Selection.SelectionContext.<InternalGetSelectedItemsRecursive>d__a.MoveNext()
at Ankh.VS.Selection.CachedEnumerable`1.GetNext(Int32 index, T& value)
at Ankh.VS.Selection.CachedEnumerable`1.Walker.MoveNext()
at Ankh.VS.Selection.SelectionContext.<InternalGetSelectedProjects>d__54.MoveNext()
at Ankh.VS.Selection.CachedEnumerable`1.GetNext(Int32 index, T& value)
at Ankh.VS.Selection.CachedEnumerable`1.Walker.MoveNext()
at Ankh.Commands.AddToSccCommands.OnUpdate(CommandUpdateEventArgs e)
at Ankh.Commands.CommandMapItem.OnUpdate(CommandUpdateEventArgs e)
at Ankh.Commands.CommandMapper.PerformUpdate(AnkhCommand command, CommandUpdateEventArgs e) |
Strangely enough, everything behaves as expected, though. |
|
Back to top |
|
|
awishformore
Joined: 03 Sep 2008 Posts: 17
|
Posted: Tue Jun 29, 2010 2:32 pm Post subject: |
|
|
Hey again.
I just figured out that Ankh is the SVN plugin I use for source control (and which works just fine for C++). Any way you could fix this? Or does the problem lie with AnkhSVN? |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Fri Jul 02, 2010 1:32 am Post subject: |
|
|
Hi,
this is caused by AnkhSVN requesting some project properties, that are optional according to the Microsoft documentation. As it seems, these are not handled gracefully.
I've added a handler for these properties and everything seems fine now. I've also added support for displaying the scc state icon, but it does not yet update when making changes.
The changes will be in the next release... |
|
Back to top |
|
|
|