Skip to content

AD0001: InternalProcedureNotReferenced throws MissingMethodException for QuoteIdentifierIfNeeded on BC27 #103

@fvet

Description

@fvet

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:

  1. When opening our large internal AL project targeting BC 27 / runtime 16.0
  2. 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?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions