microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
744 stars 245 forks source link

AA0228 Wrong Warning "The local method 'My-Event' is declared but never used." #6271

Closed DanielGoehler closed 2 years ago

DanielGoehler commented 3 years ago

Describe the bug I get the warning

The local method 'My-Event' is declared but never used.

from the CodeCop although the method is used. I guess is does not get this right because of the quotes.

To Reproduce

pageextension 50100 CustomerListExt extends "Customer List"
{
    trigger OnOpenPage();
    begin
        "My-Event"(Rec);
    end;

    [IntegrationEvent(true, false)]
    local procedure "My-Event"(Customer: Record Customer)
    begin
    end;
} 
DanielGoehler commented 3 years ago

Hi @qutreson, when will this get fixed?

qutreson commented 3 years ago

Hi @DanielGoehler, I can reproduce this issue, but I cannot provide any ETA on when this will be addressed. As a mitigation, you can use rulesets to suppress this diagnostic in general or directives in order to suppress this specific instance

DanielGoehler commented 3 years ago

Hi @qutreson, when will this get fixed?

qutreson commented 3 years ago

@PaulIvan can you provide an ETA on this fix?

dzzzb commented 3 years ago

related to "quoting" causing bugs:

mazhelez commented 2 years ago

Thanks for reporting this issue. Sorry we haven’t completed it yet, but we’ve had to prioritize elsewhere. We’re planning to give the CodeCop engine and its rules an overhaul in a future major release. Thanks for your patience.

Going forward we will not track progress on CodeCop issues here on GitHub. Hence, we are closing this issue.