Description
Describe the Bug with repro steps
PR #5225 seems to have caused some regression in main, resulting in a failure to install any dependencies successfully.
Scenario 1: Azure Functions Core Tools
Reproduction steps:
- Go to the Logic App Standard extension settings and make sure Auto Runtime Dependencies Validation And Installation is checked
- Close VSCode
- Remove directory
%UserProfile%\.azurelogicapps\dependencies\FuncCoreTools
- Open a new window of VSCode, the Validating Runtime Dependency: Functions Runtime should start and download the dependency
- Wait for the output window for Azure Logic Apps (Standard) to indicate
Azure Logic Apps Standard Runtime Dependencies validation and installation completed successfully
Actual result:
Although the dependency installation process finished, folder %UserProfile%\.azurelogicapps\dependencies\FuncCoreTools
is empty. The output messages also never show Successfullly downloaded FuncCoreTools dependency
This is caused by the fact that the temporary download directory is removed before the download is finished.
Output window messages:
FuncCoreTools Binaries: C:\Users\<username>\.azurelogicapps\dependencies\FuncCoreTools
Creating temporary folder... C:\Users\<username>\AppData\Local\Temp\.azurelogicapps\FuncCoreTools
Downloading dependency from: https://github.com/Azure/azure-functions-core-tools/releases/download/4.0.5455/Azure.Functions.Cli.win-x64.4.0.5455.zip
Removed C:\Users\<username>\AppData\Local\Temp\.azurelogicapps\FuncCoreTools
Azure Logic Apps Standard Runtime Dependencies validation and installation completed successfully.
Scenario 2: multiple .NET SDK versions
I've seen one case in which it tried to write to C:\Users&lt;username&gt;\AppData\Local\Temp\.azurelogicapps\DotNetSDK\DotNetSDK.ps1
, but failed to do so because the file was locked. This could indicate some kind of race condition, as it tries to install both .NET 6 and .NET 8 at the same time. I haven't been able to reproduce it afterwards, so I don't have the output logs for it anymore.
Reproduction steps:
- Fix scenario 1.
- Go to the Logic App Standard extension settings and make sure Auto Runtime Dependencies Validation And Installation is checked
- Close VSCode
- Remove directory
%UserProfile%\.azurelogicapps\dependencies\DotNetSDK
- Open a new window of VSCode, the Validating Runtime Dependency should start and download the dependencies
What type of Logic App Is this happening in?
Standard (VSCode)
Are you using new designer or old designer
New Designer
Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
Yes
Workflow JSON
No response
Screenshots or Videos
No response
Browser
N/A
Additional context
No response