Subj : Variables declared in required libraries
To   : Digital Man
From : Nightfox
Date : Wed Sep 25 2019 01:37 pm

Hi DM,

For SlyEdit, there are some global variables I define in one of the required()'d scripts (i.e., in SlyEdit_Misc.js) that are used in SlyEdit.js, and it has always worked fine.

Today I updated my Synchronet binaries to the latest (September 25th) built binaries (for Windows), and also updated my JavaScript scripts from CVS.  Then I noticed that when I try to run SlyEdit, it shows one of the variables is not defined - it's one of the variables defined in SlyEdit_Misc.js.  For SlyEdit.js line 150, I get an error saying gUserSettingsFilename is not defined.  gUserSettingsFilename is declared in SlyEdit_Misc.js as follows:

var gUserSettingsFilename = backslash(system.data_dir + "user") + format("%04d", user.number) + ".SlyEdit_Settings";

I thought it might be my Synchronet binaries, so I reverted back to my previous binaries (from September 7th), but I'm having the same problem.

If I copy the declaration of gUserSettingsFilename into SlyEdit.js, I then see a similar error that something else (a function declared in SlyEdit_Misc.js) isn't defined in SlyEdit.js

SlyEdit was working fine before I updated my binaries & .js files.  I temporarily switched to another editor so I could type this message.  Do you know what might have changed that may have caused this?

Nightfox

---
� Synchronet � Digital Distortion: digitaldistortionbbs.com