I just discovered that when I try to fold all tiddlers with the Codemirror plugin installed, TW crashes with the following error:Internal JavaScript Error
Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browserError executing boot module $:/plugins/tiddlywiki/codemirror/addon/hint/css-hint.js: "Cannot find module named '../../mode/css/css' required by module '$:/plugins/tiddlywiki/codemirror/addon/hint/css-hint.js', resolved to $:/plugins/tiddlywiki/codemirror/mode/css/css" undefinedI am not sure which file is missing but there seems to be no mode/css/css item anywhere in the codemirror plugin treeS.
Hi,Have a look at the ControlPanel here: https://tiddlywiki.com/plugins/tiddlywiki/codemirror/#%24%3A%2FControlPanel
May be you missed to install some dependencies. ... There is no automatic dependency resolving mechanism. atm. ... We don't have the tools to create one at the moment.
@pmario, I think we should add red sign on the install banner when you click on open plugin-library ...
if those cm addons get a field "depends-on" we could show its content if the field exists
and/or we put a try { require(...) } catch(e) { $tw.notifier.notify(dependency xy missing, plz install addon so-und-so); return false; } ino the addons?
the base editor could hold a list or data-tiddler with all addons with the corresponding js-tiddler names that get required, so the addons can lookup which addon is missing ...
On Tuesday, March 5, 2019 at 9:28:43 PM UTC+1, BurningTreeC wrote:and/or we put a try { require(...) } catch(e) { $tw.notifier.notify(dependency xy missing, plz install addon so-und-so); return false; } ino the addons?this may be an option. ... but plugin activation order should be resolved automatically.the base editor could hold a list or data-tiddler with all addons with the corresponding js-tiddler names that get required, so the addons can lookup which addon is missing ...I think engine.js could be able to handle it, even if we need to provide more info in plugin.info.-mIsn't the only thing required that the configuration tiddlers are loaded in the correct order? We could just add list-before's ... it already gets the config tiddlers by filtering