Inside of TW-Section is directory source/section which contains the plugin information and of course the plugin.info file
I launch like the following from a directory that is a clone of a pre-release 5.2.1 (?). The editions/tw5.com/tiddlywiki.info file has source/section added to the plugin portion of its configuration:
So what am I doing wrong? The example on TiddlyWiki. com is only two lines long and doesn’t contain an example of the file structure or of the source directory.
See the installation on Node.js in TW-Section and follow up the instruction! Note to use your path created by environment variable instead of official plugins path!
My tw5.com looks like that. It also has the paths to several other plugins which do load. So it seemed reasonable to put the new path there. But maybe the environmental variable is only used before the included tiddlers?
I add source/section to the tw5.com-server/tiddlywiki.info file and now I get TWO messages:
paths are /home/mark/github/tw-personal-plugin-library/plugins
Warning: Cannot find plugin 'source/section'
paths are /home/mark/github/tw-personal-plugin-library/themes
paths are /home/mark/github/tw-personal-plugin-library/languages
paths are /home/mark/github/tw-personal-plugin-library/plugins
Warning: Cannot find plugin 'source/section'
paths are /home/mark/github/tw-personal-plugin-library/themes
It seems like it’s ignoring the variable completely. Maybe it has to NOT find plugins before it uses the path? That is, it’s either/or between local paths and using environmental paths?
When I dump the content of envVar I get
vars are TIDDLYWIKI_PLUGIN_PATH
paths are /home/mark/github/tw-personal-plugin-library/plugins
Warning: Cannot find plugin 'source/section'
vars are TIDDLYWIKI_THEME_PATH
paths are /home/mark/github/tw-personal-plugin-library/themes
vars are TIDDLYWIKI_LANGUAGE_PATH
paths are /home/mark/github/tw-personal-plugin-library/languages
vars are TIDDLYWIKI_PLUGIN_PATH
paths are /home/mark/github/tw-personal-plugin-library/plugins
Warning: Cannot find plugin 'source/section'
vars are TIDDLYWIKI_THEME_PATH
paths are /home/mark/github/tw-personal-plugin-library/themes
But when I dump the value of env I get undefined
processed vars are undefined
paths are /home/mark/github/tw-personal-plugin-library/plugins
Warning: Cannot find plugin 'source/section'
processed vars are undefined
paths are /home/mark/github/tw-personal-plugin-library/themes
processed vars are undefined
paths are /home/mark/github/tw-personal-plugin-library/languages
processed vars are undefined
paths are /home/mark/github/tw-personal-plugin-library/plugins
Warning: Cannot find plugin 'source/section'
processed vars are undefined
paths are /home/mark/github/tw-personal-plugin-library/themes
If I manually edit boot.js and insert the path into the searchpaths function – voila! It works. But it should work without that.
So the upshot is that it is not finding the variable that I set. How would I see the environmental variables that it thinks it can see? Or where is ‘process.env’ defined?
Ok. Looks like there’s a new line that needs to be in the documentation. Apparently it wasn’t enough for me to define the environmental variable, I also had to export it.