2017-07-26 12:09 GMT+02:00 <herby@mailbox.sk>:


On July 26, 2017 11:53:41 AM GMT+02:00, Sven Van Caekenberghe <sven@stfx.eu> wrote:
>
>> On 25 Jul 2017, at 19:46, Cyril Ferlicot D.
><cyril.ferlicot@gmail.com> wrote:
>>
>> Le 25/07/2017 �� 19:37, Sven Van Caekenberghe a ��crit :
>>> Hi,
>>>
>>> User Herby Voj����k seems to have an issue with the --headless option
>on Windows 10
>>>
>>>
>https://pharo.fogbugz.com/f/cases/20271/ZnServer-managedServers-disappear-when-headless-mode-used
>>>
>>> I cannot reproduce his problem.
>>>
>>> Maybe there are Windows users out there who can have a look and help
>him ?
>
>Anyone ?
>

I can reproduce the strange output:

pharo --headless Pharo.image st sample.st

with sample.st contains

(ZnServer startOn: 8888) register.
Smalltalk snapshot: true andQuit: true.

Now starting the pharo image in gui mode

pharo --headless Pharo.image

I can access localhost:8888

but
ZnServer managedServers evaluates to "an IdentitySet()"

running

pharo --headless Pharo.image eval "ZnServer managedServers" shows
an IdentitySet(a ZnManagingMultiThreadedServer(stopped 8888))

running eval without headless option:

pharo Pharo.image eval "ZnServer managedServers"
the set is again empty:
an IdentitySet()