Skip to content

Commit 7f1f5f7

Browse files
author
Federico Fissore
committed
Trying to fix strange IDE behaviour: it mixes stderr and stdout at the end
of compilation Signed-off-by: Federico Fissore <[email protected]>
1 parent 008e46e commit 7f1f5f7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: src/arduino.cc/builder/print_used_and_not_used_libraries.go

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import (
3535
"arduino.cc/builder/types"
3636
"arduino.cc/builder/utils"
3737
"os"
38+
"time"
3839
)
3940

4041
type PrintUsedAndNotUsedLibraries struct{}
@@ -57,5 +58,7 @@ func (s *PrintUsedAndNotUsedLibraries) Run(context map[string]interface{}) error
5758
}
5859
}
5960

61+
time.Sleep(100 * time.Millisecond)
62+
6063
return nil
6164
}

Diff for: src/arduino.cc/builder/print_used_libraries_if_verbose.go

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import (
3333
"arduino.cc/builder/constants"
3434
"arduino.cc/builder/i18n"
3535
"arduino.cc/builder/types"
36+
"time"
3637
)
3738

3839
type PrintUsedLibrariesIfVerbose struct{}
@@ -59,5 +60,7 @@ func (s *PrintUsedLibrariesIfVerbose) Run(context map[string]interface{}) error
5960
}
6061
}
6162

63+
time.Sleep(100 * time.Millisecond)
64+
6265
return nil
6366
}

0 commit comments

Comments
 (0)