opened socket in IDE prevents script changes
bdrunrev at gmail.com
Fri Jan 15 15:22:37 EST 2021
- no plugins using sockets
- Business 9.6.1
- no other debuggers/editors in use or used (I have crashed/restarted LC a
few dozen times today)
- no remote debugging
This is just a plain old stack, only a mouseup in a button, everything else
in the stack script.
I'm going to have to look back at my previous socket project to see what I
was doing there that was different.
It seems to me that this is what is going on: LC loads the script & the
socket interaaction makes it impossible for any script change to be
applied. Feels like the engine is simply not "letting go" in order to
reload the script. Very peculiar, as I would expect that closing each of
the open sockets would release whatever was bound and stopping the script
changes from being applied.
Thanks for testing & showing that it's something idiosyncratic to me.
On Fri, Jan 15, 2021 at 4:59 PM Alex Tweedly via use-livecode <
use-livecode at lists.runrev.com> wrote:
> On 15/01/2021 15:30, Bernard Devlin via use-livecode wrote:
> > I'm seeing exactly the same range of behaviours I described earlier for
> > 9.5.1 on Win 10 but with 9.6.1 on OS X.
> > It's very strange that Alex is also editing scripts with sockets
> > opened/closed but not losing changes made in the script editor. I also
> > 3 crashes on OS X within 30 minutes of working on this stack.
> > Alex, are you using the IDE's script editor or some external editor? If
> > you are using that script editor, once you've opened a socket could you
> > a comment to your stack script, apply, close the script editor, then edit
> > the script again to see if the comment has persisted? I have to quit LC
> > make any changes to a stack once I've opened a socket.
> Yes, I'm using standard IDE script editor.
> The added comment persists, both through "apply - close - reopen" and
> "apply - save stack - close editor - reopen", and to stack and card
> > It seems to me that once a socket has been opened that the IDE is no
> > persisting changes. I'm pretty sure I didn't see this behaviour on my
> > previous project using sockets.
> Have to ask
> - do you have any plugins that might use sockets ?
> - I'm using Indy version - let me know if you're on Community /
> Business and I can try that too
> I think :-)
> - do you, or have you, used other editors / debuggers that might
> affect this ?
> - do you, or have you, used remote debugging ?
> That's all the straws I can think of for now.
> > Regards
> > Bernard
> > On Fri, Jan 15, 2021 at 12:21 PM Bernard Devlin <bdrunrev at gmail.com>
> >> Thanks Alex for your quick response.
> >> I'll try with 9.6.1 on Mac. The only other difference between us is
> >> my sockets are interacting with a process outside of LC. But I can't see
> >> why that would make a difference (particularly once I've closed all
> >> sockets, I wouldn't expect sockets to interfere with scripts being
> >> changed).
> >> Regards,
> >> Bernard
> >> On Fri, Jan 15, 2021 at 12:07 PM Alex Tweedly via use-livecode <
> >> use-livecode at lists.runrev.com> wrote:
> >>> I've not seen any such problems - though with 9.6.1 / Mac.
> >>> I've spent most of the last week in the IDE, with two or more stacks
> >>> open (one server, one client - occasionally multiple client stacks) so
> >>> have multiple open sockets (both 'accept'ing and 'open'ed) almost all
> >>> the time, and had no problems with IDE or script editor.
> >>> (I know - that's no consolation, but I thought I'd mention it in case
> >>> 9.6.1 was an option for you and might just help:-)
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode