TiddlyMap now kills TW in some cases

I have TiddlyMap installed on four TW instances. On two of them, they crash.

A week or three ago, I stepped through the process of updating some Node.js TW’s. Looked like everything went fine on all of them, including a successful OS-level restart.

Today, I did a base OS update (Gentoo), that also seemed to go fine, but now all my TW instances that have TiddlyMap included are throwing errors. Output from the base script is just this:

Warning: Cannot find plugin ‘felixhayashi/tiddlymap’
Warning: Cannot find plugin ‘felixhayashi/vis’
Warning: Cannot find plugin ‘felixhayashi/hotzone’
Warning: Cannot find plugin ‘felixhayashi/topstoryview’

Past that point, in two cases, TW starts up fine, probably because TiddlyMap is present but hasn’t yet been used.

On one case, TW fails, throwing an error about vis.js

[…]
Error executing boot module $:/plugins/felixhayashi/tiddlymap/js/lib/utils/tmap: {“code”:“MODULE_NOT_FOUND”,“requireStack”:["/usr/lib64/node_modules/tiddlywiki/boot/boot.js","/usr/lib64/node_modules/tiddlywiki/tiddlywiki.js"]}

node:internal/modules/cjs/loader:998
throw err;
^

Error: Cannot find module ‘$:/plugins/felixhayashi/vis/vis.js’
Require stack:

  • /usr/lib64/node_modules/tiddlywiki/boot/boot.js
  • /usr/lib64/node_modules/tiddlywiki/tiddlywiki.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    […]

In the case where tiddlymap was used the most, TW immediately crashes, doesn’t output those lines, no further info on the shell script at all.

On all four cases, the ‘tiddlywiki.info’ file is the same:

[…]
“plugins”: [
[…]
“felixhayashi/tiddlymap”,
“felixhayashi/vis”,
“felixhayashi/hotzone”,
“felixhayashi/topstoryview”
],
[…]

I’m guessing that I must have missed something basic. Clue?

Thanks,
Michael

TiddlyMap is great, but it would be desirable to have it tied more tight to the TW-development. It is a pity that its creator Felix as far as I know is not present in this forum yet.

I guess this uncertainty is preventing the development in that direction.
So far TiddlyMap is much more powerful and convenient than eCharts, yet eCharts seems to have better maintenance. To my mind this issue is so important that it is nearly a steering committee question.

@JanJo Tiddlymap is currently maintained by @Flibbles. He is frequently pushing bug fixes via github

Great,
and a great order of merits to @Flibbles grafik

Get the latest release from this link

2 Likes

Ouch! This is bad news – our goal of maintaining backwards compatibility is precisely so that useful, venerable tools like TiddlyMap continue to work well with new versions of the core.

The only way that we can avoid these problems is for the community to help us with testing new versions of TiddlyWiki while they are in prerelease so that we can catch any problems. In particular, it’s really helpful if users that depend on lots of plugins can try a test upgrade when we announce an imminent release.

2 Likes

Hey all,

Just double-checked. Tiddlymap (v0.17.15) seems to work fine with the latest release of TiddlyMap.

@Michael_Jinks, looking at your errors, it looks like it’s less a problem with TiddlyMap, and more that the plugins aren’t installed correctly. Not sure what you’re using to update, but I haven’t even thought of Linux of Gentoo while working on TiddlyMap, so if you’re using some kind of package manager, it probably doesn’t have access to the latest versions.

2 Likes

Did you set the TW environment variables? May be they have been lost with the OS updates.
see:https://tiddlywiki.com/#Environment%20Variables%20on%20Node.js

Thanks @Flibbles that’s a relief. I didn’t know that you had taken over maintenance of TiddlyMap, that’s great news.

“TiddlyMap now kills TW in some cases” - TiddlyWiki is dead. Long live TiddlyWiki.

Ding! That’s what I was failing to recollect. If I’d gone to my ‘…/felixhayashi/tiddlymap/’ directory I’d have found ‘plugin.info’, which points at “GitHub - felixhayashi/TW5-TiddlyMap: Map drawing and topic visualization for your wiki”.

From that I learn that what I’m running now is ‘0.17.8+10010’, while at GitHub I find ‘0.17.15+10019’.

I’m guessing that when I install the latest version the trouble will be gone. Thanks.

“Taken over” is a strong way of putting it, but yeah. Too much of what I do depends on TiddlyMap working correctly.

3 Likes