-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build anything (no .packages file) #681
Comments
to fix: create 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! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hover doctor
Error output
Using
hover build [...] --XXX
to build my application, I get the followingerror:
How to reproduce?
Build will fail.
The text was updated successfully, but these errors were encountered: