Hi team,
RE: Errors: Processing of message 'textDocument/codeAction' failed with error: 'Specified argument was out of the range of valid values. (Parameter 'span')' / Processing of message 'textDocument/hover' failed with error: 'Specified argument was out of the range of valid values. (Parameter 'index')'
Was trying to start playing with AL files for the first time and could barely manage to get the symbol files to download yet, so figured once this finally did download something and said explicitly 'please report this issue to' and pass it on, i was trying to create the most basic elements of a base al app file and some very basic copy some data from some tables that are provided by a connector onto the items table and item definitions. Hoped was nothing, figured that I had actually gotten this far enough to at least feedback as it asked, happy to try answer more questions, im an infrastructure person not an app layer person so appreciate that no detailed reproducible steps beyond 'Connect and get symbols' but being of that infrastructure space, saw this properly spitting the kinds of output that figured to share, and sorry in advance if this is any kind of nuisance or wasted time or anything, wanted to at least feedback when it said please report, and
[Error - 8:19:41 PM] Please report this issue to https://github.com/microsoft/al/issues including information on how to reproduce it, if possible.
Processing of message 'textDocument/codeAction' failed with error: 'Specified argument was out of the range of valid values. (Parameter 'span')'
Details:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'span')
at Microsoft.Dynamics.Nav.CodeAnalysis.ActionV1Converter.ActionV1ConverterCodeFixProvider.ComputeRefactoringsAsync(CodeRefactoringContext context)
at Microsoft.Dynamics.Nav.CodeAnalysis.CodeRefactoring.CodeRefactoringService.GetRefactoringFromProviderAsync(Document document, TextSpan textSpan, CodeRefactoringProvider provider, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\CodeRefactoring\CodeRefactoringService.cs:line 70
at Microsoft.Dynamics.Nav.CodeAnalysis.CodeRefactoring.CodeRefactoringService.GetRefactoringsAsync(Document document, TextSpan state, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\CodeRefactoring\CodeRefactoringService.cs:line 44
at Microsoft.Dynamics.Nav.CodeAnalysis.CodeActions.ALCodeActionService.GetCodeActionsAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\CodeActions\ALCodeActionService.cs:line 50
at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.CodeActionRequestHandler.HandleAsync(ProtocolCodeActionRequest request, Int32 requestId, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\CodeActionRequestHandler.cs:line 64
at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.RequestHandlerBase`1.HandleAsync(JToken requestContents, Int32 requestId, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\MessageProtocol\RequestHandlerBase.cs:line 85
at Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.Process(Message message) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Endpoints\RequestRegistry.cs:line 84
[Error - 8:19:42 PM] Please report this issue to https://github.com/microsoft/al/issues including information on how to reproduce it, if possible.
Processing of message 'textDocument/hover' failed with error: 'Specified argument was out of the range of valid values. (Parameter 'index')'
Details:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'index')
at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.DocumentExtensions.GetPositionAsync(Document document, LinePosition linePosition, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Shared\Extensions\DocumentExtensions.cs:line 311
at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.DocumentExtensions.IsPositionNotOnTokenTrivia(Document document, LinePosition linePosition, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Shared\Extensions\DocumentExtensions.cs:line 164
at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.HoverRequestHandler.HandleAsync(HoverRequest request, Int32 requestId, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\HoverRequestHandler.cs:line 40
at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.RequestHandlerBase`1.HandleAsync(JToken requestContents, Int32 requestId, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\MessageProtocol\RequestHandlerBase.cs:line 85
at Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.Process(Message message) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Endpoints\RequestRegistry.cs:line 84
Hi team,
RE: Errors: Processing of message 'textDocument/codeAction' failed with error: 'Specified argument was out of the range of valid values. (Parameter 'span')' / Processing of message 'textDocument/hover' failed with error: 'Specified argument was out of the range of valid values. (Parameter 'index')'
Was trying to start playing with AL files for the first time and could barely manage to get the symbol files to download yet, so figured once this finally did download something and said explicitly 'please report this issue to' and pass it on, i was trying to create the most basic elements of a base al app file and some very basic copy some data from some tables that are provided by a connector onto the items table and item definitions. Hoped was nothing, figured that I had actually gotten this far enough to at least feedback as it asked, happy to try answer more questions, im an infrastructure person not an app layer person so appreciate that no detailed reproducible steps beyond 'Connect and get symbols' but being of that infrastructure space, saw this properly spitting the kinds of output that figured to share, and sorry in advance if this is any kind of nuisance or wasted time or anything, wanted to at least feedback when it said please report, and
[Error - 8:19:41 PM] Please report this issue to https://github.com/microsoft/al/issues including information on how to reproduce it, if possible.
Processing of message 'textDocument/codeAction' failed with error: 'Specified argument was out of the range of valid values. (Parameter 'span')'
Details:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'span')
at Microsoft.Dynamics.Nav.CodeAnalysis.ActionV1Converter.ActionV1ConverterCodeFixProvider.ComputeRefactoringsAsync(CodeRefactoringContext context)
at Microsoft.Dynamics.Nav.CodeAnalysis.CodeRefactoring.CodeRefactoringService.GetRefactoringFromProviderAsync(Document document, TextSpan textSpan, CodeRefactoringProvider provider, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\CodeRefactoring\CodeRefactoringService.cs:line 70
at Microsoft.Dynamics.Nav.CodeAnalysis.CodeRefactoring.CodeRefactoringService.GetRefactoringsAsync(Document document, TextSpan state, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\CodeRefactoring\CodeRefactoringService.cs:line 44
at Microsoft.Dynamics.Nav.CodeAnalysis.CodeActions.ALCodeActionService.GetCodeActionsAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\CodeActions\ALCodeActionService.cs:line 50
at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.CodeActionRequestHandler.HandleAsync(ProtocolCodeActionRequest request, Int32 requestId, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\CodeActionRequestHandler.cs:line 64
at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.RequestHandlerBase`1.HandleAsync(JToken requestContents, Int32 requestId, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\MessageProtocol\RequestHandlerBase.cs:line 85
at Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.Process(Message message) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Endpoints\RequestRegistry.cs:line 84
[Error - 8:19:42 PM] Please report this issue to https://github.com/microsoft/al/issues including information on how to reproduce it, if possible.
Processing of message 'textDocument/hover' failed with error: 'Specified argument was out of the range of valid values. (Parameter 'index')'
Details:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'index')
at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.DocumentExtensions.GetPositionAsync(Document document, LinePosition linePosition, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Shared\Extensions\DocumentExtensions.cs:line 311
at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.DocumentExtensions.IsPositionNotOnTokenTrivia(Document document, LinePosition linePosition, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Shared\Extensions\DocumentExtensions.cs:line 164
at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.HoverRequestHandler.HandleAsync(HoverRequest request, Int32 requestId, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\HoverRequestHandler.cs:line 40
at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.RequestHandlerBase`1.HandleAsync(JToken requestContents, Int32 requestId, CancellationToken cancellationToken) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\MessageProtocol\RequestHandlerBase.cs:line 85
at Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.Process(Message message) in X:\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Endpoints\RequestRegistry.cs:line 84