Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find an option named "web-server-debug-protocol" when running a Flutter project through VSCode

I am using VSCode ad my Flutter development IDE. It worked well until this afternoon. When I ran the project, Could not find an option named "web-server-debug-protocol"showed up. I have no idea what goes wrong. I googled "web-server-debug-protocol" and only found two links showed that it exists in the flutter_command.dart. Did anyone meet the similar problem? Any suggestions about that? Thanks!

enter image description here

UPDATE I solved this issue by upgrading my Flutter.

like image 552
echo Avatar asked May 09 '20 20:05

echo


Video Answer


3 Answers

echo.

I reinstalled Flutter extension in VS Code and it worked properly.

good flutter life!

like image 54
ankomoti Avatar answered Oct 19 '22 00:10

ankomoti


For me restarting the VS Code did the Job.

like image 5
nani Avatar answered Oct 19 '22 00:10

nani


Just restart VS code. It often happens when you switch between Flutter channels, but restart should fix it...

like image 3
zlaayaa Avatar answered Oct 18 '22 23:10

zlaayaa