microsoft / microsoft/AL

Wrong AA0189 Warning about Missing ApplicationArea

Open
#8,023 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

CodeCop
Dominant language
PowerShell
Stars
881
Forks
285
Avg merge
3d 36m
Merged PRs (30d)
1

Description

Please include the following with each issue:

1. Describe the bug
The warning AA0189 is incorrect when the ApplicationArea is definied in a dependency app.

2. To Reproduce
Create first app with tablextension on the ApplicationAreaSetup

tableextension 50100 "PTE Application Area Setup" extends "Application Area Setup"
{
    fields
    {
        field(50100 ; "PTE Feature XXX"; Boolean)
        {
            Caption = 'Feature XXX';
            DataClassification = SystemMetadata;
        }
    }
}

Then try to use this application area (PTEFeatureXXX) in another app with a dependency on this app.

Note: Because the developers need to copy and paste the code snippet, including a code snippet as a media file (i.e. .gif) is not sufficient.

3. Expected behavior
The compiler should check the dependencies

4. Actual behavior
Currently we receive an warning.

5. Versions:

  • AL Language:16.0.1463980

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the warning with the two-app setup described in the issue: a table extension defining the ApplicationArea field and a dependent app using it. Trace the compiler's ApplicationArea validation across dependencies; done means the dependent app no longer reports AA0189 when the definition exists in its dependency.

Written by the indexing model from the issue text.

Assessment

Domain
compilers, developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.