question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New Logic App - Error: ENOENT: no such file or directory

See original GitHub issue

Overview

When I create a new Logic App, define workflow and then try run it, it produces the following error

Error Popup

image

Extension Output Window Message

11:30:43 PM: Running command: "func GetExtensionBundlePath"...
11:30:43 PM: Extension bundle path: "/home/vscode/.azure-functions-core-tools/Functions/ExtensionBundles/"...
11:30:43 PM: Error: ENOENT: no such file or directory, scandir '/home/vscode/.azure-functions-core-tools/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle.Workflows'

Versions

.NET SDK

vscode@7bd6c6f89c76:/workspaces/azure-logic-app-example$ dotnet --list-sdks
3.1.416 [/usr/share/dotnet/sdk]

Azure Functions Core Tools

Core Tools Version:       3.0.3904 Commit hash: c345f7140a8f968c5dbc621f8a8374d8e3234206  (64-bit)
Function Runtime Version: 3.3.1.0

How to reproduce

I’ve used a Visual Studio Code dev container to reduce machine specific configuration differences as much as possible.

Prerequisites

  • Visual Studio Code
  • WSL (Windows Subsystem for Linux)
  • Docker Desktop
  • VS Code - Remote Containers Extension (“ms-vscode-remote.remote-containers”)

This example uses the standard Microsoft provided dev container named: Azure Functions & C# - .NET Core 3.1
The only difference is I’ve updated the devcontainer.json extensions section to include the prerequisite logic app extensions

	"extensions": [
		"ms-azuretools.vscode-azurefunctions",
		"ms-dotnettools.csharp",
		"ms-azuretools.vscode-azurelogicapps",
		"ms-azuretools.vscode-docker",
		"ms-vscode.azure-account",
		"Azurite.azurite"
	],

Sample App Steps:

Manual Steps

  • Start a new Visual Studio Code instance
  • Create a dev container using the Azure Functions & C# - .NET Core 3.1 definition
  • Add the required extensions (listed above)
  • Add a new statefull logic app
  • Right click on the workflow and select Open in Designer
  • Enable Connectors in Azure: select Skip for now
  • Update the workflow (see below)
  • Start Azurite
  • Run (F5)

Workflow Screenshot

image

Workflow Raw JSON

{
  "definition": {
      "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
      "actions": {
          "Response": {
              "type": "Response",
              "kind": "http",
              "inputs": {
                  "statusCode": 200,
                  "body": "Hidi ho"
              },
              "runAfter": {}
          }
      },
      "triggers": {
          "manual": {
              "type": "Request",
              "kind": "Http",
              "inputs": {}
          }
      },
      "contentVersion": "1.0.0.0",
      "outputs": {}
  },
  "kind": "Stateful"
}

Workaround

I have discovered that if I comment out the generate Debug Symbols in the .vscode/tasks.json file I can get the project to run - but I guess that means I won’t be able to debug.

{
  "version": "2.0.0",
  "tasks": [
    // {
    //   "label": "generateDebugSymbols",
    //   "command": "dotnet",
    //   "args": [
    //     "${input:getDebugSymbolDll}"
    //   ],
    //   "type": "process",
    //   "problemMatcher": "$msCompile"
    // },
    {
      "type": "func",
      "command": "host start",
      "problemMatcher": "$func-watch",
      "isBackground": true
    }
  ],
  "inputs": [
    {
      "id": "getDebugSymbolDll",
      "type": "command",
      "command": "azureLogicAppsStandard.getDebugSymbolDll"
    }
  ]
}

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

4reactions
cuntoulishifucommented, May 17, 2022

run into the same problem…

0reactions
github-actions[bot]commented, Oct 27, 2022

This issue was closed because it has been inactive for 7 days since being marked as stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Logic App Standard F5 Issue with Functions Core Tools
Action: azureLogicAppsStandard.getDebugSymbolDll Error type: ENOENT Error Message: ENOENT: no such file or directory, scandir 'C:\Program ...
Read more >
Error: ENOENT: no such file or directory, open When trying ...
When I make a post request on postman, it says in the console that it can't read a path that doesn't exist (which...
Read more >
##[error]ENOENT: no such file or directory, stat '/home/vsts ...
Hi,. I am trying to access the file from working directory but its throwing below error. evan file is present in same path....
Read more >
ENOENT: no such file or directory, open '/opt/build/repo ...
I have the following error code: Failed to compile CommandError: ENOENT: no such file or directory, open '/opt/build/repo…
Read more >
Missing Logseq iCloud folder is not recreated on re-install
In the desktop app I get error message like. The directory ... can not be read:Error: ENOENT: no such file or directory, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found