AL icon indicating copy to clipboard operation
AL copied to clipboard

Processing of message 'textDocument/hover' failed with error: 'Position: 3659, FullSpan: (0..0)

Open TheDenSter opened this issue 7 years ago • 15 comments

Describe the bug I've been working in a container for about a week now. All of a sudden, out of the blue, it's giving me 51 problems and a request to report this on github. I've been getting periodic "oops something went wrong" messages (which is SO unhelpful, and that cuteness in that message is REALLY irritating, I'd rather have a generically cryptic system message). Usually a restart of the container will fix that, but this time when it restarted, I got this error message and the 51 problems in my workspace.

OUTPUT [Error - 5:02:43 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: 'Position: 3659, FullSpan: (0..0) Parameter name: position' Details: System.ArgumentOutOfRangeException: Position: 3659, FullSpan: (0..0) Parameter name: position at Microsoft.Dynamics.Nav.CodeAnalysis.SyntaxNode.FindToken(Int32 position) in F:\a\185\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Syntax\SyntaxNode.cs:line 763 at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.DocumentExtensions.d__19.MoveNext() in F:\a\185\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Shared\Extensions\DocumentExtensions.cs:line 360 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.DocumentExtensions.d__7.MoveNext() in F:\a\185\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Shared\Extensions\DocumentExtensions.cs:line 164 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.HoverRequestHandler.d__3.MoveNext() in F:\a\185\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\HoverRequestHandler.cs:line 44 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.RequestHandlerBase`1.d__9.MoveNext() in F:\a\185\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\MessageProtocol\RequestHandlerBase.cs:line 43 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.d__6.MoveNext() in F:\a\185\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Endpoints\RequestRegistry.cs:line 64

Versions:

  • AL Langauge: 3.0.115791
  • Business Central: GB Dynamics NAV 13.4 (29517)

TheDenSter avatar Apr 03 '19 00:04 TheDenSter

Having the same issue as of this morning.

Versions:

AL Langauge: 3.0.115791
Business Central: GB Dynamics NAV 13.4 (28871)

MarceeMarc avatar Apr 03 '19 08:04 MarceeMarc

Same here on 3.0.115791 and BCoP Runtime: 13.0.27183.0 Application: 13.3.27233.0

But I only have this issue on an azure server to wich I clone the repo so my colleagues can do testing. On my local PC with the same AL Language version and runtime version I don't have this issue.

larswestman avatar Apr 03 '19 09:04 larswestman

In trying to solve this issue, I tried to download symbols and I received this error:

[Error - 7:48:17 AM] Please report this issue to https://github.com/microsoft/al/issues including information on how to reproduce it, if possible. Processing of message 'al/downloadSymbols' failed with error: 'Could not load file or assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.' Details: System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.NavServerRequestHandler1.<HandleAsync>d__5.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.NavServerRequestHandler1.HandleAsync(T request, Int32 requestId, CancellationToken cancellationToken) at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.RequestHandlerBase`1.d__9.MoveNext() in F:\a\185\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\MessageProtocol\RequestHandlerBase.cs:line 43 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.d__6.MoveNext() in F:\a\185\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Endpoints\RequestRegistry.cs:line 64

WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]

TheDenSter avatar Apr 03 '19 14:04 TheDenSter

Hi there,

having the same issue, no error were found in the project until this morning image the problems I got on my project linked to objects names !!!!!! image

abouraoui avatar Apr 03 '19 14:04 abouraoui

This is exactly what I've been experiencing. No problem downloading symbols, no problem referencing standard objects, issues are with bespoke object type references.

See output below:

