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

4

6

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.

Andry answered 9/5, 2020 at 20:15 Comment(4)
what version did you used? mine is 3.10.1 but still got the errorNavel
Flutter 1.19.0-1.0.preAndry
Restart VsCode, if its not working then check you channel and change it to stable and upgrade the stable version to latest and then tryBisset
That happened to me, when I had two project opened in VS Code - one from Beta channel, other from Stable. Reopening VS Code fixed it.Beckybecloud
W
8

echo.

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

good flutter life!

Wrack answered 11/5, 2020 at 2:42 Comment(1)
Thanks for the answer. I reinstalled Flutter extension too in the beginning, but it didn't work for me. I ended up upgrading Flutter then it works.Andry
B
5

For me restarting the VS Code did the Job.

Boxfish answered 26/5, 2020 at 10:0 Comment(0)
C
3

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

Capers answered 9/7, 2020 at 13:36 Comment(0)
C
0

I had the same problem, I just upgraded Flutter and it works.

Cellarage answered 16/5, 2020 at 9:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.