nvim-flutter / nvim-flutter/flutter-tools.nvim
[ISSUE] FlutterDevices Slow to Open
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 1.4k
- Forks
- 116
- Avg merge
- 3m
- Merged PRs (30d)
- 1
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
When you run :FlutterDevices it takes multiple seconds to open the popup window with all devices
Expected Behavior
The window opens immediately
Steps To Reproduce
Run :FlutterDevices
Environment
- OS: Mac 14.2.1 (23C71)
- Flutter version: 3.16.9
- Is flutter in $PATH: Yes
- neovim version: 0.9.5
Anything else?
I would imagine that this is taking so long as it's querying devices every time the command is run. A potential alternative solution would be to only fetch devices when the dialog is first opened and then cache them. Then, on subsequent opens, show the cache as well as another cell that says "Refresh" that would fetch all devices again.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the :FlutterDevices command entry point and run it in the reported Neovim and Flutter environment to observe where the delay occurs. Determine how device discovery affects popup opening; done means the device window opens immediately while still providing a way to refresh device data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flutter, lua, neovim
- Domain
- mobile-dev, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100