<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Lionel,</p>
<p>Thanks for your response!</p>
<p>Indeed there is an error in the Inspector Javascript Console:</p>
<p>[Error] Invalid url for WebSocket ws://127.0.0.1:undefined<br>
(anonymous function) (sugaros.js:19)<br>
(anonymous function) (env.js:29)</p>
<p>[Error] SyntaxError (DOM Exception 12): The string did not match
the expected pattern.<br>
(anonymous function) (sugaros.js:19)<br>
(anonymous function) (sugaros.js:19)<br>
(anonymous function) (env.js:29)</p>
<p>This can be reproduced by copying any activity (above is from
Stopwatch.activity) into ~/Activities in a Sugar Desktop.<br>
</p>
When I switch the lib/sugar-web directory for the official
sugarlabs/sugar-web, then it works fine in Sugar 0.110, but then, it
doesn't work in Sugarizer anymore.<br>
<br>
Any help is appreciated.<br>
Regards<br>
<br>
Sebastian<br>
<br>
<div class="moz-cite-prefix">On 25/03/17 10:15, Lionel Laské wrote:<br>
</div>
<blockquote
cite="mid:CAA0v29Ao8NrcTvWC-sAX2WhWL32uPo7RpG0sFr11zigc6gxXgw@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Sebastian,
<div>
<div><br>
</div>
<div>When you said "no errors in the logs" do you mean the
Sugar log ?</div>
<div>Is there any error in the browser console error ?</div>
<div><br>
</div>
<div>The symptom "activity icon not colored" always means that
the activity failed to initialize Sugar-Web stack.</div>
<div>Specifically it means that "activity.setup()" call failed
(or never happen). This call is here [1] in the
ActivityTemplate. May be you could inspect what going wrong
in your case on this call.</div>
<div><br>
</div>
<div>Best regards from France.</div>
<div><br>
</div>
<div> Lionel.</div>
</div>
<div><br>
</div>
<div>[1] <a moz-do-not-send="true"
href="https://github.com/llaske/sugarizer/blob/master/activities/ActivityTemplate/js/activity.js#L7">https://github.com/llaske/sugarizer/blob/master/activities/ActivityTemplate/js/activity.js#L7</a></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-03-25 16:09 GMT+01:00 Sebastian
Silva <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:sebastian@fuentelibre.org" target="_blank">sebastian@fuentelibre.org</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">I'm
creating my first web activity and I've used the
ActivityTemplate<br>
from Sugarizer repository.<br>
<br>
However I'm failing to get my activity to run under Sugar.<br>
<br>
The same happens when I try to run any of the Sugar-web
activities<br>
contained in `activities/` directory of Sugarizer
repository.<br>
<br>
However when I download Markdown.activity from ASLO, I am
able to run it.<br>
<br>
The failure consists of the activity icon not becoming
colored and no<br>
datastore object being created. Furthermore, there are no
errors in the<br>
logs that I can find.<br>
<br>
I'm testing with Sugar 0.110 as packaged in Debian Testing.<br>
<br>
Thanks for your help and hard work!<br>
<span class="HOEnZb"><font color="#888888"><br>
Sebastian<br>
<br>
<br>
</font></span></blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>