AL icon indicating copy to clipboard operation
AL copied to clipboard

Error AS0003 when compiling any app with AppSourceCop enabled - MacOS

Open dorianwoolger opened this issue 11 months ago • 3 comments

Please include the following with each issue:

1. Describe the bug When using MacOS to compile AL apps using AppSourceCop I get Error AS0003 complaining that the previous version of the app cannot be found. The AppSourceCop.json specifies the path as "baselinePackageCachePath": "." and the version of the app matching the version property is located in the root of the project folder.

I have take the same folder, copied over to a Windows machine and it works fine with same config.

removing the version property from the AppSourceCop.json does allow the app to compile but then I am not getting my breaking changes checks.

2. To Reproduce On MacOS Create AL app, and compile enable AppSourceCop and config json file with the following { "supportedCountries": ["GB"], "version": "1.0.0.0", "mandatorySuffix": "TST", "baselinePackageCachePath": "." } Optionally make a breaking change and try and compile

3. Expected behavior I expect this to work as it does on a windows machine but the previous .app is simply not reconised.

4. Actual behavior Have done a recording to demo the issue Link to video https://nairodit-my.sharepoint.com/:v:/g/personal/dorian_nairod_co_uk/ES1y_-xqpmtOnicJMEkWnJQBCl2FN-ZaQcA3s33pvYVa_A?e=swr1zb

5. Versions:

  • AL Language: 14

  • Visual Studio Code:

  • Version: 1.96.4 (Universal) Commit: cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba Date: 2025-01-16T00:16:19.038Z (2 wks ago)

  • Business Central: V25

  • List of Visual Studio Code extensions that you have installed: alefragnani.project-manager andrzejzwierzchowski.al-code-outline bartpermentier.al-toolbox chunsen.bracket-select codezombiech.gitignore davidfeldhoff.al-codeactions dbaeumer.vscode-eslint donjayamanne.git-extension-pack donjayamanne.githistory eamodio.gitlens github.vscode-pull-request-github gruntfuggly.todo-tree humao.rest-client in4margaret.compareit jamespearson.al-test-runner martonsagi.al-object-designer mechatroner.rainbow-csv ms-azuretools.vscode-docker ms-dynamics-smb.al ms-mssql.data-workspace-vscode ms-mssql.mssql ms-mssql.sql-bindings-vscode ms-mssql.sql-database-projects-vscode ms-python.debugpy ms-python.python ms-python.vscode-pylance ms-vscode-remote.remote-containers ms-vscode.powershell msnraju.fix-al-file-names nabsolutions.nab-al-tools nwallace.createguid rasmus.al-var-helper rogalmic.bash-debug rvanbekkum.xliff-sync ryu1kn.partial-diff shd101wyy.markdown-preview-enhanced stefanmaron.businesscentral-lintercop streetsidesoftware.code-spell-checker vjeko.vjeko-al-objid vscode-icons-team.vscode-icons waldo.al-extension-pack waldo.crs-al-language-extension wayou.vscode-todo-highlight wbrakowski.al-navigator yzhang.markdown-all-in-one ziyasal.vscode-open-in-github zodiacfireworks.vscode-c-al

  • Operating System:

    • [ ] Windows
    • [ ] Linux
    • [x] MacOS

Final Checklist

Please remember to do the following:

  • [x] Search the issue repository to ensure you are reporting a new issue

  • [x] Reproduce the issue after disabling all extensions except the AL Language extension

  • [x] Simplify your code around the issue to better isolate the problem

Internal work item: AB#565554

dorianwoolger avatar Feb 05 '25 23:02 dorianwoolger

Does it work if you use a different folder in the root folder?

BazookaMusic avatar Feb 08 '25 12:02 BazookaMusic

No, tried adding another folder and changing the json config.

dorianwoolger avatar Feb 10 '25 08:02 dorianwoolger

Please give it another try with the latest preview.

thpeder avatar Apr 04 '25 15:04 thpeder

We shipped an attempted fix 3 months ago but no input was given. Closing as stale.

EmilDamsbo avatar Jul 24 '25 16:07 EmilDamsbo