Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error AS0003 when compiling any app with AppSourceCop enabled - MacOS #7964

Open
4 of 6 tasks
dorianwoolger opened this issue Feb 5, 2025 · 2 comments
Open
4 of 6 tasks
Assignees
Labels

Comments

@dorianwoolger
Copy link

dorianwoolger commented Feb 5, 2025

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
    • MacOS

Final Checklist

Please remember to do the following:

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

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

  • Simplify your code around the issue to better isolate the problem

Internal work item: AB#565554

@BazookaMusic
Copy link
Contributor

BazookaMusic commented Feb 8, 2025

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

@dorianwoolger
Copy link
Author

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

@qutreson qutreson self-assigned this Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants