Command 'Flutter: New Project' resulted in an error (command 'flutter.createProject' not found) and i cant debug flutter project on VSCODE

3,276

I had the same problem and solved it by doing:

  • Uninstall VS Code dart and flutter extensions and close VS Code.
  • After this go to: vscode\extensions and remove all the files.
  • Run VS Code As Administrator.
  • Open VS Code and install dart and flutter extensions.

The cause for me might be that when you uninstall an extension files aren't erased.

I hope I helped you

Share:
3,276
Fatih
Author by

Fatih

Updated on December 20, 2022

Comments

  • Fatih
    Fatih over 1 year

    I have a question. I am using vscode and yesterday VScode is broken and deleted and re-installed But when I debug my project in vscode, there is no response and the computer does not show any error. I couldn't understand where there was an error.I would be very happy if you could help. I cannot progress in the project, please help.enter image description here

  • cokeman19
    cokeman19 about 3 years
    Thanks. For me, it was sufficient to do the first step, followed by deleting only the dart-code.dart-code-* & dart-code.flutter-* folders under .vscode\extensions. Then, after reinstalling the extensions everything worked fine.