Problems using $world.openPartItem

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

Problems using $world.openPartItem

Andy Burnett
I have been following the documentation in the wiki, and came across an interesting problem. On the lively-kernel.org site, issuing a do-it on:

$world.openPartItem('Triangle', 'PartsBin/Triangle');

Produces:

The implementation did not support the requested type of object or operation.

However, running exactly the same command on my local server (thanks Robert for your help in getting it up and running), produces a completely different error:

cannot call method on 'openInWorld' on undefined.

I have no idea what the first error means, but the second one just looks like a DNU.

Any thoughts on what the problem(s) is?

Cheers
Andy

_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
Reply | Threaded
Open this post in threaded view
|

Re: Problems using $world.openPartItem

Lincke, Jens
Hi Andy,

try  $world.openPartItem('Triangle', 'PartsBin/Basic');

There the Triangle is in the Basic PartsSpace. There is not Triangle PartsSpace.

But yes, very bad error message, I think we try to deserialize whatever is returned from querying the wrong URL.

Best,
Jens

Am 30.08.2012 um 19:59 schrieb Andy Burnett <[hidden email]>:

$world.openPartItem('Triangle', 'PartsBin/Triangle');



_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
Reply | Threaded
Open this post in threaded view
|

Re: Problems using $world.openPartItem

Andy Burnett
Thanks Jens, that fixed it.

Now, how do I get a commit-bit for the wiki, because I would like to do something useful, such as fixing the documentation.

Also, as I noticed that the FilePaneEditor returns a 404 when one tries to save the sandbox/hello.txt file.  I tried creating the directory, and that fixed the problem.  Is this working as designed, and/or should it be fixed in the installation documentation?

Cheers
Andy
On Thu, Aug 30, 2012 at 3:59 PM, Jens Lincke <[hidden email]> wrote:
Hi Andy,

try  $world.openPartItem('Triangle', 'PartsBin/Basic');

There the Triangle is in the Basic PartsSpace. There is not Triangle PartsSpace.

But yes, very bad error message, I think we try to deserialize whatever is returned from querying the wrong URL.

Best,
Jens

Am 30.08.2012 um 19:59 schrieb Andy Burnett <[hidden email]>:

$world.openPartItem('Triangle', 'PartsBin/Triangle');




_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel