[squeak-dev] Installing Metacello baseline for Pharo in Squeak? (NeoJSON)

Levente Uzonyi leves at caesar.elte.hu
Mon Feb 10 21:35:02 UTC 2020


Hi Christoph,

On Mon, 10 Feb 2020, Thiede, Christoph wrote:

> 
> Hello list,
> 
> 
> not sure if this is possible at all or if I am making a stupid error: I always had assumed that FileTree is a kind of mediator between Smalltalk
> code objects and file systems, so shouldn't it be possible to load code from a Pharo code structure (SomeClass.class.st files) into a Squeak code
> structure (SomeClass.class/someSelector.st) via Metacello?
> 
> 
> Here is my concrete example: I would like to install NeoJSON in Squeak, which apparently was written for Pharo. So I did this (in a fresh image)
> 
> 
> Metacello new
>   repository: 'github://svenvc/NeoJSON/repository';
>   baseline: 'NeoJSON';
>   load.
> 
> ... but unfortunately, this gives me a MetacelloPackageSpecResolutionError:
> 
> 
> [IMAGE]
> 
> 
> So this might be a general question: Did I misunderstood the mediator concept of FileTree or is there some specific error in either Metacello or
> this repo's configuration?
> 
> Some explanations would be highly welcome!

NeoJSON is for Pharo. Pharo migrated to Tonel, so NeoJSON uses Tonel.
AFAIK no one has written Tonel support for Squeak. But even if there were 
Tonel support, NeoJSON probably has incompatibilities with Squeak, so 
you'll have to port it.
If you need to process JSON files, I suggest using the Json package.
If you specifically need NeoJSON, you can either use an earlier commit 
of NeoJSON which is still in FileTree format, or just file out the code 
from a Pharo image.

Levente

> 
> 
> (PS: Not sure if I chose the right list for this question. If this should have gone to the Beginners list instead, please tell me and I will
> resend.)
> 
> 
> Best,
> 
> Christoph
> 
> 
>


More information about the Squeak-dev mailing list