Wrong AA0189 Warning about Missing ApplicationArea
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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