I want to add new language in coderunner app [MacOS]. which just works like DartPad. I installed flutter sdk. but I got this error message when I tried to compile the code after selecting the dart language which I added by Preferences/Languages/Add new language (+ symbol) :
/bin/sh: dart: command not found
CodeRunner/Preferences/Languages
.+
button at the end of the languages to add another language.
Dart
.dart $filename
..dart
.Dart
.5. Install Dart using HomeBrew in Terminal :
- brew tap dart-lang/dart
- brew install dart
If you get any error, try this before executing above commands :
export ALL_PROXY=$http_proxy:port
If you get any error like : Error: Your Command Line Tools are too outdated.
then try this : Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install