go-flutter-desktop / go-flutter

Flutter on Windows, MacOS and Linux - based on Flutter Embedding, Go and GLFW.
https://hover.build/
BSD 3-Clause "New" or "Revised" License
5.85k stars 283 forks source link

hover doctor to also report on the wix tools, and other things that the OS needs to be on disk. #523

Closed gedw99 closed 3 years ago

gedw99 commented 3 years ago

This is related to the issue about installing the Wix tools for the user: https://github.com/go-flutter-desktop/go-flutter/issues/522

The way hover does not make you call "hover deps" to first get the dependencies is quite nice for a user. Instead it just checks it all under the hood for you when you use a function that requires OS dependencies.

But i was thinking it might be nice to have "hover doctor" tell you about what is and is not installed.

The current output is really good.

hover doctor
hover: Hover version (devel) running on darwin
hover: Sharing flutter version
Flutter 1.22.1 • channel beta • https://github.com/flutter/flutter.git
Framework • revision f30b7f4db9 (6 days ago) • 2020-10-08 10:06:30 -0700
Engine • revision 75bef9f6c8
Tools • Dart 2.10.1
hover: Flutter engine commit: https://github.com/flutter/engine/commit/75bef9f6c8ac2ed4e1e04cdfcd88b177d9f1850d
hover: Finding out the C compiler version
Apple clang version 12.0.0 (clang-1200.0.32.2)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
hover: Sharing the content of go.mod
hover: Failed to read go.mod: open go/go.mod: no such file or directory
hover: file hover.yaml not found: open go/hover.yaml: no such file or directory
hover: Sharing the content of go/cmd

If it could have a section regarding Packaging. It could then tell you if you have the wix tools and any other tools needed installed.

It would also be nice if it can do it when not in a flutter folder with a pubspec.yaml. Sometimes you just want to check.