Ctrl+C The copied text is incomplete.
[Window Title]
LibreAutomate message
[Main Instruction]
Exception
[Content]
ArgumentOutOfRangeException, repeatCount ('-1') must be a non-negative value. (Parameter 'repeatCount')
Actual value was -1.
[Expanded Information]
System.ArgumentOutOfRangeException: repeatCount ('-1') must be a non-negative value. (Parameter 'repeatCount')
Actual value was -1.
at System.ArgumentOutOfRangeException.ThrowNegative[T](T value, String paramName)
at System.ArgumentOutOfRangeException.ThrowIfNegative[T](T value, String paramName)
at Microsoft.CodeAnalysis.Formatting.AbstractTriviaFormatter.GetWhitespaceString(LineColumn lineColumn, LineColumnDelta delta) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs:line 798
at Microsoft.CodeAnalysis.Formatting.AbstractTriviaFormatter.FormatFirstTriviaAndWhitespaceAfter[T](LineColumn lineColumnBeforeTrivia1, SyntaxTrivia trivia1, LineColumnDelta existingWhitespaceBetween, SyntaxTrivia trivia2, Formatter`1 format, WhitespaceAppender`1 addWhitespaceTrivia, ArrayBuilder`1 changes, Boolean implicitLineBreak, CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs:line 389
at Microsoft.CodeAnalysis.Formatting.AbstractTriviaFormatter.FormatTrivia[T](Formatter`1 formatter, WhitespaceAppender`1 whitespaceAdder, ArrayBuilder`1 changes, CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs:line 340
at Microsoft.CodeAnalysis.Formatting.AbstractTriviaFormatter.FormatToTextChanges(CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs:line 270
at Microsoft.CodeAnalysis.CSharp.Formatting.TriviaDataFactory.FormattedComplexTrivia..ctor(FormattingContext context, ChainedFormattingRules formattingRules, SyntaxToken token1, SyntaxToken token2, Int32 lineBreaks, Int32 spaces, String originalString, CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.FormattedComplexTrivia.cs:line 40
at Microsoft.CodeAnalysis.CSharp.Formatting.TriviaDataFactory.ComplexTrivia.Format(FormattingContext context, ChainedFormattingRules formattingRules, Int32 lines, Int32 spaces, CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.ComplexTrivia.cs:line 44
at Microsoft.CodeAnalysis.Formatting.AbstractTriviaDataFactory.AbstractComplexTrivia.WithIndentation(Int32 indentation, FormattingContext context, ChainedFormattingRules formattingRules, CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.AbstractComplexTrivia.cs:line 146
at Microsoft.CodeAnalysis.Formatting.AbstractFormatEngine.OperationApplier.Apply(AdjustNewLinesOperation operation, Int32 pairIndex, CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs:line 140
at Microsoft.CodeAnalysis.Formatting.AbstractFormatEngine.ApplySpaceAndWrappingOperationsBody(FormattingContext context, TokenPairWithOperations operation, OperationApplier applier, CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs:line 415
at Microsoft.CodeAnalysis.Formatting.AbstractFormatEngine.ApplySpaceAndWrappingOperations(FormattingContext context, SegmentedList`1 tokenOperations, OperationApplier applier, CancellationToken cancellationToken) in
The script can execute successfully, but the format code button cannot be clicked. If the button is clicked, LA will crash.
[Window Title]
LibreAutomate message
[Main Instruction]
Exception
[Content]
ArgumentOutOfRangeException, repeatCount ('-1') must be a non-negative value. (Parameter 'repeatCount')
Actual value was -1.
[Expanded Information]
System.ArgumentOutOfRangeException: repeatCount ('-1') must be a non-negative value. (Parameter 'repeatCount')
Actual value was -1.
at System.ArgumentOutOfRangeException.ThrowNegative[T](T value, String paramName)
at System.ArgumentOutOfRangeException.ThrowIfNegative[T](T value, String paramName)
at Microsoft.CodeAnalysis.Formatting.AbstractTriviaFormatter.GetWhitespaceString(LineColumn lineColumn, LineColumnDelta delta) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs:line 798
at Microsoft.CodeAnalysis.Formatting.AbstractTriviaFormatter.FormatFirstTriviaAndWhitespaceAfter[T](LineColumn lineColumnBeforeTrivia1, SyntaxTrivia trivia1, LineColumnDelta existingWhitespaceBetween, SyntaxTrivia trivia2, Formatter`1 format, WhitespaceAppender`1 addWhitespaceTrivia, ArrayBuilder`1 changes, Boolean implicitLineBreak, CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs:line 389
at Microsoft.CodeAnalysis.Formatting.AbstractTriviaFormatter.FormatTrivia[T](Formatter`1 formatter, WhitespaceAppender`1 whitespaceAdder, ArrayBuilder`1 changes, CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs:line 340
at Microsoft.CodeAnalysis.Formatting.AbstractTriviaFormatter.FormatToTextChanges(CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs:line 270
at Microsoft.CodeAnalysis.CSharp.Formatting.TriviaDataFactory.FormattedComplexTrivia..ctor(FormattingContext context, ChainedFormattingRules formattingRules, SyntaxToken token1, SyntaxToken token2, Int32 lineBreaks, Int32 spaces, String originalString, CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.FormattedComplexTrivia.cs:line 40
at Microsoft.CodeAnalysis.CSharp.Formatting.TriviaDataFactory.ComplexTrivia.Format(FormattingContext context, ChainedFormattingRules formattingRules, Int32 lines, Int32 spaces, CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.ComplexTrivia.cs:line 44
at Microsoft.CodeAnalysis.Formatting.AbstractTriviaDataFactory.AbstractComplexTrivia.WithIndentation(Int32 indentation, FormattingContext context, ChainedFormattingRules formattingRules, CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.AbstractComplexTrivia.cs:line 146
at Microsoft.CodeAnalysis.Formatting.AbstractFormatEngine.OperationApplier.Apply(AdjustNewLinesOperation operation, Int32 pairIndex, CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs:line 140
at Microsoft.CodeAnalysis.Formatting.AbstractFormatEngine.ApplySpaceAndWrappingOperationsBody(FormattingContext context, TokenPairWithOperations operation, OperationApplier applier, CancellationToken cancellationToken) in C:\Downloads\roslyn-main\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs:line 415
at Microsoft.CodeAnalysis.Formatting.AbstractFormatEngine.ApplySpaceAndWrappingOperations(FormattingContext context, SegmentedList`1 tokenOperations, OperationApplier applier, CancellationToken cancellationToken) in
The script can execute successfully, but the format code button cannot be clicked. If the button is clicked, LA will crash.