Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
TheLordDrake opened this issue Mar 9, 2023 · 4 comments
Closed

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

TheLordDrake opened this issue Mar 9, 2023 · 4 comments
Labels
in debugger Relates to the debug adapter or process of launching a debug session is bug
Milestone

Comments

@TheLordDrake
Copy link

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):
@DanTup
Copy link
Member

DanTup commented Mar 9, 2023

@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.

@DanTup
Copy link
Member

DanTup commented Apr 25, 2023

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

@christopherfujino
Copy link

christopherfujino commented Apr 25, 2023

@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.

@DanTup
Copy link
Member

DanTup commented Apr 26, 2023

Got it, thanks!

@DanTup DanTup added this to the v3.64.0 milestone Apr 26, 2023
@DanTup DanTup added the in debugger Relates to the debug adapter or process of launching a debug session label Apr 26, 2023
@DanTup DanTup closed this as completed in 808566d Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in debugger Relates to the debug adapter or process of launching a debug session is bug
Projects
None yet
Development

No branches or pull requests

3 participants