LogicAppsUX icon indicating copy to clipboard operation
LogicAppsUX copied to clipboard

Instructions for setting up a custom code workspace don't work as described

Open TWolversonReply opened this issue 1 year ago • 2 comments

Describe the Bug with repro steps

  1. Follow https://learn.microsoft.com/en-us/azure/logic-apps/create-run-custom-code-functions exactly
  2. At the step 'Debug your code and workflow`, clicking 'Attach to logic app' yields the following errors in the terminal:

Could not execute because the specified command or file was not found.

Possible reasons for this include:

  • You misspelled a built-in dotnet command.

  • You intended to execute a .NET program, but dotnet-C:\Users\t_wol.azure-functions-core-tools\Functions\ExtensionBundles\Microsoft.Azure.Functions.ExtensionBundle.Workflows\1.70.60\bin\Microsoft.Azure.Workflows.BuildTasks.DebugSymbolGenerator.dll does not exist.

  • You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

  • Executing task: C:\Users\t_wol.azurelogicapps\dependencies\FuncCoreTools\func host start

Unable to find project root. Expecting to find one of host.json, local.settings.json in project root.

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

nothing to do with the browser

Additional context

No response

TWolversonReply avatar Jun 26 '24 14:06 TWolversonReply

The suggestion on Mike Stephenson's blog suggesting that this is a corrupt directory under the extension bundles directory seemed to bear out, the version specified in the error message was completely empty, and deleting it causes the error regarding the DebugSymbolGenerator.dll to go away.

The error message about host.json persists though, and I can't tell where it expects to find this. The logic app folder, the one I am trying to debug, does have a host.json.

TWolversonReply avatar Jun 26 '24 14:06 TWolversonReply

After further investigation, I've found that opening the workspace progresses past this error, although I have other parameterisation-related issues left to resolve. The screenshots show the workspace is open, but I can't find anywhere in the text that says to open it. The debug tab will present the 'Attach to logic app' option in both modes, and one mode - open the root of the repo - doesn't work. This begs the question, what does it mean to 'open a workspace', anyway? Why can't it just work from the repo-root, which is what most developers will want to do?

TWolversonReply avatar Jun 27 '24 10:06 TWolversonReply

HI @TWolversonReply sorry for the late late reply. Its been almost a year since you created this issue and we have been updating our docs and the extension initialization behavior, especially with the custom code workspaces.

  • Is this issue still happening?

As for answering your questions

  • Workspaces is an implementation vscode created in order to handle and manage folders in an easier way. Here is their official documentation about it https://code.visualstudio.com/docs/editing/workspaces/workspaces
  • Opening the project from the repo-root or the folder root overcomplicates the management of the functions and logic apps project. Since we are opening both folders in a single project we know exactly the location of each one and we can execute commands based on their path.

ccastrotrejo avatar Jul 16 '25 14:07 ccastrotrejo

We requested more information to triage this issue. If the issue goes more than 7 days with no more information it'll be automatically closed.

github-actions[bot] avatar Jul 19 '25 15:07 github-actions[bot]

This issue has been closed because the information requested wasn't provided within 7 days.

github-actions[bot] avatar Jul 26 '25 16:07 github-actions[bot]