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

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Mon Feb 10 22:15:34 UTC 2020


Hi Levente,


> If you need to process JSON files, I suggest using the Json package.

I came across the OpenAPI<https://github.com/zweidenker/OpenAPI> implementation for Pharo and wanted to try it out, but it depends on NeoJSON.


> 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.

Good idea! I managed to load NeoJSON with this URL: 'github://svenvc/NeoJSON:ff1c22775182547af801cdfc286b3f33e8286475/repository'
Unfortunately, I cannot stop Metacello from attempting to load the master when installing OpenAPI, so this is failing still ...
I only wanted to have a quick look at it. Now I ended up experimenting a bit with Pharo. Sigh, why can't they be more compatible ...

Thanks for your help! :-)
Christoph

________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Levente Uzonyi <leves at caesar.elte.hu>
Gesendet: Montag, 10. Februar 2020 22:35:02
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] Installing Metacello baseline for Pharo in Squeak? (NeoJSON)

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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200210/f28a0d98/attachment.html>


More information about the Squeak-dev mailing list