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 <a href="http://forum.world.st/General-Instructions-for-Lively-Server-Setup-tt3033897.html#a3033900#none">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 _______________________________________________ lively-kernel mailing list [hidden email] http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel |
P.S.
Saving a world starting from the "slide.xhtml" file works just fine - no serialization problems there. So I guess there is probably something from the default index.xhtml world that is annoying the serializer? Cheers, Davide Della Casa On 25 Apr 2011, at 00:09, Davide Della Casa wrote:
_______________________________________________ lively-kernel mailing list [hidden email] http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel |
In reply to this post by Davide Della Casa
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
_______________________________________________ lively-kernel mailing list [hidden email] http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel |
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: 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/registerthere 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
_______________________________________________ lively-kernel mailing list [hidden email] http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel |
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:
_______________________________________________ lively-kernel mailing list [hidden email] http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel |
Hi,
I made an update from SVN an hour ago - now anything with scrollbars throws an error 'result of expression "scrollBar.slider" undefined' - and the entire morph fails to show. So, for example, the error is thrown by clicking the "wiki control" button or bringing up the class browser or a text pane... Cheers, Davide _______________________________________________ lively-kernel mailing list [hidden email] http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel |
In reply to this post by Davide Della Casa
Hi Davide,
On 26.04.2011, at 00:30, Davide Della Casa wrote:
since we refactored a lot the existing documentation to that topic is a bit outdated. But to keep it short: The path to that script is adapted during the serialization of that page. The bootstrap.js supports the loading of old and new pages, which will be cleaned up after there are no old pages any more. The data of the page lies in <meta id="LivelyJSONWorld"><![CDATA[{"id":0," .... In old pages the data is serialized as XML, which does not support the serialization of arbitrary objects as our new serialization mechanism does. What the booting does is to load all the necessary modules to load that page. Deserialize all objects in LivelyJSONWorld and start the world. In a normal page you will find loaded a file called combindedModules.js, this file is a statically generated file that bundles some of our core modules to speed up loading. The modules can be changed by the localconfig of the wiki such in: Config.modulesOnWorldLoad = Config.modulesOnWorldLoad.concat(["lively.Graffle", "lively.Undo", "lively.ide.AutoCompletion", "lively.ide.SyntaxHighlighting", 'lively.Scripting']) and additionally every page can also add local requirements this way.
thanks for reporting, I fixed that. Best, Jens _______________________________________________ lively-kernel mailing list [hidden email] http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel |
In reply to this post by Davide Della Casa
Hi Davide,
do you work against webwerkstatt, if so your pages should work again. This problem was a refactoring without taking care of old data. Best, Jens On 26.04.2011, at 03:31, Davide Della Casa wrote: > Hi, > > I made an update from SVN an hour ago - now anything with scrollbars throws an error 'result of expression "scrollBar.slider" undefined' - and the entire morph fails to show. > > So, for example, the error is thrown by clicking the "wiki control" button or bringing up the class browser or a text pane... > > Cheers, > Davide > _______________________________________________ > lively-kernel mailing list > [hidden email] > http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel _______________________________________________ lively-kernel mailing list [hidden email] http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel |
Yes I'm on webwerkstatt now.
Did the update - works great. Cheers, Davide On 26 Apr 2011, at 10:29, Jens Lincke wrote: > Hi Davide, > > do you work against webwerkstatt, if so your pages should work again. This problem was a refactoring without taking care of old data. > > Best, > > Jens > > On 26.04.2011, at 03:31, Davide Della Casa wrote: > >> Hi, >> >> I made an update from SVN an hour ago - now anything with scrollbars throws an error 'result of expression "scrollBar.slider" undefined' - and the entire morph fails to show. >> >> So, for example, the error is thrown by clicking the "wiki control" button or bringing up the class browser or a text pane... >> >> Cheers, >> Davide >> _______________________________________________ >> lively-kernel mailing list >> [hidden email] >> http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel > _______________________________________________ lively-kernel mailing list [hidden email] http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel |
Free forum by Nabble | Edit this page |