[Error - 16:18:17] 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: 'Position: 1178, FullSpan: (0..0) Parameter name: position' Details: System.ArgumentOutOfRangeException: Position: 1178, FullSpan: (0..0) Parameter name: position at Microsoft.Dynamics.Nav.CodeAnalysis.SyntaxNode.FindToken(Int32 position) in F:\a\185\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Syntax\SyntaxNode.cs:line 763 at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.DocumentExtensions.d__19.MoveNext() in F:\a\185\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Shared\Extensions\DocumentExtensions.cs:line 360 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces.DocumentExtensions.d__7.MoveNext() in F:\a\185\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis.Workspaces\Shared\Extensions\DocumentExtensions.cs:line 164 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.HoverRequestHandler.d__3.MoveNext() in F:\a\185\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\HoverRequestHandler.cs:line 44 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.RequestHandlerBase`1.d__9.MoveNext() in F:\a\185\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\MessageProtocol\RequestHandlerBase.cs:line 43 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.d__6.MoveNext() in F:\a\185\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Endpoints\RequestRegistry.cs:line 64

MarceeMarc avatar Apr 03 '19 15:04 MarceeMarc

installing https://dotnet.microsoft.com/download/dotnet-framework/net472 did the trick. If you can't install it then use the vsix from the cd.

BartPermentier avatar Apr 05 '19 09:04 BartPermentier

Installed .net framework, created a new container based on the same image. Had to change the target runtime to 2.4 and my app deployed to the new container. Went back to the original container, and now I have 'an internal error has occurred' issue. Changing the schemaupdatemode to recreate also did not do the trick.

TheDenSter avatar Apr 05 '19 13:04 TheDenSter

refreshed my image (weird that the image has the same version as last week, I would have expected a higher number), re-installed navcontainerhelper, re-created my container, installed the vsix from the container (2.1.106652) and still 'internal error'. Nothing in the problems window.

I am dead in the water again, no idea what to do about this.

TheDenSter avatar Apr 05 '19 15:04 TheDenSter

installing https://dotnet.microsoft.com/download/dotnet-framework/net472 fixed my problem. Thank you.

abouraoui avatar Apr 05 '19 16:04 abouraoui

Got a step further. Removed all my containers, removed all my images, re-pulled the GB image, re-created my container and now I am able to publish my app. Haven't tested it yet but at least it published the app itself.

TheDenSter avatar Apr 05 '19 17:04 TheDenSter

refreshed my image (weird that the image has the same version as last week, I would have expected a higher number), re-installed navcontainerhelper, re-created my container, installed the vsix from the container (2.1.106652) and still 'internal error'. Nothing in the problems window.

I am dead in the water again, no idea what to do about this.

Do you use -alwaysPull when pulling images? Otherwise you are not guaranteed to get the latest version . I guess there's some caching going on in Docker.

larswestman avatar Apr 05 '19 20:04 larswestman

I don't use that switch, but I did pull the image yesterday and I was very annoyed that it did not seem to get the latest version until after I removed the image first. I've been getting a lot of problems with containers that stop working lately and it is irritating to lose this much time that my customers are not really happy about paying.

TheDenSter avatar Apr 06 '19 09:04 TheDenSter

I don't trust Docker for my daily work. It's been to much problems with thing suddenly not working because of update x or z or y. I use Docker for testing apps on different version/localizations.

larswestman avatar Apr 06 '19 20:04 larswestman

I've gotten rid of this container so the issue kind of stopped being an issue. It is frustrating to have these sudden issues with local sandbox containers. As the project is progressing there is more data to set up and recreating new containers is becoming more of a pain in the neck. I don't really like how an existing container can be affected this much by an update to the image or the AL language. I've seen a tweet float by that it is possible to have multiple sandboxes in multiple versions at the same time, I hope that this is also going to be possible for local sandbox containers. I can't afford to be dead in the water for days every time this happens

TheDenSter avatar Apr 08 '19 08:04 TheDenSter

Getting rid of the container did it for me also. New one is fine. Also installed dotnet 4.2, but didn't immediatley solve the problem. Thanks for all the help on this one!

MarceeMarc avatar Apr 08 '19 08:04 MarceeMarc