Sunday, February 17, 2013

OCompletion and Squeak 4.4

I ran into this twice, on two different systems. The instructions for installing OCompletion in Squeak 4.4's Extending the system document are dated. They say to do

"OCompletion provides source code completion as you type"
(Installer ss project: 'OCompletion') install: 'Ocompletion'.
(Smalltalk at: #ECToolSet) register.
(Smalltalk at: #ToolSet) default: (Smalltalk at: #ECToolSet).

Do this instead:

(Installer ss project: 'OCompletion') install: 'Ocompletion'.
(Installer ss project: 'MetacelloRepository') install: 'ConfigurationOfOCompletion'.
"Browse the ConfigurationOfOCompletion>>stable: method to find the latest
version for Squeak.  Right now (Feb 2013), it's 1.2.2 for Squeak 4.2.x;
install that."
((Smalltalk at: #ConfigurationOfOCompletion) project version: '1.2.2') load.
(Smalltalk at: #ECToolSet) register.
(Smalltalk at: #ToolSet) default: (Smalltalk at: #ECToolSet).

Update, Jan 23 2016: still broken in Squeak 5.0. The stable version for 5.0 is 1.4.3.

No comments: