Repository navigation
dart.flutterSdkPath is not a valid SDK folder when following symlink #4625
Description
Activity
- addedin editorRelates to code editing or language featuresRelates to code editing or language features
on Jul 3, 2023 - added a commit that references this issue
on Jul 4, 2023 Sorry for the bother. I've pushed a new release (v3.68.1 stable, v3.69.20230704 pre-release) that contains a fix for this. Please let me know if you continue to see issues. Thanks!
Reacted by Sangam Shrestha@DanTup
After updating to v3.68.1, I keep getting the "The SDK configured in dart.flutterSdkPath is not a valid SDK folder".
Also, the path in settings.json to be a non-existent folder and points to flutter windows beta!Windows 10 Pro (21H2)
VS Code 1.79.2
Flutter 2.10.5
Dart 2.16.2Screenshot for reference:
@ykiran as far as I can see, that's expected behaviour. This warning is to tell you that you have an invalid path in your
dart.flutterSdkPathsetting (which you do, if it doesn't exist). The fix is to delete that setting, because it's not doing anything.@ykiran as far as I can see, that's expected behaviour. This warning is to tell you that you have an invalid path in your
dart.flutterSdkPathsetting (which you do, if it doesn't exist). The fix is to delete that setting, because it's not doing anything.Ok, but I just wanted to highlight that this started happening only after I updated to the latest version. The sdk path was also not present earlier IIRC.
Thanks anyways.@ykiran gotcha. That's expected because this warning was added in the latest version (see https://dartcode.org/releases/#:~:text=A%20warning%20will%20now%20be%20shown%20if).
Some users had mistakenly put the path to the
flutterbinary in this setting (instead of the SDK folder) and it wasn't clear why their chosen SDK was not being used. This warning is to avoid that by encouraging people to remove any invalid SDK settings.If everything is working fine, the setting can just be deleted, because it's being ignored. The only time you need the setting is if we can't find the SDK via another means (such as looking in
PATH).Reacted by ykiranI upgraded to v3.69.20230719 pre release and deleted the
dart.flutterSdkPathconfiguration item, but this warning will continue to pop up every time I open a new project. But the project is running well. This is really a not good experience. I didn't seem to have this warning before. Recently, I upgraded the version of Flutter usingflutter upgrade. Is this related to this operation?@dht-hedaihua let's continue in #4656

Describe the bug
Warning "The SDK configured in dart.flutterSdkPath is not a valid SDK folder." appears when SDK configured via symlink: fvm as example.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should not appear
Screenshots

Please complete the following information: