watanabe1115 / CodeFormatter

0 stars 2 forks source link

エラーのハンドリングを行う #2

Open mob-takashiwatanabe opened 6 years ago

mob-takashiwatanabe commented 6 years ago

macで発生

Unhandled Exception:
System.InvalidOperationException: Detected overlapping changes [TextReplaceAction: Offset=106, RemovalLength=1, NewText=        ]/[TextReplaceAction: Offset=105, RemovalLength=2, NewText=
        ]
  at ICSharpCode.NRefactory.CSharp.FormattingChanges.ApplyChanges (System.Int32 startOffset, System.Int32 length, System.Action`3[T1,T2,T3] documentReplace, System.Func`4[T1,T2,T3,TResult] filter) [0x0009d] in <d13506fb97ad43d4921602b66d9361a9>:0 
  at ICSharpCode.NRefactory.CSharp.FormattingChanges.ApplyChanges () [0x0000d] in <d13506fb97ad43d4921602b66d9361a9>:0 
  at ICSharpCode.NRefactory.CSharp.CSharpFormatter.InternalFormat (ICSharpCode.NRefactory.Editor.IDocument document) [0x00029] in <d13506fb97ad43d4921602b66d9361a9>:0 
  at ICSharpCode.NRefactory.CSharp.CSharpFormatter.Format (System.String text) [0x00007] in <d13506fb97ad43d4921602b66d9361a9>:0 
  at CodeFormatter.Program.Format (System.String path) [0x00025] in <e71c31c993594c86ba00945e9160f5ca>:0 
  at CodeFormatter.Program.Main (System.String[] args) [0x000eb] in <e71c31c993594c86ba00945e9160f5ca>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Detected overlapping changes [TextReplaceAction: Offset=106, RemovalLength=1, NewText=     ]/[TextReplaceAction: Offset=105, RemovalLength=2, NewText=
        ]
  at ICSharpCode.NRefactory.CSharp.FormattingChanges.ApplyChanges (System.Int32 startOffset, System.Int32 length, System.Action`3[T1,T2,T3] documentReplace, System.Func`4[T1,T2,T3,TResult] filter) [0x0009d] in <d13506fb97ad43d4921602b66d9361a9>:0 
  at ICSharpCode.NRefactory.CSharp.FormattingChanges.ApplyChanges () [0x0000d] in <d13506fb97ad43d4921602b66d9361a9>:0 
  at ICSharpCode.NRefactory.CSharp.CSharpFormatter.InternalFormat (ICSharpCode.NRefactory.Editor.IDocument document) [0x00029] in <d13506fb97ad43d4921602b66d9361a9>:0 
  at ICSharpCode.NRefactory.CSharp.CSharpFormatter.Format (System.String text) [0x00007] in <d13506fb97ad43d4921602b66d9361a9>:0 
  at CodeFormatter.Program.Format (System.String path) [0x00025] in <e71c31c993594c86ba00945e9160f5ca>:0 
  at CodeFormatter.Program.Main (System.String[] args) [0x000eb] in <e71c31c993594c86ba00945e9160f5ca>:0