Is there an existing issue for this?
Current Behavior
When running a Flutter app with :FlutterRun or :FlutterDebug, DevTools starts correctly (e.g., on port 9100). After quitting with :FlutterQuit and relaunching, DevTools opens the browser with the old port (9100) instead of the new one (e.g., 9101). The page either fails to load or shows stale content.
Expected Behavior
After quitting and relaunching, DevTools should start a fresh server and open the browser with the correct new port.
Steps To Reproduce
- Open a Flutter project in Neovim with flutter-tools configured.
- Run :FlutterDebug, DevTools starts on port 9100, browser opens correctly
- Run :FlutterQuit
- Run :FlutterDebug again. After building, the browser window opens, but the page says unable to connect. Manually switching the port in the URL to 9101 connects.
Environment
- OS: Windows 11
- Flutter version: 3.35.7
- Is flutter in $PATH: Yes
- neovim version: 0.11.06
Anything else?
No response