Open chris-w-dev opened 3 months ago
Hey @chris-w-dev thank you so much for raising this issue. Which version on the vscode extension are you using? The mentioned PR is just in versions 4.50 and above. If you are using those or compiling the main branch it makes sense that the PR is messing up the functionality. I will triage it with the team anyways.
Hi @ccastrotrejo. I ran into this while I was testing #5263 on today's main branch (commit 1c721bd), so I guess sort of 4.53. Had to make sure it worked.
Alright, makes sense then. Thanks!
This is interesting... this codepath has always been there (deleting the temp directory when a download fails), but previously that download failure would also cause activation to fail outright (which would then succeed on the next restart). My change allows activation to continue in this case.
This is an interesting use case, I need to try a repro and decide what to do here.
In the mean time I will revert that change to unblock the deploy.
The change has been reverted in main now: https://github.com/Azure/LogicAppsUX/pull/5269
I'll spend some cycles to figure out what I want to do here then send a new PR as I have free time.
I noticed this finally block fired first and this error handler right after. Which makes sense, since downloadPromise.then
is not awaited. Also, the exception in that error handler never showed up anywhere except in the debugger:
rejected promise not handled within 1 second: Error: ENOENT: no such file or directory, open 'C:\Users\<username>\AppData\Local\Temp\.azurelogicapps\FuncCoreTools\FuncCoreTools.zip'
stack trace: Error: ENOENT: no such file or directory, open 'C:\Users\<username>\AppData\Local\Temp\.azurelogicapps\FuncCoreTools\FuncCoreTools.zip'
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:
%UserProfile%\.azurelogicapps\dependencies\FuncCoreTools
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 showSuccessfullly downloaded FuncCoreTools dependency
This is caused by the fact that the temporary download directory is removed before the download is finished.
Output window messages:
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:
%UserProfile%\.azurelogicapps\dependencies\DotNetSDK
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