-
Notifications
You must be signed in to change notification settings - Fork 586
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
Changed NoDescription to target.Name. Updated links to use HTTPS per … #1996
Conversation
Which output are you referring to? Because afaik we first print the target name and then on the next line the description. The relevant place is: Maybe in your change we just use |
Btw: Thanks for your first contribution! |
After reading your response, I see that you are right! However, at least in Ionide on Windows 7, here's what it looks like: The description is quite prominent and helps break up the different targets and the visual flow, whereas the Putting a null may make more sense, but maybe possibly even better would be to emphasize the line EDIT: The alternative may be that I just need a better console / terminal, in which case EDIT2: Running FAKE on the latest git-bash on Windows results in no color being displayed at all (I assume because it doesn't recognize the terminal as supporting colors, even though it does) EDIT3: For every shell I've tried on Windows 7, the coloring stays consistent as shown above. I still believe that emphasizing the |
@zakaluka I'm open to changes there, feel free to play around and send something you are happy with :) |
The latest version has 2 changes in total:
|
@matthid I think I've gone as far as is needed to get the output a little better. (surprisingly small amount of change) I'm still seeing outputs of "NoDescription" in the tests, but can't figure out where they are coming from. That string doesn't occur anywhere in my codebase. If you have any insight, would love to fix it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only some very very pedantic minor things left ;)
@@ -110,7 +110,7 @@ type TagStatus = | |||
|
|||
/// Defines Tracing information for TraceListeners | |||
[<RequireQualifiedAccess>] | |||
type TraceData = | |||
type TraceData = | |||
| ImportData of typ:ImportData * path:string | |||
| BuildNumber of text:string | |||
| ImportantMessage of text:string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment to OpenTag
that description
might be null in case it is missing (which is probably the best we can do for now, ideally we would change to string option
but I don't want to make that breaking change here.
let msg = TraceData.TraceMessage("", true) | ||
let color2 = colorMap msg | ||
write false color2 false (sprintf "Starting %s '%s'" tag.Type tag.Name) | ||
if not (String.IsNullOrWhiteSpace description) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not leave isNull
?
Note that the current solution has a small problem when using --parallel
. The "newlinecharacter might be printed after another target description (ie you have something like
Starting T1 T1Starting T2 T2: descriptionT1: description T2` followed by two newline characters). It's probably not a huge deal, but if we use the same color anyway we should probably create the string and use a single write with newline character here.
Regarding the tests: I think the output might come from testing the legacy fake version, which is fine (we don't really want to update that one). |
Ok let me finish this. Again thanks! |
…GitHub changes.
For #1993