I get
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.