al-code-outline icon indicating copy to clipboard operation
al-code-outline copied to clipboard

Code Cleanup: some actions failed []

Open JavierFuentes opened this issue 1 year ago • 2 comments

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

Actions failed:

  • "AddMissingParentheses"
  • "ConvertObjectIdsToNames"
  • "FixIdentifiersCase"

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.

JavierFuentes avatar Mar 21 '24 08:03 JavierFuentes

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.

iamcgomes avatar Mar 21 '24 10:03 iamcgomes

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

anzwdev avatar Mar 26 '24 23:03 anzwdev