Skip to content

fix: upgrade ALCops.Analyzers to v0.8.6 (resolves #10)#11

Merged
Arthurvdv merged 1 commit into
mainfrom
fix/issue-10-analyzer-version-mismatch
Jun 11, 2026
Merged

fix: upgrade ALCops.Analyzers to v0.8.6 (resolves #10)#11
Arthurvdv merged 1 commit into
mainfrom
fix/issue-10-analyzer-version-mismatch

Conversation

@Arthurvdv

@Arthurvdv Arthurvdv commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Bump ALCops.Analyzers from 0.5.0 to 0.8.6 — the primary fix. v0.5.0 called QuoteIdentifierIfNeeded(string) directly on the BC DevTools SDK; when the AL Language extension provides a newer DevTools version with a different signature, a MissingMethodException is thrown. v0.6.0+ introduced a reflection-based wrapper that handles both signatures.
  • Log AD0001 diagnostics to stderr — when an analyzer crashes at runtime, the exception is logged for debugging while still being included in user-facing results.
  • Log BC DevTools version at startup — helps triage future version mismatch reports.
  • Add Dependabot config scoped to ALCops.Analyzers — auto-creates PRs when new versions are published, so we don't fall behind again.

Closes #10

Test plan

  • dotnet build — compiles cleanly
  • dotnet test — all 4 existing tests pass
  • Manual test with ALProject17.zip from issue reporter
  • CI matrix validates against all supported BC DevTools versions

🤖 Generated with Claude Code

Resolves #10 — LinterCop analyzer crashed with MissingMethodException
when the AL Language extension provides newer BC DevTools than what
ALCops.Analyzers v0.5.0 was compiled against. The reflection-based
wrapper for QuoteIdentifierIfNeeded was introduced in v0.6.0+.

- Bump ALCops.Analyzers from 0.5.0 to 0.8.6
- Log AD0001 (analyzer crash) diagnostics to stderr for debugging
  while still including them in results
- Log BC DevTools version at startup for easier triage
- Add Dependabot config scoped to ALCops.Analyzers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Arthurvdv Arthurvdv merged commit d077ce4 into main Jun 11, 2026
13 checks passed
@Arthurvdv Arthurvdv deleted the fix/issue-10-analyzer-version-mismatch branch June 11, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LinterCop analyzer crashes (AD0001 MissingMethodException) when AL Language extension DevTools are newer than bundled ALCops.Analyzers

1 participant