VSCode not able to recognize the code (Flutter/Dart)

可紊 提交于 2021-02-11 12:22:21

问题


Till yesterday, VSCode was running fine, but after dart updated itself, VSCode has stopped recognizing my code as a language. When I type CTRL+F5, it pops up asking to select a compiler. The code runs fine, but it is not able to recognize it. Side note, it works in Android Studio. Updating the pubspec.yaml file just removes errors but the code is still not recognized.

Popup: https://i.stack.imgur.com/c2WZR.png

No syntax highlighting/nothing: https://i.stack.imgur.com/EmtiU.png

P.S: It recognizes the SDK though, and there are no errors when flutter doctor is run.

来源:https://stackoverflow.com/questions/63229817/vscode-not-able-to-recognize-the-code-flutter-dart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!