I am trying to run a Flutter project in vim with the help of the vim-flutter plugin using the Git Bash console on windows.
When I use the command :FlutterRun
that runs flutter run
from the GVIM application which is the one that comes when I install vim it works correctly. But, when I run it from the Git-Bash terminal, I get the following error:
Error: No pubspec.yaml file found. This command should be run from the root of your Flutter project.
I already tried running the command being in different files but it doesn't work in any of them. Where should I run the file so that it works in git bash just like it does in gvim?
It's a clueless error, but I'll leave it here in case it helps someone with the same cluelessness in the future:
In my case what I was doing was going to the folder where I keep all my projects (let 's call it ProjectsDir ) and running the command
vim nombreDelProyecto
. This caused the command:FlutterRun
to be executed from ProjectsDir .What we have to do is go inside our project and make the vim from within. (For example
vim lib
) and from within execute the:FlutterRun