UIKit0 / progressive-scroll

Automatically exported from code.google.com/p/progressive-scroll
0 stars 1 forks source link

.CSHTML Files Cause a Plugin Error #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open a .cshtml file

VS reports an exception occurred and scrollbars for .cshtml files are normal.  
The exception is:
System.Collections.Generic.KeyNotFoundException: The given key was not present 
in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at ProgressiveScroll.ProgressiveScroll.RegisterEvents()
   at ProgressiveScroll.ProgressiveScroll..ctor(IWpfTextViewHost textViewHost, IOutliningManager outliningManager, ITagAggregator`1 changeTagAggregator, ITagAggregator`1 markerTagAggregator, ITagAggregator`1 errorTagAggregator, Debugger debugger, SimpleScrollBar scrollBar, ProgressiveScrollFactory factory)
   at ProgressiveScroll.ProgressiveScrollFactory.CreateMargin(IWpfTextViewHost textViewHost, IWpfTextViewMargin containerMargin)
   at Microsoft.VisualStudio.Text.Utilities.ContainerMargin.<AddMargins>b__2(IWpfTextViewMarginProvider mp)
   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy`2 provider, Func`2 getter)

It looks like there's no tagger provider for cshtml files, which isn't 
surprising, but it'd be nice if the plugin would just ignore files it can't 
handle (or not attempt to highlight them - either way).

This was on VS 2010 on Windows 7 64 bit with the latest version of the plugin 
from here on Google code.

Original issue reported on code.google.com by dtander...@gmail.com on 17 Oct 2012 at 6:53

GoogleCodeExporter commented 9 years ago
Oh, sorry, I missed that this was a duplicate

Original comment by dtander...@gmail.com on 17 Oct 2012 at 6:54

GoogleCodeExporter commented 9 years ago

Original comment by freaksken on 17 Oct 2012 at 8:47