Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VAX exception

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
werelord Posted - Aug 05 2013 : 12:56:55 PM
I'm running Visual Assist v10.7.1940.0, with Visual Studio 2012 Update 3 (although I have been getting this exception in previous versions of VS..

Occasionally, usually once or twice per day, I'm getting an exception in VS from an addon, and I believe it is from VAX.. The error is as follows:



969 ERROR System.ArgumentNullException: Value cannot be null. Parameter name: targetSnapshot at Microsoft.VisualStudio.Text.SnapshotSpan.TranslateTo(ITextSnapshot targetSnapshot, SpanTrackingMode spanTrackingMode) at Microsoft.VisualC.CppOutliner.GetTags(NormalizedSnapshotSpanCollection spans) at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__16.MoveNext() Editor or Editor Extension 2013/08/05 17:07:26.500

970 ERROR System.ArgumentNullException: Value cannot be null. Parameter name: targetSnapshot at Microsoft.VisualStudio.Text.SnapshotSpan.TranslateTo(ITextSnapshot targetSnapshot, SpanTrackingMode spanTrackingMode) at Microsoft.VisualC.CppOutliner.GetTags(NormalizedSnapshotSpanCollection spans) at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__16.MoveNext() Editor or Editor Extension 2013/08/05 17:07:26.537



This usually happens when I open an existing c++ header or source file.. I believe its in relation to the source outlining code; when the exception happens outlining is unavailable in the given source file that was opened when the exception happens.. The exception references the ActivityLog.xml which is where I pulled the exception details above.

This isn't necessarily a breaking exception; VAX and VS continue to work as normal, and other files still have outlining available. Just wanted to give a heads up to see if this bug can be fixed..
2   L A T E S T    R E P L I E S    (Newest First)
werelord Posted - Aug 06 2013 : 08:15:02 AM
will give that a try, thanks!
accord Posted - Aug 05 2013 : 6:25:07 PM
I believe the problem is due to an invalid cache built by Visual Studio. If you delete the cache it should fix the issue:

Close Visual Studio and then delete all files including sub directories:
C:\\Users\\<username>\\AppData\\Local\\Microsoft\\VisualStudio\\11.0\\ComponentModelCache\\*

and all .cache files in the following directory and its subdirectories:
C:\\Users\\<username>\\AppData\\Local\\Microsoft\\VisualStudio\\11.0\\Extensions\\*.cache

Visual Studio will rebuild those files when it starts up, and should resolve your problem.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000