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
733 stars 243 forks source link

al.compilerOptions.outFolder does not work as expected for "Publish full dependency tree..." command #7536

Closed RadoArvay closed 9 months ago

RadoArvay commented 11 months ago

AL Language v12.0.875970

We have a workspace with couple of folders (apps). I have set al.compilerOptions.outFolder property in a code-workspace configuration file.

"al.compilationOptions": {
    "outFolder": "../.albuilds"
}

When I run a general build command for any app from within the folder, the created app file is placed to the outFolder correctly. But when I run Publish full dependency tree command, only the top app is placed to outFolder and all apps that the top app depends on are placed to the individual apps folders as before (ignores outFolder set up). Is it "by design"? Bug? Or have I set up anything incorrectly?

RadoArvay commented 11 months ago

I have been forced to remove al.compilerOptions.outFolder setup, because there are other issues and I am not able to find out a correct way to set up a relative path of the property for the multiroot workspace.

For example:

Publishing AL application using launch configuration 'nnn'.
Sending request to http://nnnnn/BC/dev/metadata?tenant=default
Error: File ../.albuilds\nnnnnn.dep.app does not exist.

But nnnnnn.dep.app file exists and it is placed in .albuilds folder.

Would it be possible to update a documentation how to use this property and how to set up relative paths in a workspace?

DominicSaladin commented 11 months ago

Is there a solution to this problem or is there any fix coming soon?

DominicSaladin commented 9 months ago

Any updates? :(

thpeder commented 9 months ago

There will be an update coming in the next version of the Pre-Release.

RadoArvay commented 9 months ago

Isn't there any chance to support Visual Studio Code variables in User or Workspace settings? For this outFolder property and other ones...

thpeder commented 9 months ago

Isn't there any chance to support Visual Studio Code variables in User or Workspace settings? For this outFolder property and other ones...

Please go ahead and post this to our Ideas forum at https://aka.ms/BusinessCentralideas, or vote up the idea if its already there. We're constantly monitoring top Ideas and will consider them for a future release.

RadoArvay commented 6 months ago

There will be an update coming in the next version of the Pre-Release.

What version was meant by that "Pre-Release"? Because couple of months after I am trying to set up it in the current public 13.0.964488 and still it does not work for me. Or - can someone describe the correct setup for this property?