I was doing a project using flutter in vs code and all of a sudden after a shutdown vs code is not This error shows up
The flutter doctor command shows no problem too. doctor summary
I was doing a project using flutter in vs code and all of a sudden after a shutdown vs code is not This error shows up
The flutter doctor command shows no problem too. doctor summary
It's a bit late to reply but if anyone runs into this problem this fixed it for me.
This happens because maybe VS Code can’t find Path to Flutter SDK.
You can set the path in the VS Code settings.json file in dart.flutterSdkPath:
In my case it was to add the /bin folder in the path.
I hope this helps
Normally this problem occurs because there is more than one reference in the vs-code path on your system, in an Ubuntu-type distro it may be that there is an installation of vs-code in snap and apt, a solution would be to check if there is an installation of vs-code in snap and remove it: sudo snap list code && sudo snap uninstall code.
I had the issue where flutter doctor reported "VS Code (version unknown)" and failed to detect the VS Code version on Ubuntu.
The problem was that Flutter expected to find VS Code’s version info inside /usr/share/code/Resources/app/package.json, but on Ubuntu, the actual folder was /usr/share/code/resources (lowercase 'r'). This mismatch caused Flutter not to detect the VS Code version correctly.
I created a symbolic link named Resources that points to the existing resources directory by running this command in the terminal: sudo ln -s /usr/share/code/resources /usr/share/code/Resources This command creates a shortcut named Resources pointing to the correct resources folder, effectively satisfying Flutter’s expected path.
To verify the symbolic link was created correctly, I ran: ls -l /usr/share/code
And got this output showing the symlink: lrwxrwxrwx 1 root root 25 Sep 5 23:06 Resources -> /usr/share/code/resources
I also confirmed the link target with: /usr/share/code/resources
finally i run fluter doctor -v
[✓] VS Code (version 1.103.2) [36ms]
• VS Code at /usr/share/code
• Flutter extension version 3.118.0
File -> Preferences -> Extensions