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] Invalid line number

raihanadf opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

image
Every time I import classes or do something wrong in syntax writing, a crash will happen, and this error output comes up. But, this will only happen when I pressed O instead of Enter in the end of the line.

Expected Behavior

It should have behaved normally and wouldn't crash.

Steps To Reproduce

  1. Open up a project
  2. Import classes, for this example write "import 'blabla.dart'"
  3. Enter the class and then create a new line with O instead of Enter
  4. ???

Environment

- OS: Arch Linux
- Flutter version: 3.16.9
- Is flutter in $PATH: yes
- neovim version: v0.10.0

Anything else?

I know I need to search deeply about how to debug this on neovim -> lsp level deep, but unfortunately I don't have much time left lately cause of my uni and job, so I reported this here instead. Please give me any links or references if this issue has any blame on my configuration fault or something :)