Closed vincevargadev closed 3 years ago
You should change your $PATH
so the dart
executable in your path is the one in the SDK you want to use.
We don't read any DART_SDK
variable, and we don't hardcode any SDK locations - the path is always discovered based on the location of the dart
executable.
I'd like to work on a codebase with null-safety.
I installed Dart's beta using brew, as specified in these two docs:
In the end, I got these:
It seems like Vim is still using the old SDK.
In IntelliJ, I can switch between the stable and beta Dart channels, by changing the SDK path from
/usr/local/opt/dart/libexec
to/usr/local/opt/dart-beta/libexec
. After that change is done, IntelliJ works correctly.I'd like Vim to use the same Dart SDK path, but so far I can't get it done, and I don't find info about how to change the Dart SDK so that Vim recognizes that.
I tried setting
export DART_SDK=/usr/local/opt/dart-beta/libexec
, but it didn't change anything.I'm new to Vim, so if this is not the right place to ask this question, let me know.