Azure / logicapps

Azure Logic Apps labs, samples, and tools
MIT License
363 stars 301 forks source link

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

Closed san360 closed 1 year ago

san360 commented 2 years ago

Does this occur consistently? Repro steps:

1. 2.

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 ```

AB#25847721

yoHasse commented 2 years ago

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
yoHasse commented 2 years ago

@san360

Have you been able to test my suggestion?

hartra344 commented 1 year ago

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

VTVishwanath commented 10 months ago

This really helps, Thanks for the answer :).

coldeli commented 6 months ago

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

yoHasse commented 6 months ago

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 🙌🏼

RobBowman commented 2 months ago

@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"
    }
  ]
}