In Pharo 6 I select some code and then from menu choose Suggestions ExtractMethod

If the code is one line it sometimes works but after the first fail it then logs "Could not extract code from method'

If it has multiple lines including onbe message over lines I get a debugger call back

In SugsNatilusContent

selectedStatements
        selectedNode isMessage ifTrue: [ ^{selectedNode} ].
^(selectedNode statements select: [ :stat | stat containedBy: selectionPreviousHighligth ])


selectionPreviousHighligth is nil


That nil is passed to RBMessageNode containedBy: sp its anInterval is nil and it crashes.

Apart from the bad spelling what is wrong here?



--
Mark


Reply via email to