logicapps icon indicating copy to clipboard operation
logicapps copied to clipboard

Error in determining project root. Please confirm project structure is correct.

Open san360 opened this issue 3 years ago • 2 comments

Does this occur consistently? Repro steps:

Action: azureLogicAppsStandard.openDesigner Error type: Error Error Message: Error in determining project root. Please confirm project structure is correct.

Version: 1.0.34 OS: win32 OS Release: 10.0.22621 Product: Visual Studio Code Product Version: 1.71.2 Language: en

Call Stack
extension.bundle.js:2:6446590extension.bundle.js:2:6446590
fulfilled extension.bundle.js:2:6445548

san360 avatar Sep 17 '22 12:09 san360

If the logic app doesn't exist in the root project folder the designer will not work.

A workaround is to add a project subpath in the settings file


root
└─── LogicApps
     └─── LogicApp1
          └─── Stateless
                  workflow.json

  • Open or add the file: <folderRoot>\.vscode\settings.json
  • Add the setting: "azureLogicAppsStandard.projectSubpath": ".\\LogicApps\\LogicApp1"

yoHasse avatar Sep 19 '22 10:09 yoHasse

@san360

Have you been able to test my suggestion?

yoHasse avatar Sep 23 '22 16:09 yoHasse

Thanks for taking the time to answer @yoHasse . Going to close this since there was no response.

hartra344 avatar Oct 20 '22 22:10 hartra344

This really helps, Thanks for the answer :).

VTVishwanath avatar Nov 15 '23 08:11 VTVishwanath

This solution is not working for me, have the settings structured changed since this post?

coldeli avatar Mar 14 '24 16:03 coldeli

This solution is not working for me, have the settings structured changed since this post?

Depends! Yes and no, it has changed when creating a workspace but other than that it should work as usual, tested this 3 weeks ago.

Can you explain/show your structure?

Or create a new issue to make sure that you'll get faster help 🙌🏼

yoHasse avatar Mar 24 '24 17:03 yoHasse

@yoHasse are you able to provide a link to any guidance for a multi-root workspace file and logic app standard please? I'm getting the "Error in determining project root. Please confirm project structure is correct." error with the following workspace file:

{
  "folders": [
    {
      "name": "Functions",
      "path": "./src/Function"
    },
    {
      "name": "LogicApp",
      "path": "./src/LogicApp"
    },
    {
      "name": "Deploy",
      "path": "./deploy"
    }
  ]
}

RobBowman avatar Jul 16 '24 15:07 RobBowman