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

Very edge case ActivityLog.xml dialog in InlineRename #34866

Closed
DavidKarlas opened this issue Apr 9, 2019 · 2 comments
Closed

Very edge case ActivityLog.xml dialog in InlineRename #34866

DavidKarlas opened this issue Apr 9, 2019 · 2 comments

Comments

@DavidKarlas
Copy link
Contributor

Version Used:
Any.

Steps to Reproduce:

  1. Start renaming
  2. Make multi-selection
  3. Type something

Expected Behavior:
No exception.
Actual Behavior:
Exception happen:

System.InvalidOperationException: Sequence contains more than one element
   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
   at Microsoft.CodeAnalysis.Editor.Implementation.InlineRename.InlineRenameSession.OpenTextBufferManager.OnTextBufferChanged(Object sender, TextContentChangedEventArgs args)
   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 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

I found this by looking at code... It's super unlikely user would do multiselection while renaming variable...

@jinujoseph jinujoseph added Area-IDE Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it labels Apr 9, 2019
@jinujoseph jinujoseph added this to the Backlog milestone Apr 9, 2019
@sharwell
Copy link
Member

Duplicate of #34903

@sharwell sharwell marked this as a duplicate of #34903 Apr 11, 2019
@sharwell sharwell added the Resolution-Duplicate The described behavior is tracked in another issue label Apr 11, 2019
@sharwell sharwell removed the Resolution-Duplicate The described behavior is tracked in another issue label Apr 11, 2019
@sharwell sharwell marked this as not a duplicate of #34903 Apr 11, 2019
@sharwell
Copy link
Member

Decided not to make this a duplicate since this one is much easier to resolve than #34903

@jinujoseph jinujoseph removed the help wanted The issue is "up for grabs" - add a comment if you are interested in working on it label Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants