google-code-export / progressive-scroll

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

scrollbar disappears for txt, html, cshtml, aspx, asp files #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create new txt/html/cshtml/aspx/or asp file
2. observe error message is displayed and the scrollbar disappears. Error 
message from activity log:

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(IWp
fTextViewMarginProvider mp)
   at 
Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TEx
tension,TMetadata,TExtensionInstance](Object errorSource, Lazy`2 provider, 
Func`2 getter)

What is the expected output? What do you see instead?
I expected to see the scrollbar (any scrollbar).  Instead, no scrollbar is 
displayed.    

What version of the product are you using? On what operating system?
ProgressiveScroll 0.6.1
VS 2012
Win7 64-bit

Please provide any additional information below.
Even if the color coding isn't supported for this type of file, reverting back 
to the original scrollbar would be better than having none at all.  

Original issue reported on code.google.com by chelsea....@southsound911.org on 16 Oct 2012 at 6:35

GoogleCodeExporter commented 9 years ago
Agreed.

It shouldn't happen for txt files since they don't have ContentType == "code" 
and I can reproduce it for html files. So I should be able to come up with a 
fix.

Original comment by freaksken on 16 Oct 2012 at 9:17

GoogleCodeExporter commented 9 years ago
Issue 9 has been merged into this issue.

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

GoogleCodeExporter commented 9 years ago
I found the problem with html files. Now I just need to find an acceptable fix. 
Should be ready this weekend.

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

GoogleCodeExporter commented 9 years ago
Should be fixed in 0.6.2.
It was crashing on the highlight system. So I disabled that for now.

Original comment by freaksken on 19 Oct 2012 at 7:38

GoogleCodeExporter commented 9 years ago
That's awesome thanks!

Original comment by chelsea....@southsound911.org on 19 Oct 2012 at 7:44

GoogleCodeExporter commented 9 years ago

Original comment by freaksken on 15 May 2013 at 11:42