[lively-kernel] newbie - "Cannot serialize old model object" problem
Davide Della Casa
davidedc at gmail.com
Tue Apr 26 00:30:32 CEST 2011
Hi Jens,
Thanks for the tip! I struggled a bit setting up the proxy - but got it to work, it's quite fun.
I have a couple of questions:
- Is there any further documentation I can read beside what's in http://www.lively-kernel.org/repository/webwerkstatt/documentation/ ? Specifically around the structure of the code and how the page "boots"?
- When I try to change the text in any textbox at http://www.lively-kernel.org/repository/webwerkstatt/documentation/GettingStarted.xhtml I get "TypeError: Cannot call method 'getUndoHistory' of null" - is there a way around that?
Cheers,
Davide
On 25 Apr 2011, at 08:17, Jens Lincke wrote:
> Hi Davide,
>
> Thanks for your interest in Lively. And I am sorry for your initial experiences...
>
> The places you started from are pretty much outdated. Our current development happens here:
>
> http://www.lively-kernel.org/repository/webwerkstatt/
>
> we know about the problems of saving the old example page (index.XHTML) but we planed to throw that parts away, so we did not fix that.
>
> You can edit in the webwerkstatt or copy pages from there as you like. For writing you have to register first:
> http://www.lively-kernel.org/trac/register
>
> there is a good overview page missing, since we did not have time to write it or nobody asked the right questions. So perhaps try these...
>
> http://www.lively-kernel.org/repository/webwerkstatt/documentation/GettingStarted.xhtml
> http://www.lively-kernel.org/repository/webwerkstatt/documentation/ScriptingTutorial.xhtml
>
> Best,
>
> Jens
>
>
> Am 25.04.2011 um 02:14 schrieb Davide Della Casa <davidedc at gmail.com>:
>
>> I found what it was: in the index.xhtml world there is a subworld called Development tools.
>>
>> That subworld has a PanelMorph in it, with four buttons and a slider and a number of text boxes - if I delete that PanelMorph the serialization is OK.
>>
>> I first tried to only remove all the contents of the PanelMorph - but that didn't solve the serialization problem.
>>
>> So I thought that maybe PanelMorphs have a serialization problem, but if I create a PanelMorph from scratch it works fine...
>>
>> So I don't know if it helps, but I hope it helps.
>>
>> Cheers,
>> Davide Della Casa
>>
>> On 25 Apr 2011, at 00:09, Davide Della Casa wrote:
>>
>>> Hi All,
>>>
>>> LK is an amazing project and after some toying around on the website I just installed it locally on my mac (default configuration on OSX version i.e. 10.6.7 (latest version at time of writing)).
>>>
>>> I had a couple of problems that I managed to resolve, and one problem still standing when saving worlds.
>>>
>>> - The video at http://www.youtube.com/watch?v=Gb3a70C15Sw seems to be slightly out of date and following those directions didn't seem to work.
>>> - So, I installed LK on the regular "Sites" directory - which is the default place where the web server fetches content - that works OK.
>>> - Then I had a problem in that the localconfig file is not included in the trunk (this is something that was spotted by Philip Weaver over two years ago http://forum.world.st/General-Instructions-for-Lively-Server-Setup-tt3033897.html#a3033900#none ) - but I copied a version from here http://www.lively-kernel.org/trac/browser/branches/interns/source/kernel/localconfig.js?rev=1340&order=name .
>>> - Also the " nocursor.cur " file is missing, but I found a blank cursor file from here and plugged that one in http://pc.autons.net/stuff/blanks/ so that's ok too.
>>>
>>> After these initial troubles I got the worlds to open and work OK but... while saving a world (e.g. just the plain index.xhtml world), I get these errors in the console:
>>> - problems to parse http://localhost/lively/index.xhtml
>>> - alert: Cannot serialize model stuff of type lively.data.DOMNodeRecord
>>>
>>> The world file *is* successfully created (so I believe this means that the WebDav worked), but when I load it I get a green/red world of death saying:
>>>
>>> ALERT: Cannot serialize old model object: {"_livelyDataWrapperId_":"172:anonymous_22","B1Value$observers":[{"__isSmartRef__":true,"id":883},{"__isSmartRef__":true,"id":884}],"B2Value$observers":[{"__isSmartRef__":true,"id":1120},{"__isSmartRef__":true,"id":1121}],"List$observers":[{"__isSmartRef__":true,"id":1122},{"__isSmartRef__":true,"id":1123}],"ListItem$observers":[{"__isSmartRef__":true,"id":1122},{"__isSmartRef__":true,"id":1123}],"Text$observers":[{"__isSmartRef__":true,"id":1124},{"__isSmartRef__":true,"id":1125},{"__isSmartRef__":true,"id":1126}],"TextSel$observers":[{"__isSmartRef__":true,"id":1127}],"PrintValue$observers":[{"__isSmartRef__":true,"id":1128},{"__isSmartRef__":true,"id":1129}],"SliderValue$observers":[{"__isSmartRef__":true,"id":1130},{"__isSmartRef__":true,"id":1131}],"SliderRange$observers":[{"__isSmartRef__":true,"id":1132},{"__isSmartRef__":true,"id":1131}],"__SourceModuleName__":"Global.anonymous_module_5","__rawNodeInfo__":{"tagName":"record","namespaceURI":"http://www.w3.org/2000/svg","attributes":[{"key":"id","value":"172:anonymous_22","namespaceURI":null}]},"definition":"{\"Text\":{},\"TextSel\":{},\"List\":{},\"ListItem\":{},\"PrintValue\":{},\"B1Value\":{},\"B2Value\":{},\"SliderValue\":{},\"SliderRange\":{}}","isInstanceOfAnonymousClass":true}
>>>
>>> Error while loading anonymous_module_3: Error: delegate [object Object] does not implement setTextSel
>>>
>>> Any hints?
>>>
>>> Cheers,
>>> Davide Della Casa
>>> http://www.sketchpatch.net
>>
>> _______________________________________________
>> lively-kernel mailing list
>> lively-kernel at hpi.uni-potsdam.de
>> http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.hpi.uni-potsdam.de/archive/lively-kernel/attachments/20110425/593997e6/attachment.htm
More information about the lively-kernel
mailing list