dart-lang / api.dart.dev

Dart API docs
https://api.dart.dev
BSD 3-Clause "New" or "Revised" License
19 stars 17 forks source link

Could not find a command named "doc". #85

Open evanholt1 opened 2 years ago

evanholt1 commented 2 years ago

Greetings!

I know this may be quite trivial,, but when following this guide: https://dart.dev/tools/dart-doc to generate dartdoc for my flutter app, what i get on the terminal when running dart doc . from the root directory of my flutter app is just Could not find a command named "doc".

my dart version is Dart SDK version: 2.15.1 (stable) (Tue Dec 14 13:32:21 2021 +0100) on "linux_x64", and i have ran dart pub get successfully on the project beforehand.

I also did install and globally activate https://pub.dev/packages/dartdoc, but running dart doc . or dartdoc . neither work. running dart help doc throws the same command, and running dart help shows me the available commands, none of which is doc.