iamcco / coc-flutter

flutter support for (Neo)vim
472 stars 38 forks source link

:CocCommand flutter.run does nothing #151

Open lukepighetti opened 2 years ago

lukepighetti commented 2 years ago

If I run :CocCommand flutter.run, I see the notice in the upper left Starting flutter dev server... and nothing attaches to my iOS simulator

I do see my device in :CocCommand flutter.devices

lukepighetti commented 2 years ago

It fails silently, I was not in the right folder. Would be nice if it showed errors when trying to run

dkbast commented 2 years ago

I would second that - for me it says server is running but I can't interact with it (e.g. doing a hot restart)

lukepighetti commented 2 years ago

Does anyone have this working? I can't get this to launch anything on iOS Simulator

Kavantix commented 2 years ago

Sorry somehow missed this issue. For me it still works perfectly, can you supply the information requested in the issue template. @dkbast yours would also be helpful :)

martin-braun commented 1 year ago

This issue is causing trouble when developing packages instead of apps. The main.dart is located in example/lib instead of lib, so the dev server won't start.

@Kavantix @iamcco Please clone and open my package https://github.com/martin-braun/google_maps_place_picker_mb/ in Neovim, open example/lib/main.dart and try to launch the server. This won't work.

I can bypass this by navigating to the example folder, but this is a bit annoying, because I might edit my plugin's code at the same time. Can this be fixed neatly? This Vim plugin should detect if I'm in an App project vs plugin project.

happysmile12321 commented 1 year ago

@lukepighetti 1. make sure you have enter flutter devices, chose your target devices you want to run.If you use enumrate on Mac, using enumlate to open it,then excute run.2.make sure you have not set http_proxy,which could caused socket not works as well!