Closed albgen closed 3 years ago
We've seen this internally before, but we weren't able to reproduce this either. I will reopen our internal bug to see if there's any more information that we can get for this. Thanks for raising it, it's good to know that it still happens even though we don't know how to get a consistent repro yet.
Describe the bug I have no idea how to reproduce it or to trigger it again. Just saw on the output windows.
OUTPUT WINDOWS CONTENT
`Microsoft (R) AL Compiler version 5.0.5.8080 Copyright (C) Microsoft Corporation. All rights reserved
Compilation started for project 'EvaldProject' containing '3' files at '18:22:45.232'.
c:\Users\user\Documents\AL\ALProject1.netpackages\0Harmony.xml(1,1): warning AL1025: The file at location 'c:\Users\user\Documents\AL\ALProject1.netpackages\0Harmony.xml' does not match any definition.
Compilation ended at '18:22:45.658'.
Success: The package is created. [Error - 6:22:46 PM] Please report this issue to https://github.com/microsoft/al/issues including information on how to reproduce it, if possible. Processing of message 'al/gotodefinition' failed with error: 'SyntaxTree 'page 21 "Customer Card" { Caption = 'Customer Card'; PageType = Card; PromotedActionCategories = 'New,Process,Report,New Document,Approve,Request Approval,Prices and Discounts,Navigate,Customer'; RefreshOnActivate = true; SourceTable = Customer;
} ' not found to remove (Parameter 'trees[0]')' Details: System.ArgumentException: SyntaxTree 'page 21 "Customer Card" { Caption = 'Customer Card'; PageType = Card; PromotedActionCategories = 'New,Process,Report,New Document,Approve,Request Approval,Prices and Discounts,Navigate,Customer'; RefreshOnActivate = true; SourceTable = Customer;
} ' not found to remove (Parameter 'trees[0]') at Microsoft.Dynamics.Nav.CodeAnalysis.Compilation.RemoveSyntaxTrees(IEnumerable
1 trees) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Compilation\Compilation.cs:line 417 at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.ReferenceSymbolDefinitionManager.FindSymbolRangeInContent(ISymbol symbol, String content, Int32 lineOffset) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\ReferenceSymbolDefinitionManager.cs:line 371 at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.ReferenceSymbolDefinitionManager.FindRangeInContent(ISymbol symbol, ReferenceSourceKind kind, String content) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\ReferenceSymbolDefinitionManager.cs:line 315 at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.ReferenceSymbolDefinitionManager.TryGetDefinitionFromReference(ISymbol symbol, LaunchConfiguration configuration, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\ReferenceSymbolDefinitionManager.cs:line 123 at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.AlDefinitionRequestHandler.GetResponseForSymbol(Int32 requestId, ISymbol symbol, Position requestPosition, LaunchConfiguration launchConfiguration, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\Extensions\AlDefinitionRequestHandler.cs:line 78 at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.AlDefinitionRequestHandler.ProcessRequestAsync(AlDefinitionRequest request, Int32 requestId, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\Extensions\AlDefinitionRequestHandler.cs:line 71 at Microsoft.Dynamics.Nav.EditorServices.Protocol.LanguageServer.Extensions.NavServerRequestHandler
1.HandleAsync(T request, Int32 requestId, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\LanguageServer\Extensions\NavServerRequestHandler.cs:line 84 at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.RequestHandlerBase`1.HandleAsync(JToken requestContents, Int32 requestId, CancellationToken cancellationToken) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\MessageProtocol\RequestHandlerBase.cs:line 54 at Microsoft.Dynamics.Nav.EditorServices.Protocol.RequestRegistry.Process(Message message) in D:\a\1\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Endpoints\RequestRegistry.cs:line 80`