<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi Levente,</p>
<p><br>
</p>
<p>> <span style="font-size:12pt">If you need to process JSON files, I suggest using the Json package.</span></p>
<div><br>
</div>
<div>I came across the <a href="https://github.com/zweidenker/OpenAPI" class="x_OWAAutoLink">
OpenAPI</a> implementation for Pharo and wanted to try it out, but it depends on NeoJSON.</div>
<p></p>
<p><br>
</p>
<p>> <span style="font-size:12pt">If you specifically need NeoJSON, you can either use an earlier commit </span><span style="font-size:12pt">of NeoJSON which is still in FileTree format, or just file out the code </span><span style="font-size:12pt">from a Pharo
 image.</span></p>
<div><br>
</div>
<div>Good idea! I managed to load NeoJSON with this URL: <span>'github://svenvc/NeoJSON:ff1c22775182547af801cdfc286b3f33e8286475/repository'</span></div>
<div><span>Unfortunately, I cannot stop Metacello from attempting to load the master when installing OpenAPI, so this is failing still ...</span></div>
<div><span>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 ...</span></div>
<div><span><br>
</span></div>
<div><span>Thanks for your help! :-)</span></div>
<div><span>Christoph</span></div>
<p></p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Levente Uzonyi <leves@caesar.elte.hu><br>
<b>Gesendet:</b> Montag, 10. Februar 2020 22:35:02<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] Installing Metacello baseline for Pharo in Squeak? (NeoJSON)</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi Christoph,<br>
<br>
On Mon, 10 Feb 2020, Thiede, Christoph wrote:<br>
<br>
> <br>
> Hello list,<br>
> <br>
> <br>
> 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<br>
> 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<br>
> structure (SomeClass.class/someSelector.st) via Metacello?<br>
> <br>
> <br>
> 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)<br>
> <br>
> <br>
> Metacello new<br>
>   repository: 'github://svenvc/NeoJSON/repository';<br>
>   baseline: 'NeoJSON';<br>
>   load.<br>
> <br>
> ... but unfortunately, this gives me a MetacelloPackageSpecResolutionError:<br>
> <br>
> <br>
> [IMAGE]<br>
> <br>
> <br>
> 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<br>
> this repo's configuration?<br>
> <br>
> Some explanations would be highly welcome!<br>
<br>
NeoJSON is for Pharo. Pharo migrated to Tonel, so NeoJSON uses Tonel.<br>
AFAIK no one has written Tonel support for Squeak. But even if there were <br>
Tonel support, NeoJSON probably has incompatibilities with Squeak, so <br>
you'll have to port it.<br>
If you need to process JSON files, I suggest using the Json package.<br>
If you specifically need NeoJSON, you can either use an earlier commit <br>
of NeoJSON which is still in FileTree format, or just file out the code <br>
from a Pharo image.<br>
<br>
Levente<br>
<br>
> <br>
> <br>
> (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<br>
> resend.)<br>
> <br>
> <br>
> Best,<br>
> <br>
> Christoph<br>
> <br>
> <br>
></div>
</span></font>
</body>
</html>