Log javaOptions/fork interactions#2103
Conversation
|
Can one of the admins verify this patch? |
|
|
There was a problem hiding this comment.
This isn't private, so we can't add an option to it without also created an overloaded method that has the original # of arguments (binary compatibility)
|
@dwijnand You win for reviewing while I had this open and waiting, thereby misisng your comments completely. Agree with your comments. |
|
So, should I remove the |
|
Added notes. |
|
@pdalpra Do we log the same (or "sufficiently" similar) information and in all the same cases by moving it to |
|
Doesn't |
|
|
|
More precisely, |
|
BTW, what @Duhemm has done on his fork does not affects the |
|
BC changes look good, was just commenting on what the error messages look like in practice (From a quick test). Ideally I'd like to know, if I set |
|
Indeed, as it is, It's nothing more than a hint that something is wrong for any not-completely-trivial build. |
|
I have two small questions:
|
|
So, as for allGroupTestTasks... hmm... Maybe let's defer that for now. I think there may be an alternative way to get the error message on that setting. As for Scope.display, that should be fine. I personally get confused over the different show options EVERY TIME I need to show something, so you should try it out and check the error messages. if it's wrong, we'll find you the right one :) |
|
Also, thanks @pdalpra for the dedication on this one. Very glad to see you going the extra mile on error messages :) |
|
As shown above, I managed to get something that looks quite good, except for the scopes... You're welcome :) |
|
no, I dont think |
|
It seems that what is done in |
|
@pdalpra I'll have to look. The issue is NOT that you want the scopedKey of the current key, it's that you want to find the scope of the current Setting you're a part of. SO, for ANY key, you can do: If you just call SO yes, WHat we do have in sbt, are a few "magic" keys that will be injected by the setting system. For example, TL;DR; Try to depend on |
|
Thank you for your detailed explanation, I'll try it ASAP. |
|
Got it : I only logged scopes on the warning, not on the debug that display the javaOptions. Can't get that level of details to |
- When forking, log the javaOptions that are used - When javaOptions are defined but fork := false, warn that javaOptions will be ignored
|
Amended my commit so that the project axis in not shown in the warning message : |
|
@pdalpra nice! |
Log javaOptions/fork interactions
|
Nice indeed! |
|
BTW, thank you for your patience with me on this @jsuereth ! |
This fixes both #2041 and #2087.
will be ignored