An issue with Zinc-HTTP

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

An issue with Zinc-HTTP

Dennis Schetinin
Trying to load Zinc-HTTP, I encounter a problem: Zinc-HTTP package removes #asZnUrl and #asZnMimeType from String (added by Zinc-Resource-Meta-Core). 

I don't fully understand why it occurs. The workaround is straightforward: to add those methods manually after load.


Best regards,
Dennis Schetinin

Reply | Threaded
Open this post in threaded view
|

Re: An issue with Zinc-HTTP

Sven Van Caekenberghe-2
Dennis,

On 26 Dec 2012, at 03:57, Dennis Schetinin <[hidden email]> wrote:

> Trying to load Zinc-HTTP, I encounter a problem: Zinc-HTTP package removes #asZnUrl and #asZnMimeType from String (added by Zinc-Resource-Meta-Core).
>
> I don't fully understand why it occurs. The workaround is straightforward: to add those methods manually after load.
>
>
> Best regards,
> Dennis Schetinin

There were indeed some repacking changes in Zn.

Short answer:

        ConfigurationOfZincHTTPComponents load.

Or even

        ConfigurationOfZincHTTPComponents project latestVersion load.

Long answer (from my CI build script, remove the ! if necessary):

"Load Zinc"
Gofer new
        url: 'http://mc.stfx.eu/ZincHTTPComponents';
        package: 'Zinc-Character-Encoding-Core';
        package: 'Zinc-Character-Encoding-Tests';
        package: 'Zinc-Resource-Meta-Core';
        package: 'Zinc-Resource-Meta-Tests';
        package: 'Zinc-HTTP';
        package: 'Zinc-FileSystem';
        package: 'Zinc-Tests';
        package: 'Zinc-WebSocket-Core';
        package: 'Zinc-WebSocket-Tests';
        load.
!
"Load Zodiac"
Gofer new
        url: 'http://mc.stfx.eu/Zodiac';
        package: 'Zodiac-Core';
        package: 'Zodiac-Tests';
        package: 'Zodiac-Extra';
        load.
!
"Load Zinc support for Zodiac"
Gofer new
        url: 'http://mc.stfx.eu/ZincHTTPComponents';
        package: 'Zinc-Zodiac';
        load.
!
{ ZnMimeType. ZnByteEncoder. ZnConstants. ZnNetworkingUtils. ZnSingleThreadedServer. ZnServer }
        do: [ :each | each initialize ].

HTH,

Sven

--
Sven Van Caekenberghe
http://stfx.eu
Smalltalk is the Red Pill


Reply | Threaded
Open this post in threaded view
|

Re: An issue with Zinc-HTTP

Stéphane Ducasse
Hi sven

can you tell us what we should load in Pharo2.0?

Stef

On Dec 26, 2012, at 10:51 AM, Sven Van Caekenberghe wrote:

> Dennis,
>
> On 26 Dec 2012, at 03:57, Dennis Schetinin <[hidden email]> wrote:
>
>> Trying to load Zinc-HTTP, I encounter a problem: Zinc-HTTP package removes #asZnUrl and #asZnMimeType from String (added by Zinc-Resource-Meta-Core).
>>
>> I don't fully understand why it occurs. The workaround is straightforward: to add those methods manually after load.
>>
>>
>> Best regards,
>> Dennis Schetinin
>
> There were indeed some repacking changes in Zn.
>
> Short answer:
>
> ConfigurationOfZincHTTPComponents load.
>
> Or even
>
> ConfigurationOfZincHTTPComponents project latestVersion load.
>
> Long answer (from my CI build script, remove the ! if necessary):
>
> "Load Zinc"
> Gofer new
> url: 'http://mc.stfx.eu/ZincHTTPComponents';
> package: 'Zinc-Character-Encoding-Core';
> package: 'Zinc-Character-Encoding-Tests';
> package: 'Zinc-Resource-Meta-Core';
> package: 'Zinc-Resource-Meta-Tests';
> package: 'Zinc-HTTP';
>        package: 'Zinc-FileSystem';
> package: 'Zinc-Tests';
> package: 'Zinc-WebSocket-Core';
> package: 'Zinc-WebSocket-Tests';
> load.
> !
> "Load Zodiac"
> Gofer new
> url: 'http://mc.stfx.eu/Zodiac';
> package: 'Zodiac-Core';
> package: 'Zodiac-Tests';
> package: 'Zodiac-Extra';
> load.
> !
> "Load Zinc support for Zodiac"
> Gofer new
> url: 'http://mc.stfx.eu/ZincHTTPComponents';
> package: 'Zinc-Zodiac';
> load.
> !
> { ZnMimeType. ZnByteEncoder. ZnConstants. ZnNetworkingUtils. ZnSingleThreadedServer. ZnServer }
> do: [ :each | each initialize ].
>
> HTH,
>
> Sven
>
> --
> Sven Van Caekenberghe
> http://stfx.eu
> Smalltalk is the Red Pill
>
>


Reply | Threaded
Open this post in threaded view
|

Re: An issue with Zinc-HTTP

Sven Van Caekenberghe-2
On 26 Dec 2012, at 16:42, Stéphane Ducasse <[hidden email]> wrote:

> Hi sven
>
> can you tell us what we should load in Pharo2.0?
>
> Stef

http://code.google.com/p/pharo/issues/detail?id=7180

;-)

> On Dec 26, 2012, at 10:51 AM, Sven Van Caekenberghe wrote:
>
>> Dennis,
>>
>> On 26 Dec 2012, at 03:57, Dennis Schetinin <[hidden email]> wrote:
>>
>>> Trying to load Zinc-HTTP, I encounter a problem: Zinc-HTTP package removes #asZnUrl and #asZnMimeType from String (added by Zinc-Resource-Meta-Core).
>>>
>>> I don't fully understand why it occurs. The workaround is straightforward: to add those methods manually after load.
>>>
>>>
>>> Best regards,
>>> Dennis Schetinin
>>
>> There were indeed some repacking changes in Zn.
>>
>> Short answer:
>>
>> ConfigurationOfZincHTTPComponents load.
>>
>> Or even
>>
>> ConfigurationOfZincHTTPComponents project latestVersion load.
>>
>> Long answer (from my CI build script, remove the ! if necessary):
>>
>> "Load Zinc"
>> Gofer new
>> url: 'http://mc.stfx.eu/ZincHTTPComponents';
>> package: 'Zinc-Character-Encoding-Core';
>> package: 'Zinc-Character-Encoding-Tests';
>> package: 'Zinc-Resource-Meta-Core';
>> package: 'Zinc-Resource-Meta-Tests';
>> package: 'Zinc-HTTP';
>>       package: 'Zinc-FileSystem';
>> package: 'Zinc-Tests';
>> package: 'Zinc-WebSocket-Core';
>> package: 'Zinc-WebSocket-Tests';
>> load.
>> !
>> "Load Zodiac"
>> Gofer new
>> url: 'http://mc.stfx.eu/Zodiac';
>> package: 'Zodiac-Core';
>> package: 'Zodiac-Tests';
>> package: 'Zodiac-Extra';
>> load.
>> !
>> "Load Zinc support for Zodiac"
>> Gofer new
>> url: 'http://mc.stfx.eu/ZincHTTPComponents';
>> package: 'Zinc-Zodiac';
>> load.
>> !
>> { ZnMimeType. ZnByteEncoder. ZnConstants. ZnNetworkingUtils. ZnSingleThreadedServer. ZnServer }
>> do: [ :each | each initialize ].
>>
>> HTH,
>>
>> Sven
>>
>> --
>> Sven Van Caekenberghe
>> http://stfx.eu
>> Smalltalk is the Red Pill
>>
>>
>
>