Skip to content

ENOTDIR: not a directory, stat '/path/to/project/lib/main.dart/pubspec.yaml' #5954

@solace6282

Description

@solace6282

Describe the bug
Flutter extension seem to look for pubspec.yaml from file directory given in "program" on launch.json's configurations and because "program" points to a a file (i.e. main.dart), debug session crashes. Debugging was okay yesterday, probably has something to do with version 3.130.0

To Reproduce
Steps to reproduce the behavior:

  1. Open or create any project
  2. Create folder .vscode
  3. Create file launch.json, use any configurations
  4. Start Debugging (F5)

Expected behavior
Debugging should start

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Please complete the following information:

You can run the Dart: Collect Diagnostic Information command from the VS Code command palette (F1) to easily capture this information or provide it manually.

  • Operating System and version: Ubuntu 22.04
  • VS Code version: linux 1.99.2
  • Dart extension version: 3.130.0
  • Dart/Flutter SDK version: 3.11.1/3.41.3
  • Target device: Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    importantSomething important!in flutterRelates to running Flutter appsis bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions