Skip to content

Commit 618c0b9

Browse files
committed
fix: iris sync diagnostic output not lost
1 parent 0067981 commit 618c0b9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
- WebUI workspace view now works properly for filenames with spaces (#423)
1717
- Fixed error popups in interop editors in Studio on 2024.1 (#417)
1818
- Reintroduced amend (#425)
19+
- IRIS sync output is no longer lost (#426)
1920

2021
## [2.4.0] - 2024-07-08
2122

cls/SourceControl/Git/Utils.cls

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,29 +1770,31 @@ ClassMethod RunGitCommandWithInput(command As %String, inFile As %String = "", O
17701770
set buffer = ##class(SourceControl.Git.Util.Buffer).%New()
17711771
do buffer.BeginCaptureOutput()
17721772
set st = ..SyncIrisWithRepoThroughDiff(.files, .filterToFiles, invert)
1773+
set out = ##class(%Stream.GlobalCharacter).%New()
17731774
do buffer.EndCaptureOutput(.out)
17741775
if $$$ISOK(st) {
17751776
while 'out.AtEnd {
1776-
do %outStream.WriteLine(out.ReadLine())
1777+
do outStream.WriteLine(out.ReadLine())
17771778
}
17781779
} else {
17791780
while 'out.AtEnd {
1780-
do %errStream.WriteLine(out.ReadLine())
1781+
do errStream.WriteLine(out.ReadLine())
17811782
}
17821783
}
17831784
} elseif syncIrisWithCommand {
17841785
do ..PrintStreams(errStream, outStream)
17851786
set buffer = ##class(SourceControl.Git.Util.Buffer).%New()
17861787
do buffer.BeginCaptureOutput()
17871788
set st = ..SyncIrisWithRepoThroughCommand(.outStream)
1789+
set out = ##class(%Stream.Global).%New()
17881790
do buffer.EndCaptureOutput(.out)
17891791
if $$$ISOK(st) {
17901792
while 'out.AtEnd {
1791-
do %outStream.WriteLine(out.ReadLine())
1793+
do outStream.WriteLine(out.ReadLine())
17921794
}
17931795
} else {
17941796
while 'out.AtEnd {
1795-
do %errStream.WriteLine(out.ReadLine())
1797+
do errStream.WriteLine(out.ReadLine())
17961798
}
17971799
}
17981800
}

cls/SourceControl/Git/WebUIDriver.cls

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ Class SourceControl.Git.WebUIDriver
44
ClassMethod HandleRequest(pagePath As %String, InternalName As %String = "", Output handled As %Boolean = 0, Output %data As %Stream.Object)
55
{
66
// Make sure we capture any stray output
7-
set buffer = ##class(SourceControl.Git.Util.Buffer).%New()
8-
do buffer.BeginCaptureOutput()
97
set context = ##class(SourceControl.Git.PackageManagerContext).ForInternalName(InternalName)
108
kill %data
119
#dim %response as %CSP.Response
@@ -165,7 +163,6 @@ ClassMethod HandleRequest(pagePath As %String, InternalName As %String = "", Out
165163
}
166164
}
167165
}
168-
do buffer.EndCaptureOutput(.throwaway)
169166
}
170167

171168
ClassMethod UserInfo() As %SystemBase

0 commit comments

Comments
 (0)