Skip to content

VS Code debug/task configuration uses an incorrect working directory #3

@v-xuto

Description

@v-xuto

Description

When following the Run your app using Visual Studio Code section in the README, the VS Code task/debug flow fails because the configured working directory is incorrect.

After opening the src folder in VS Code and running the provided task/debug flow, VS Code shows this error:

The terminal process failed to launch: Starting directory (cwd) "D:\workcode\awesomeTemplate\functions-quickstart-python-azd-timer\src\src" does not exist.

Root cause: The repository instructions say to open the src app folder in VS Code.
However, the VS Code task configuration appears to use:

"cwd": "${workspaceFolder}/src"

If the workspace root is already the src folder, this resolves to .../src/src, which does not exist.

Image

Steps to Reproduce

  1. Run command azd init --template functions-quickstart-python-azd-timer
  2. Open the src app folder in a new terminal.
  3. Run the code . command to open the project in Visual Studio Code.
  4. In the command palette (F1), type Azurite: Start, which enables debugging without warnings.
  5. Press Run/Debug (F5) to run in the debugger. Select Debug anyway if prompted about local emulator not running.

Environment

Expected Behavior

The "Run your app using Visual Studio Code" flow works successfully.

@im-samz, @hemarina for notification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions