anzwdev / al-code-outline

AL Code Outline for Visual Studio Code
MIT License
51 stars 13 forks source link

Code Cleanup: some actions failed [] #555

Closed JavierFuentes closed 3 months ago

JavierFuentes commented 5 months ago

Hi, since yesterday after my last Windows 11 update, these cleanup actions are giving an error:

Actions failed:

Version: v12.0.59

One or more of actions failed: Add Parentheses: 
error - Method not found: 
'Microsoft.Dynamics.Nav.CodeAnalysis.Compilation Microsoft.Dynamics.Nav.CodeAnalysis.Compilation.Create(System.String, System.String, System.Version, System.Nullable`1<System.Guid>, System.Collections.Generic.IEnumerable`1<Microsoft.Dynamics.Nav.CodeAnalysis.SymbolReferenceSpecification>, System.Collections.Generic.IEnumerable`1<Microsoft.Dynamics.Nav.CodeAnalysis.Syntax.SyntaxTree>, Microsoft.Dynamics.Nav.CodeAnalysis.CompilationOptions, Microsoft.Dynamics.Nav.CodeAnalysis.IFileSystem, Microsoft.Dynamics.Nav.CodeAnalysis.DotNet.IDotNetResolverFactory, Microsoft.Dynamics.Nav.CodeAnalysis.IReferenceManager, Boolean)'., 
One or more of actions failed: Convert Object Ids to Names: 
error - Method not found:
'Microsoft.Dynamics.Nav.CodeAnalysis.Compilation Microsoft.Dynamics.Nav.CodeAnalysis.Compilation.Create(System.String, System.String, System.Version, System.Nullable`1<System.Guid>, System.Collections.Generic.IEnumerable`1<Microsoft.Dynamics.Nav.CodeAnalysis.SymbolReferenceSpecification>, System.Collections.Generic.IEnumerable`1<Microsoft.Dynamics.Nav.CodeAnalysis.Syntax.SyntaxTree>, Microsoft.Dynamics.Nav.CodeAnalysis.CompilationOptions, Microsoft.Dynamics.Nav.CodeAnalysis.IFileSystem, Microsoft.Dynamics.Nav.CodeAnalysis.DotNet.IDotNetResolverFactory, Microsoft.Dynamics.Nav.CodeAnalysis.IReferenceManager, Boolean)'., 
One or more of actions failed: Fix Identifiers Case: 
error - Method not found: 
'Microsoft.Dynamics.Nav.CodeAnalysis.Compilation Microsoft.Dynamics.Nav.CodeAnalysis.Compilation.Create(System.String, System.String, System.Version, System.Nullable`1<System.Guid>, System.Collections.Generic.IEnumerable`1<Microsoft.Dynamics.Nav.CodeAnalysis.SymbolReferenceSpecification>, System.Collections.Generic.IEnumerable`1<Microsoft.Dynamics.Nav.CodeAnalysis.Syntax.SyntaxTree>, Microsoft.Dynamics.Nav.CodeAnalysis.CompilationOptions, Microsoft.Dynamics.Nav.CodeAnalysis.IFileSystem, Microsoft.Dynamics.Nav.CodeAnalysis.DotNet.IDotNetResolverFactory, Microsoft.Dynamics.Nav.CodeAnalysis.IReferenceManager, Boolean)'., 

I hope they can be resolved soon because they are very useful.

iamcgomes commented 5 months ago

The same problem occurs in the action: "RemoveEditorWithStatements"

This error started after updating the "AL Language extension for Microsoft Dynamics 365 Business Central" to the latest version.

With version 12.6.936426 the actions work properly. image

Thanks in advance.

anzwdev commented 5 months ago

Thank you for reporting the problem. I've released new version of the extension that works with AL Compiler V13.