Ah, I didn't realize until just now that jpath didn't like ~root at all.
So the easier workaround is to teach it about ~root:
SystemFolders_j_=: SystemFolders_j_ , 'root' ; '/'
On 2020-08-22 22:12, Julian Fondren wrote:
Out of the box, with a fresh install and all addons installed,
load 'graphics/d3/demo'
get file does not exist:
~root/home/jfondren/j/j901/addons/graphics/d3/d3.v2.min.js
*** response not sent for
~root/home/jfondren/j/j901/addons/graphics/d3/d3.v2.min.js
*** html409 Conflict
... more such errors
And interacting with the opened tabs results in errors like:
ev_showmap_click_ajax(d) failed: ReferenceError: d3 is not defined
stracing the JHS process shows that it's not doing jpath resolution:
22:03:05 recvfrom(4, "GET
/~root/home/jfondren/j/j901/addons/graphics/d3/d3.v2.min.js
HTTP/1.1\r\nHost: localhost:65001\r\nConnect"..., 10000, 0, NULL,
NULL) = 445
22:03:05 openat(AT_FDCWD,
"~root/home/jfondren/j/j901/addons/graphics/d3/d3.v2.min.js",
O_RDONLY) = -1 ENOENT (No such file or directory)
A workaround is to create ~root as a symlink in jhs's working
directory:
[j901]$ ln -s / '~root'
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm