Open MrCyjaneK opened 1 year ago
to fix:
create generate_dot_packages.dart
in project root directory with following content:
import 'dart:convert';
import 'dart:io';
Future<void> main() async {
File file = File(".dart_tool/package_config.json");
dynamic pkgconfig = jsonDecode(await file.readAsString());
List<dynamic> pkgs = pkgconfig["packages"];
for (var elm in pkgs) {
if (elm["rootUri"] == "../") {
elm["rootUri"] = "./";
}
}
pkgconfig["packages"] = pkgs;
print(jsonEncode(pkgconfig));
}
run:
$ dart run generate_dot_packages.dart > .packages
hover build linux-appimage should work.
I face the same issues and your fix suggestion save the day. thank you!
Hover doctor
Error output
Using
hover build [...] --XXX
to build my application, I get the following error:How to reproduce?
Build will fail.