AL icon indicating copy to clipboard operation
AL copied to clipboard

outFolder does not allow publishing/debugging when configured

Open aipungggi opened this issue 1 year ago • 6 comments

Please include the following with each issue:

1. Describe the bug The following setting stops working from time to time and the app file is put in root again:

 "al.compilationOptions": {
        "outFolder": "\\\\aif\\Release\\Inbetriebnahme\\App"
    }

2. To Reproduce Steps to reproduce the behavior:

Cant reproduce it happens suddenly.

5. Versions:

  • AL Language: 12 and 13 (prerelease)
  • Visual Studio Code: 1.86.2
  • Business Central: 23.4

Internal work item: AB#548299

aipungggi avatar Mar 01 '24 12:03 aipungggi

I am using latest Prerelease (14) and at the moment the behaviour is: If I only publish, the app is saved to the path specified in 'outFolder'. When I start a debug session it says: [2024-03-01 14:02:06.66] Error: File c:\Users\ap.root\Amagno\src\Amann Informatik AG_***_23.1.0.15.app does not exist.

Few days ago this still worked fine.

Commenting out the outFolder setting and debug session starts but .app is put in root.

aipungggi avatar Mar 01 '24 13:03 aipungggi

Just connecting to #7536 - it was closed as solved but it has never worked correctly. Every type of setup has different result - always.

RadoArvay avatar Mar 20 '24 09:03 RadoArvay

We've fixed a bug related to this recently, so I think this will be addressed in the next pre-release. It should be in version 14.0.965742 or later.

thloke avatar Mar 26 '24 04:03 thloke

No this is not fixed. I am still getting "Error: File .....app does not exist." When outFolder is configured. v14.0.986719 (pre-release)

aipungggi avatar Apr 15 '24 12:04 aipungggi

Hi, I do get similar issue but with another relative path. I use workspace with multiple projects in them and want to place all app files in ..\builds\ folder, together with the .alpackage folder.

the folder structure looks like this.

App1
App2
builds
  .alpackage
  App1.app
  App2.app

Workspace file:

 {
    "folders": [
       {
           "path": "App1"
       },
       {
           "path": "App2"
       },
       {
           "path": "builds"
       }
    ],
    "settings" : {
       "al.packageChachePath": [
          "..\\builds\\.alpackages"
       ],
       "al.compilationOptions": {
          "outFolder": "..\\builds\\"
        }
    }
}

Everything compiles and I can download the symbols to this relative build path, but I cant publish the apps :-( all I get is

Error: File ..\builds\App1.app does not exists.

thellMa avatar May 21 '24 06:05 thellMa

yes I have a similar projectstructure within a workspace

aipungggi avatar May 21 '24 07:05 aipungggi