The Inbox: CommandLine-ct.18.mcz

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

The Inbox: CommandLine-ct.18.mcz

commits-2
A new version of CommandLine was added to project The Inbox:
http://source.squeak.org/inbox/CommandLine-ct.18.mcz

==================== Summary ====================

Name: CommandLine-ct.18
Author: ct
Time: 21 November 2020, 8:33:12.860056 pm
UUID: 35f67ed2-f5ea-5741-b2fe-2bcfb5f60107
Ancestors: CommandLine-TheresaHMartenK.17

Fixes a nil bug in CommandLineToolSet when debugging a process without extra contents. nil is a valid argument for contents. See Process >> #debug:title:full: and senders.

=============== Diff against CommandLine-TheresaHMartenK.17 ===============

Item was changed:
  ----- Method: CommandLineToolSet class>>debugProcess:context:label:contents:fullView: (in category 'debugging') -----
  debugProcess: aProcess context: aContext label: aString contents: contents fullView: aBool
  "We can't open a command line debugger, so just log the error and carry on."
 
  | s |
  s := FileStream stderr.
  s
  nextPutAll: self className;
  nextPutAll: ': ';
  nextPutAll: aString;
- cr;
- nextPutAll: contents;
  cr.
+ contents ifNotNil: [
+ s
+ nextPutAll: contents;
+ cr].
  (aContext stackOfSize: 20) do: [:ctx | ctx printOn: s. s cr].
  s flush.!