Skip to content

[BUG] Cannot use require('dap').continue() before running either FlutterRun or FlutterDebug #475

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

Open
1 task done
imatpot opened this issue May 30, 2025 · 0 comments
Open
1 task done

Comments

@imatpot
Copy link

imatpot commented May 30, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I've noticed in several issues (i.e. here or here) that you cannot run require('dap').continue() to start debugging unless you've ran :FlutterRun or :FlutterDebug first.

This strikes me as weird and unintended, as the Readme indicates that the DAP configs are set up for you, but that only seems to actually be the case once you run via the plugin for the first time. But no one seemed to actually consider this a bug from what it seems.

If you try to run :lua require('dap').continue() before running any flutter-tools commands, you get this error:

No configuration found for dart. You need to add configs to dap.configurations.dart (See :h dap-configuration)`

Is this intended behaviour?

Expected Behavior

:lua require('dap').continue() should launch a debug session without having to run :FlutterRun or :FlutterDebug first.

Steps To Reproduce

  1. open a flutter project
  2. run :lua require('dap').continue()
  3. you will get an error
  4. run :FlutterRun
  5. run :lua require('dap').terminate()
  6. run :lua require('dap').continue()
  7. you will now get to pick the configuration to use

Environment

- OS: NixOS 25.05
- Flutter version: 3.32.0
- Is flutter in $PATH: Yes
- NeoVim version: 0.11.1

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant