akinsho / flutter-tools.nvim

Tools to help create flutter apps in neovim using the native lsp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] flutter_tools_decorations.device is always nil

bruce3x opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After executing the FlutterRun command to start the flutter application, vim.g.flutter_tools_decorations.device is always nil.

Expected Behavior

Its value should be the name of the currently running device.

Steps To Reproduce

  1. :FlutterRun
  2. :lua print(vim.g.flutter_tools_decorations.device)

Environment

- OS: macOS
- Flutter version: 3.10
- Is flutter in $PATH: yes
- neovim version:0.9.0

Anything else?

I read the source code and tried to check the values of these two functions:

The result is :

  • is_running = true
  • current_device = nil