Freezes when empty function exists
fithurriague opened this issue · comments
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Freeze
somefunction() {
Map willCouseBug = <String, dynamic>{};
willCouseBug[] // <-- Not only does not show the brackets but FREEZES neovim when you type the first bracket
}
emptyFunction() {
}
Does not freeze
somefunction() {
Map willCouseBug = <String, dynamic>{};
willCouseBug[] // <-- Now it does not freeze when you type the bracket
}
notEmptyFunction() {
var foo;
String bar = 'imstring';
}
Expected Behavior
Does not freeze
somefunction() {
Map willCouseBug = <String, dynamic>{};
willCouseBug[] // <-- Does not freeze when you type the bracket
}
emptyFunction() {
}
Being able to write the file scaffold without bugs, so you can organize it in your head.
Steps To Reproduce
- Create flutter app
- Go to main.dart or any file
- Write an empty function
- Go anywhere above the empty function
- Write a map
- Try to map something with square brackets
- Freezes
Environment
- OS:
EndeavourOS Linux x86_64
- Flutter version:
Flutter 3.13.9 • channel stable • https://github.com/flutter/flutter.git
Framework • revision d211f42860 (hace 3 semanas) • 2023-10-25 13:42:25
-0700
Engine • revision 0545f8705d
Tools • Dart 3.1.5 • DevTools 2.25.0
- Is flutter in $PATH:
Yes
- neovim version:
NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1699392533
Anything else?
No response
@fithurriague can you confirm that this is not a treesitter issue vs. an lsp one, these sort of issues have historically been TS related
@fithurriague can you confirm that this is not a treesitter issue vs. an lsp one, these sort of issues have historically been TS related
Well, uninstalling the plugin solved the problem...but I can double check and let you know if you like.
@fithurriague can you confirm that this is not a treesitter issue vs. an lsp one, these sort of issues have historically been TS related
Well, uninstalling the plugin solved the problem...but I can double check and let you know if you like.
Try locking the version of treesitter to the commit with hash '33eb472b459f1d2bf49e16154726743ab3ca1c6d'. This solves a lot of problems here.
commit = '33eb472b459f1d2bf49e16154726743ab3ca1c6d',
I'm going to close this out since the issue is ostensibly treesitter which this plugin isn't related to/responsible for