LivelyKernel / lively.next

lively.next is a personal programming kit. It emphasizes liveness, directness, and interactivity.
https://lively-next.org
MIT License
69 stars 16 forks source link

Implement System Settings like tool in lively #773

Open rickmcgeer opened 1 year ago

rickmcgeer commented 1 year ago

What would you like to achieve? Getting the world menu to be in a burger menu in the left of the toolbar

How are you trying to achieve that Per earlier instructions, adding a localconfig.js file, with the line

config.ide.studio.worldMenuInTopBar = true

But this is preventing world loading, with the console error

Error loading localconfig: (SystemJS) config is not defined
    ReferenceError: config is not defined
        at eval (http://127.0.0.1:9011/localconfig.js:3:1)
        at eval (<anonymous>)
    Evaluating http://127.0.0.1:9011/localconfig.js
    Error loading http://127.0.0.1:9011/localconfig.js

This is no problem -- I just commented out the offending line in localconfig.js. But I would like guidance on how to get this done.

43af340475ee8a67aa91217cd6b474d7c1313a5a

linusha commented 1 year ago

Yeah, localconfig.js is a normal javascript module like all other JS code. Thus, you need to import config to access it.

Just put import { config } from "lively.morphic"; at the top of the file.


However, this is a situation that you should not need to encounter. I think we should a) make it possible to edit the localconfig inside of lively, so that you can get the usual IDE support and\ b) in the long run there should probably be some kind of menu/config editor that creates/generates/manipulates the config file for you, so that invalid configs are easier to avoid and the whole set of options is better documented. However, this is both not super high prio in my opinion.