Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the non-obsolete constructor of SuggestedActionsSource throws an exception #40458

Closed
LaraSQP opened this issue Dec 17, 2019 · 8 comments
Closed

Comments

@LaraSQP
Copy link

LaraSQP commented Dec 17, 2019

There is an error in the title. It should read SuggestedActionSet not SuggestedActionsSource.

So, turns out that using the obsolete constructor of SuggestedActionSet is the only way to avoid the following exception.

System.InvalidOperationException: Can only compare ISuggestedActionCategories defined with SuggestedActionCategoryRegistryServiceat Microsoft.VisualStudio.Language.Intellisense.Implementation.SuggestedActionCategoryComparer.Compare(String x, String y)at System.Linq.EnumerableSorter2.CompareKeys(Int32 index1, Int32 index2)at System.Linq.EnumerableSorter1.QuickSort(Int32[] map, Int32 left, Int32 right)at System.Linq.EnumerableSorter1.Sort(TElement[] elements, Int32 count)at System.Linq.OrderedEnumerable1.d__1.MoveNext()at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source)at Microsoft.VisualStudio.Language.Intellisense.Implementation.DefaultLightBulbPresenterDefaultIconUIElementProvider.GetUIElement(ISuggestedActionCategorySet itemToRender, ILightBulbSession context, UIElementType elementType)at Microsoft.VisualStudio.Language.Intellisense.Implementation.LightBulb..ctor(LightBulbSession session, LightBulbPresenterStyleFactory presenterStyleFactory)at Microsoft.VisualStudio.Language.Intellisense.Implementation.LightBulbTagger.<Microsoft.VisualStudio.Text.Tagging.ITagger<Microsoft.VisualStudio.Language.Intellisense.Implementation.LightBulbTag>.GetTags>b__10_1()at Microsoft.VisualStudio.Language.Intellisense.Implementation.LightBulbTag.get_Glyph()at Microsoft.VisualStudio.Language.Intellisense.Implementation.LightBulbGlyphFactory.GenerateGlyph(IWpfTextViewLine line, ISuggestionTag tag)at Microsoft.VisualStudio.Text.Editor.Implementation.CanvasAndGlyphFactory1.GenerateGlyph(IWpfTextViewLine line, ITag tag)at Microsoft.VisualStudio.Text.Editor.Implementation.GlyphMarginVisualManager1.AddGlyph(TGlyphTag tag, SnapshotSpan span)at Microsoft.VisualStudio.Text.Editor.Implementation.GlyphMargin1.RefreshGlyphsOver(ITextViewLine textViewLine)at Microsoft.VisualStudio.Text.Editor.Implementation.GlyphMargin1.OnBatchedTagsChanged(Object sender, BatchedTagsChangedEventArgs e)at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args) --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

This is a breaking change.

Let me know if you need more details.

@CyrusNajmabadi
Copy link
Member

This doesn't appear to be a roslyn issue. @olegtk can you get this to the relevant team?

@LaraSQP
Copy link
Author

LaraSQP commented Dec 17, 2019

Good point.

Could you please give me a url to the repo or whatever that applies?

Much appreciated.

@CyrusNajmabadi
Copy link
Member

@LaraSQP I don't believe it is public. I've paged someone from an internal VS team to take this bug and migrate to their system. Thanks!

@LaraSQP
Copy link
Author

LaraSQP commented Dec 17, 2019

Figures.

@LaraSQP LaraSQP closed this as completed Dec 17, 2019
@olegtk
Copy link
Contributor

olegtk commented Dec 18, 2019

@LaraSQP, please file a bug via https://developercommunity.visualstudio.com please. Thanks!

@LaraSQP
Copy link
Author

LaraSQP commented Dec 18, 2019

No can do, I'm afraid. Have no Microsoft account or plans for one.

Link here (github) and ask away. That's my best.

@olegtk
Copy link
Contributor

olegtk commented Dec 18, 2019

ok, then file it on https://github.com/microsoft/vs-editor-api and I will route it internally.

@LaraSQP
Copy link
Author

LaraSQP commented Dec 19, 2019

There you go.

microsoft/vs-editor-api#20 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants