• SlyEdit_Misc.js error when loading SlyEdit (DCT)

    From Mike Miller@VERT to GitLab issue in main/sbbs on Fri Dec 2 04:21:25 2022
    open https://gitlab.synchro.net/main/sbbs/-/issues/461

    SlyEdit won't load, crashes with:
    `!JavaScript SlyEdit_Misc.js line 2255: TypeError: behaviorSettings.enableTextReplacements.toUpperCase is not a function`


    From the sbbs logfile
    `Dec 2 00:16:28 bbs sbbs: term Node 1 <DaiTengu> append key into keybuf: 0D (\r)
    Dec 2 00:16:29 bbs sbbs: term Node 1 <DaiTengu> append key into keybuf: 0D (\r)
    Dec 2 00:16:29 bbs sbbs: term Node 1 <DaiTengu> Executing external: ?slyedit /sbbs/node1/MSGTMP DCT
    Dec 2 00:16:29 bbs sbbs: term Node 1 <DaiTengu> !JavaScript /sbbs/exec/SlyEdit_Misc.js line 2255: TypeError: behaviorSettings.enableTextReplacements.toUpperCase is not a function
    Dec 2 00:16:30 bbs sbbs: term Node 1 <DaiTengu> '?slyedit /sbbs/node1/MSGTMP DCT' returned 0
    `

    This is after a fresh git pull.


    @nightfox

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Eric Oulashin@VERT to GitLab note in main/sbbs on Fri Dec 2 04:44:09 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/461#note_2901

    I hadn't seen that exact error, but I think I was able to reproduce something similar. I have added some safety checks in there when reading the configuration file which I hope will resolve this issue.

    I'm curious what the value of your enableTextReplacements is in your SlyEdit.cfg?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Mike Miller@VERT to GitLab note in main/sbbs on Fri Dec 2 12:10:23 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/461#note_2902

    weird. I just checked, and it looks like my SlyEdit.cfg is exactly the same as what's in git under `ctrl/SlyEdit.cfg`

    `enableTextReplacements=true`

    That said, I merged your branch into my local working branch and it all seems well again. Thanks!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Eric Oulashin@VERT to GitLab note in main/sbbs on Fri Dec 2 14:03:37 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/461#note_2904

    I just realized a change I needed to make in SlyEdit_Misc.js. As it was, it would ignore the 'true' setting.. I've pushed up a change that should fix that, so you'll want to merge the branch into your local again.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Eric Oulashin@VERT to GitLab note in main/sbbs on Fri Dec 2 14:58:10 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/461#note_2906

    I'll close this issue, as SlyEdit is no longer crashing with the error described.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Eric Oulashin@VERT to GitLab issue in main/sbbs on Fri Dec 2 14:58:10 2022
    close https://gitlab.synchro.net/main/sbbs/-/issues/461

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net