Fwd: file caching (in scripting plugin)
Bjoern Hassler
bjohas+mw at gmail.com
Wed Jun 21 11:32:00 UTC 2017
Dear all,
just wondering whether there's any thoughts on this!
Basically it seems that the object persists beyond running the script, so
e.g. running var a=require("something.js") means that a is now defined, and
if something.js changes, this is not picked up. "delete a" doesn't work
though.
Many thanks!
Bjoern
---------- Forwarded message ----------
From: Bjoern Hassler <bjohas at gmail.com>
Date: 26 May 2017 at 11:05
Subject: file caching (in scripting plugin)
To: josm-dev at openstreetmap.org
Dear all,
the scripting plugin can load files from disk, e.g. in js via
require("somefile.js"). However, once you've run your script once, and then
change somefile.js, JOSM doesn't pick up the changes. You have to either
restart JOSM, or change the name of somefile.js.
This is unlike the Map Paint / MapCSS feature, which reloads any css files
as soon as they change on disk.
Do you have any advice on how this behaviour could be changed? I've had a
chat with https://github.com/Gubaer/josm-scripting-plugin and we'd
appreciate any tips!
Many thanks!
Bjoern
More information about the josm-dev
mailing list