nvim-flutter / flutter-tools.nvim

Tools to help create flutter apps in neovim using the native lsp
MIT License
999 stars 80 forks source link

[BUG] Buffer is not 'modifiable' #366

Open maxfornacon opened 2 months ago

maxfornacon commented 2 months ago

Is there an existing issue for this?

Current Behavior

When I try to run :FlutterRun after a while this error appears:

Error executing vim.schedule lua callback: ...e/nvim/lazy/flutter-tools.nvim/lua/flutter-tools/log.lua:79: Buffer is not 'mo
difiable'
stack traceback:
        [C]: in function 'nvim_buf_set_lines'
        ...e/nvim/lazy/flutter-tools.nvim/lua/flutter-tools/log.lua:79: in function 'append'
        ...e/nvim/lazy/flutter-tools.nvim/lua/flutter-tools/log.lua:90: in function 'log'
        ...m/lazy/flutter-tools.nvim/lua/flutter-tools/commands.lua:70: in function 'on_run_data'
        ...tter-tools.nvim/lua/flutter-tools/runners/job_runner.lua:33: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

Expected Behavior

Run the flutter application

Steps To Reproduce

  1. open project
  2. run :FlutterRun

Environment

- OS: macOS
- Flutter version: 3.19
- Is flutter in $PATH: yes
- neovim version: v0.10.0

Anything else?

No response

justjew commented 2 weeks ago

I have the same problem