Manuscript (Case [Issue]22727) Usability - NonInteractiveTranscript is broken with files

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]22727) Usability - NonInteractiveTranscript is broken with files

Pharo Issue Tracker
Manuscript Notification
avatar
Bug in Project:  Usability: Misc  •  You are subscribed to this case
About speed: the current implementation does a #critical: access and #flush after each #show: so it won't be that fast in execution speed, but fast in producing results in the output (std or file) which is important too.

About encoding: neither Stdio nor File does any encoding on their raw streams, so writing anything but ASCII (or Latin1) will fail.

These are separate points from the functional issue at hand.

I would go for:

<code>
initializeStream
"Open the file stream that I write to or connect to #stdout.
I use the proper line end convention.
I will append to regular files."

^ stream := self isStdout
ifTrue: [ Stdio stdout ]
ifFalse: [
self isStderr
ifTrue: [ Stdio stderr ]
ifFalse: [ (File named: self fileName) openForAppend ] ]
</code>

But I have to test it.

We need some unit tests too.

Do you want me to do a PR ?
Priority Priority: 1 – Show Stopper !!!!!! Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker