Install script for OmniBrowser for Pharo 1.3?

Please do not advertise Nautilus or Glamor here. I am using Pharo 1.3 (without plans to upgrade to Pharo 1.4 or 2.0). It seems there are many versions of OmniBrowser. Which one is the most proven (in terms of coverage) or just without glitches?

I have a few questions for this:

  • Does it work correctly with Shout?
  • Can I download it without AST and Refactoring?
  • Can I download it without Morphic?
  • Is it compatible with any version of Squeak?
  • Loading at Cuis?

thanks

+6
source share
3 answers

Omnibrowser is pre-installed in Pharo 1.3.

If you are talking about installing it in 1.3 kernel, use:

Gofer new squeaksource: 'MetacelloRepository'; package: 'ConfigurationOfOmniBrowser'; load. ((Smalltalk at: #ConfigurationOfOmniBrowser) project perform: #version: with: '1.3') load: #( Dev ). 

As for the other questions ... Does it work correctly with Shout? Yes.

Can I download it without AST and Refactoring? Yes. Download the #Core group instead of #Dev.

Can I download it without Morphic? Not.

Is it compatible with any version of Squeak? Yes. You can download it in Squeak 4.2 and 4.3 with:

 Installer ss project: 'MetacelloRepository'; install: #ConfigurationOfOmniBrowser. ((Smalltalk at: #ConfigurationOfOmniBrowser) project perform: #stableVersion) load: #( Dev ). 

Although, it seems, some problems arise with him. For example, refactoring did not seem to be accepted, and I had to change several #createCompletionController methods when errors occurred, to:

 createCompletionController ^ OController model: self 

Is it loading in Cuis? Very doubtful.

+6
source

The repository http://source.wiresong.ca/ob/ is the official OmniBrowser repository for Squeak (using the Tool-Builder). The repository http://source.lukas-renggli.ch/omnibrowser is the official OmniBrowser repository for Pharo (using Polymorph). In both repositories, the main packages are identical and are regularly reflected.

The repository http://source.lukas-renggli.ch/ob21 is out of date, this is due to an experiment that I started many years ago. I deleted the repository to avoid further confusion. All other repositories (as well as various Metacello configurations) are based on legacy and forked code. The code you get there does not have many improvements and misses the important fixes that were implemented a long time ago.

For Pharo 1.3, as Philip points out, you just need to specify https://github.com/renggli/builder/blob/master/scripts/omnibrowser.st to get a stable installation. Shout, eCompletion, Refactoring Engine, and other other extensions are optional. Just remove the parts you don't need from the script. Technically, Morphic is not needed either, but then you will not get the default user interface. There are several other interfaces, such as OB-Web and OB-Mars , that you could download, but I do not know how well they work.

The same file also works in Squeak. You just need to replace the following packages:

  • Refactoring-Pharo-Platform with Refactoring-Squeak-Platform (if you want a refactoring mechanism)
  • OB-Pharo-Platform with OB-Squeak-Platform
  • OB-Polymorph with OB-ToolBuilder
  • Shout pre-installed in Squeak and not needed
  • eCompletion does not work in Squeak (as far as I know)

I do not think OmniBrowser works in Cuis. It can be made to work by providing the necessary platforms and user interface packages. OmniBrowser is unlikely to ever be supported in Pharo 1.4 or Pharo 2.0 because the central parts of the reflection system (such as MethodReference and SystemNavigation ) have changed dramatically.

+5
source

I use one of http://source.lukas-renggli.ch/omnibrowser because I know where Lucas lives ;-) Lucas has been supporting him for several years, and I have never had any problems. Having said that this really only works in Pharo 1.3.

  • Does it work correctly with Shout? Yes
  • Can I download it without AST and Refactoring? Yes
  • Can I download it without Morphic? Not
  • Is it compatible with any version of Squeak? No , only Pharo 1.3
  • Is it loading in Cuis? No , only Pharo 1.3

I am using the download script from https://github.com/renggli/builder/blob/master/scripts/omnibrowser.st , unfortunately there is no Metacello configuration.

+2
source

Source: https://habr.com/ru/post/915289/


All Articles