-
Notifications
You must be signed in to change notification settings - Fork 1k
Systematic support for "warnings" #534
Comments
need a warning if the source cache lock file is busy. |
So I can see there's a Ctx passed around that has an Out and Err var, but this Ctx isn't exposed to lower level stuff like the NewSourceManager() func. NewSourceManger() doesn't return anything, and we don't pass anything to it. We could make a struct in gps and assign the Out and Err to that, and then use that Ctx in parts of gps that need to provide warning output. Warnings should always be STDERR. I'm unsure as I don't know how people feel about package-wide vars. Not sure if that's appropriate but thats my initial naive suggestion. Might be useful to have a quiet mode? Not sure. |
If someone in the next week or so wants to discuss this in more detail and wants a hand playing with this, I'll be happy to assist. I think this is important to progress as I've come across a few cases where some output would've helped me understand what went wrong. |
@bradleyfalzon ack, i'm sorry, i totally missed your comment on this :/ i'd be happy to chat about what's involved with this. |
Sorry, @sdboyer should've pinged again. I had a couple weeks off of work to work on projects, but back soon so just want to finish off my other work. I did have a quick look based on @matjam's comments, and it looks OK but requires threading throughout and I don't quite have the time to do that from start to finish this week. |
From @sdboyer on July 26, 2016 18:25
We need a system of warnings when things occur that aren't necessarily grounds to stop the solver, but aren't exactly optimal either.
Much of this system will necessarily be about how to report the information - clearly, it has to emerge from somewhere other than the
TraceLogger
. That means two separate reporting paths, though, which is...well, super fun.In any case, for now, this issue is useful as a place to keep a running list of conditions under which we should issue warnings:
None
constraint is explicitly given by a manifestProjectIdentifier
- root or net name - is returned from aManifest
method.$PATH
. (This is obviously escalated to an error if the vcs turns out to be needed by an actual dependency)PackageTree
ListPackages()
encounters a directory which it lacks the permissions to enterLock
does not exist in the corresponding source, forcing it to be discardedCopied from original issue: sdboyer/gps#77
The text was updated successfully, but these errors were encountered: