Subj : src/sbbs3/js_internal.c To : Nightfox From : Digital Man Date : Fri Jul 21 2023 04:38 pm Re: src/sbbs3/js_internal.c By: Nightfox to Rob Swindell (on Windows) on Fri Jul 21 2023 02:55 pm > Re: src/sbbs3/js_internal.c > By: Rob Swindell (on Windows) to Git commit to main/sbbs/master on Fri Jul > 21 2023 12:42 pm > > RS> Fix js.exec() error message when specified script can't be found > > RS> If the search up the scope tree for js.exec_dir fails, the script > RS> 'path' would be left blank leading to a weird error message. > RS> e.g. !JavaScript default.js line 249: Error: Script file () does not > RS> exist > > I just did an update and rebuilt my Synchronet binaries (and updated my > default.js as well). That seems to fix the issue we were seeing with > DDMsgReader and default.js. But now I'm seeing the same error in a > different situation. > > In my command shell (custom JS), I have this command to run my file area > chooser: > > bbs.exec("?../xtrn/DigDist/AreaChoosers/DDFileAreaChooser.js"); > > That works. However, I also have a JS script in my sbbs/mods directory that > I use as a test sandbox to try out new things, which I usually run from my > main menu. I tried using the same line above in my test script to run my > DDFileAreaChooser.js, but when I run that, I get the error: > > !JavaScript DigitalDistortionTest.js line 8: Error: Script file () does not > exist That error message looks to be from js.exec(), not bbs.exec(). The error message itself (the empty parens) was fixed in git today. It doesn't appear you have that fix. > It seems this might be a recent issue, as I've done similar things in my > sandbox test script, and I don't remember seeing this before. No recent changes to either js.exec() or bbs.exec() that I'm aware of (other than the error message fix I just mentioned). -- digital man (rob) Sling Blade quote #10: Morris: I stand on the hill, not for thrill, but for the breath of a fresh kill Norco, CA WX: 89.0øF, 30.0% humidity, 11 mph SSE wind, 0.00 inches rain/24hrs .