Skip to content

Quick Debug/Launch button missing when renaming lib folder #4429

Closed

Description

@TheLordDrake

Describe the bug
A clear and concise description of what the bug is.

The quick debug/launch button in the upper right of VSCode window disappears when renaming the lib folder.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Flutter Project
  2. Rename lib/ to something else, e.g. src/

Expected behavior
A clear and concise description of what you expected to happen.

Quick debug/launch button should still be accessible.

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

Button visible with standard lib/ name
image

Button missing after renaming directory to src/
image

Please complete the following information:

  • Operating System and version: Windows 11 Home - 22621.1265
  • VS Code version: 1.76.0
  • Dart extension version: 3.60.1
  • Dart/Flutter SDK version: 3.7.6
  • Target device (if the issue relates to Flutter debugging):

Activity

  1. DanTup commented on Mar 9, 2023

    @DanTup
    Member

    @christopherfujino @jacob314 is there any requirement to have Flutter entry points inside lib/? I thought there was (maybe that something was using package: internally and that's where the package root is), but with a quick test, having the file in src/ seems to launch fine on Web and macOS and I can't find any docs backing up that lib/ is a requirement.

  2. DanTup commented on Apr 25, 2023

    @DanTup
    Member

    @christopherfujino @jacob314 friendly ping - do either of you know the answer to this, or where I might find it?

  3. christopherfujino commented on Apr 25, 2023

    @christopherfujino

    @christopherfujino @jacob314 is there any requirement to have Flutter entry points inside lib/? I thought there was (maybe that something was using package: internally and that's where the package root is), but with a quick test, having the file in src/ seems to launch fine on Web and macOS and I can't find any docs backing up that lib/ is a requirement.

    Sorry I missed this original ping. There is nothing that I know of that would require the entrypoint to be under lib/. AFAIK, as long as the Dart compiler can resolve package imports within that entrypoint, everything should work.

  4. DanTup commented on Apr 26, 2023

    @DanTup
    Member

    Got it, thanks!

  5. added this to the v3.64.0 milestone on Apr 26, 2023
  6. added
    in debuggingRelates to the debug adapter or process of running debug sessions
    on Apr 26, 2023
  7. added a commit that references this issue on Sep 2, 2025
    808566d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions