//comment
EmptyStruct emptyStruct = EmptyStruct{}; //1 space after ';'' otherwise: ;//1 space after...
Description
Crashes upon trying to format. Removing either //comment or //1 space after ';'' otherwise: ;//1 space after... will not crash.
Crash info
System.ArgumentOutOfRangeException
HResult=0x80131502
Message=Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
Source=System.Private.CoreLib
StackTrace:
at System.ThrowHelper.ThrowArgumentOutOfRange_IndexException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at ClangFormatEditor.DiffMatchPatchWrapper.DetectOperationPerLine(String input, String output, List`1 inputOperationPerLine, List`1 outputOperationPerLine) in C:\Users\Lucy\Downloads\clang-format-editor\ClangFormatEditor\DiffStyle\DiffMatchPatchWrapper.cs:line 209
at ClangFormatEditor.DiffMatchPatchWrapper.DiffAsFlowDocuments(String input, String output) in C:\Users\Lucy\Downloads\clang-format-editor\ClangFormatEditor\DiffStyle\DiffMatchPatchWrapper.cs:line 153
at ClangFormatEditor.MVVM.Controllers.DiffController.<CreateFlowDocumentAsync>d__13.MoveNext() in C:\Users\Lucy\Downloads\clang-format-editor\ClangFormatEditor\MVVM\Controllers\DiffController.cs:line 78
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at ClangFormatEditor.ConfiguratorViewModel.<RunFormatAsync>d__77.MoveNext() in C:\Users\Lucy\Downloads\clang-format-editor\ClangFormatEditor\MVVM\ViewModel\ConfiguratorViewModel.cs:line 301
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
at ClangFormatEditor.TaskExtensions.<SafeFireAndForget>d__0.MoveNext() in C:\Users\Lucy\Downloads\clang-format-editor\ClangFormatEditor\Extensions\TaskExtensions.cs:line 25
This exception was originally thrown at this call stack:
[External Code]
ClangFormatEditor.DiffMatchPatchWrapper.DetectOperationPerLine(string, string, System.Collections.Generic.List<(object, ClangFormatEditor.DiffMatchPatchWrapper.LineChanges)>, System.Collections.Generic.List<(object, ClangFormatEditor.DiffMatchPatchWrapper.LineChanges)>) in DiffMatchPatchWrapper.cs
ClangFormatEditor.DiffMatchPatchWrapper.DiffAsFlowDocuments(string, string) in DiffMatchPatchWrapper.cs
ClangFormatEditor.MVVM.Controllers.DiffController.CreateFlowDocumentAsync(string, ClangFormatEditor.Enums.FormatStyle, System.Collections.Generic.List<ClangFormatEditor.Interfaces.IFormatOption>, System.Threading.CancellationToken) in DiffController.cs
[External Code]
ClangFormatEditor.ConfiguratorViewModel.RunFormatAsync() in ConfiguratorViewModel.cs
[External Code]
ClangFormatEditor.TaskExtensions.SafeFireAndForget(System.Threading.Tasks.Task, bool, System.Action<System.Exception>) in TaskExtensions.cs
Autos
Name
Value
Type
continueOnCapturedContext
true
bool
◢
task
Id = 748, Status = Faulted, Method = "{null}", Result = "{Not yet computed}"
Example
Description
Crashes upon trying to format. Removing either
//comment
or//1 space after ';'' otherwise: ;//1 space after...
will not crash.Crash info
Autos