Skip to content
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

Unhelpful error messages when submodules missing #90

Closed
owensd opened this issue May 3, 2016 · 4 comments
Closed

Unhelpful error messages when submodules missing #90

owensd opened this issue May 3, 2016 · 4 comments

Comments

@owensd
Copy link
Member

owensd commented May 3, 2016

I was pulling down some atpkg updates on my laptop, which had not been updated in a while so it didn't have the submodules yet.

When performing the build from the command line (atbuild v1.0), all I saw was this:

9:48:41 › atbuild -f build.atpkg check
enabling overlays ["atbuild.platform.osx", "atbuild.platform.mac"]
Could not load package file: NoSuchEntity
atbuild - Anarchy Tools Build Tool 1.0
https://github.com/AnarchyTools
© 2016 Anarchy Tools Contributors.

Usage:
atbuild [--toolchain (/toolchain/path | xcode)] [-f packagefile] [task] [--clean]
No tasks are available; run --help in a directory with a build.atpkg for project-specific help

I was really confused.

Turned out the issue was that I was missing the atfoundation submodule. After properly getting that, the build was working again.

We should provide some better error message here when the import-packages files cannot be found.

@owensd
Copy link
Member Author

owensd commented May 3, 2016

I see that there is this: Could not load package file: NoSuchEntity. However, that message is lost in the mini-wall-of-text, and also doesn't point to the the problem: atfoundation/build.atpkg was missing.

@dunkelstern
Copy link
Member

It would be much clearer if we used the package manager for dependency resolution. See proposal here: #91

@drewcrawford
Copy link
Contributor

See also AnarchyTools/atfoundation#9, which I believe would significantly improve this error

@dunkelstern
Copy link
Member

AnarchyTools/atfoundation#9 has been merged, is there something that we can do here in addition to that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants