Analyzer: ALCops.LinterCop.Analyzers.InternalProcedureNotReferenced
Rule: LC0051 (InternalProcedureNotReferenced)
Environment:
- BC platform/application version: 27.0.0.0
- AL runtime: 16.0
- AL extension version: [check in VS Code: Extensions → AL Language → version]
- LinterCop version: [check your .alpackages or NuGet/vsix version]
- OS: Windows 11
Error:
AD0001: Analyzer 'ALCops.LinterCop.Analyzers.InternalProcedureNotReferenced' threw an
exception of type 'System.MissingMethodException' with message:
Method not found: 'System.String
Microsoft.Dynamics.Nav.CodeAnalysis.Utilities.StringExtensions.QuoteIdentifierIfNeeded(System.String)'
at ALCops.LinterCop.Analyzers.InternalProcedureNotReferenced.MethodSymbolAnalyzer
.ReportUnchangedReferencePassedParameters(Action`1 action)
at ALCops.LinterCop.Analyzers.InternalProcedureNotReferenced
.CheckApplicationObjects(CompilationAnalysisContext compilationAnalysisContext)
Steps to reproduce:
- When opening our large internal AL project targeting BC 27 / runtime 16.0
- The error appears on app.json (line 1) at workspace load / compile time
Impact: The analyzer crashes on every compile — it cannot analyze any procedure references.
What info can I provide to better troubleshoot?
Analyzer: ALCops.LinterCop.Analyzers.InternalProcedureNotReferenced
Rule: LC0051 (InternalProcedureNotReferenced)
Environment:
Error:
AD0001: Analyzer 'ALCops.LinterCop.Analyzers.InternalProcedureNotReferenced' threw an
exception of type 'System.MissingMethodException' with message:
Method not found: 'System.String
Microsoft.Dynamics.Nav.CodeAnalysis.Utilities.StringExtensions.QuoteIdentifierIfNeeded(System.String)'
at ALCops.LinterCop.Analyzers.InternalProcedureNotReferenced.MethodSymbolAnalyzer
.ReportUnchangedReferencePassedParameters(Action`1 action)
at ALCops.LinterCop.Analyzers.InternalProcedureNotReferenced
.CheckApplicationObjects(CompilationAnalysisContext compilationAnalysisContext)
Steps to reproduce:
Impact: The analyzer crashes on every compile — it cannot analyze any procedure references.
What info can I provide to better troubleshoot?