FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VS 2010 right-click error

 
Post new topic   Reply to topic     Forum Index -> Visual D
View previous topic :: View next topic  
Author Message
awishformore



Joined: 03 Sep 2008
Posts: 17

PostPosted: Tue Jun 29, 2010 2:28 pm    Post subject: VS 2010 right-click error Reply with quote

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
View user's profile Send private message
awishformore



Joined: 03 Sep 2008
Posts: 17

PostPosted: Tue Jun 29, 2010 2:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Fri Jul 02, 2010 1:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Visual D All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group