Autocomplete toggle?

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Autocomplete toggle?

Tom Glod via use-livecode
Apologies Monte, I'm sure autocomplete will be handy at some point, but
is there a command I can issue in the message box to turn it off for a
while?

Yesterday it went amok and I had to quit LC and restart to get normal
operation back. In those situations it would be good to be able to turn
it off. I don't have a recipe but I think it may have been related to
remote debugging. As near as I can remember:

My Android phone was cabled to the Mac and when asked, I clicked "yes"
to start a remote debugging session. In this case none of my breakpoints
triggered (not the fault of remote debugging, my breakpoints were in
places that didn't run) so I quit the app. LC never indicated I had
disconnected.

I began to edit a script and the phone went to sleep. There was severe
lag, the script editor started missing keystrokes and would then add
them to some other place in the line. Every attempted correction caused
other characters to be inserted somewhere else. I tried to add a comment
to a line and autocomplete kept inserting text for me though I didn't
select any of the suggestions (shouldn't it ignore anything to the right
of a comment delimiter?)

Eventually the script got so mangled I just quit without saving. I think
if I had been able to turn off autocomplete from the message box I could
have corrected and saved my work.

We probably also need a way to turn off remote debugging when we're done
with it, just in case.

LC 9.0 dp 9
Mac OS X Sierra

--
Jacqueline Landman Gay         |     [hidden email]
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Autocomplete toggle?

Tom Glod via use-livecode

> On 27 Sep 2017, at 9:12 am, J. Landman Gay via use-livecode <[hidden email]> wrote:
>
> Apologies Monte, I'm sure autocomplete will be handy at some point, but is there a command I can issue in the message box to turn it off for a while?

We have added a menu Edit > Options > Autocomplete to toggle it. It’s in 9.0 DP 9 and will be in 8.2 DP 2.
>
> Yesterday it went amok and I had to quit LC and restart to get normal operation back. In those situations it would be good to be able to turn it off.

Well those situations shouldn’t happen. Sorry about that.

> I don't have a recipe but I think it may have been related to remote debugging. As near as I can remember:
>
> My Android phone was cabled to the Mac and when asked, I clicked "yes" to start a remote debugging session. In this case none of my breakpoints triggered (not the fault of remote debugging, my breakpoints were in places that didn't run) so I quit the app. LC never indicated I had disconnected.

Hmm… it should do that when the socket is closed as the app is shutting down…
>
> I began to edit a script and the phone went to sleep. There was severe lag, the script editor started missing keystrokes and would then add them to some other place in the line. Every attempted correction caused other characters to be inserted somewhere else.

Wow that doesn’t sound good. I hope we can get to the bottom of it so it doesn’t occur again. Are you on 8.2 or 9.0?

> I tried to add a comment to a line and autocomplete kept inserting text for me though I didn't select any of the suggestions

What kind of text? The same as you are entering but added elsewhere too or something else?

> (shouldn't it ignore anything to the right of a comment delimiter?)

It should probably only present completions that are suitable within a comment context. I’ll need to think about that a bit.

>
> Eventually the script got so mangled I just quit without saving. I think if I had been able to turn off autocomplete from the message box I could have corrected and saved my work.

What this sounds like (at least I think it sounds like) is an autocomplete placeholder got messed up somehow causing typing in one place to also add the text elsewhere. If that’s the case then turning autocomplete off once it’s messed up won’t really help. There’s been a bit of movement in this code since DP 2 so it may be that your issue is fixed already. If you see it again do you think you could take some screen recording of it and send to me?
>
> We probably also need a way to turn off remote debugging when we're done with it, just in case.

Remote debugging might be a bit of a red herring here. It shouldn’t be doing anything unless there’s stuff coming in over the socket.

Cheers

Monte

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Autocomplete toggle?

Tom Glod via use-livecode
On 9/26/17 8:45 PM, Monte Goulding via use-livecode wrote:
>
>> On 27 Sep 2017, at 9:12 am, J. Landman Gay via use-livecode <[hidden email]> wrote:
>>
>> Apologies Monte, I'm sure autocomplete will be handy at some point, but is there a command I can issue in the message box to turn it off for a while?
>
> We have added a menu Edit > Options > Autocomplete to toggle it. It’s in 9.0 DP 9 and will be in 8.2 DP 2.

Fantastic, thank you. I don't see that in the release notes. I see there
are several other toggles too, which is cool. Choice is good.

>> My Android phone was cabled to the Mac and when asked, I clicked "yes" to start a remote debugging session. In this case none of my breakpoints triggered (not the fault of remote debugging, my breakpoints were in places that didn't run) so I quit the app. LC never indicated I had disconnected.
>
> Hmm… it should do that when the socket is closed as the app is shutting down…

I remember it used to, back before it stopped asking me at all. I wonder
if it's due to the lack of messages sent with the hardware buttons.
There's no notice of any kind for the Home and App Switcher keys. And
the Back key is iffy.

http://quality.livecode.com/show_bug.cgi?id=19420
http://quality.livecode.com/show_bug.cgi?id=20456

>>
>> I began to edit a script and the phone went to sleep. There was severe lag, the script editor started missing keystrokes and would then add them to some other place in the line. Every attempted correction caused other characters to be inserted somewhere else.
>
> Wow that doesn’t sound good. I hope we can get to the bottom of it so it doesn’t occur again. Are you on 8.2 or 9.0?

This was in 9.0 dp 9.

>
>> I tried to add a comment to a line and autocomplete kept inserting text for me though I didn't select any of the suggestions
> What kind of text? The same as you are entering but added elsewhere too or something else?

Here's the whole line. I first added the two hyphens at the front, then
tried to add the trailing hyphenated comment at the end which is where
it went off the rails:

  -- pass scrollerDidScroll -- jg: don't pass, it blocks scrolling when
there are nested behaviors

It simply wouldn't accept my comment; I ended up typing it in BBEdit and
pasting it into the script. If I remember right, it didn't like anything
after my initials with the colon. It would miss a keystroke, I'd keep
typing, and then notice it had placed a character in the middle of a
word a couple of words back. I'd delete the extra character, set the
insertion point to where I was typing originally, type the letter again,
and it would again insert it back somewhere else. Sometimes it missed
keystrokes entirely and they never did show up. Meanwhile the suggestion
list was popping up and down repeatedly though I didn't interact with it.

The lag was severe but intermittent, maybe 2 seconds or so before a
keystroke appeared in the script text. That's why I suspected something
was going on with the debugging socket. The script I was editing was
short, only about 60 lines, so it didn't seem like a delay due to text
chunking.

It would put up suggestions when I wanted to type "don't" and then add
the "t" a couple of words back. It wasn't possible to type "scrolling".
I never did make it to the word "behaviors", I gave up after a few
minutes and typed it in BBEdit.

>> (shouldn't it ignore anything to the right of a comment delimiter?)
>
> It should probably only present completions that are suitable within a comment context. I’ll need to think about that a bit.


I'd encourage ignoring comments. It's similar to a problem we've had for
ages when I want to add a comment like this:

   doSomething  -- else the world ends

I have to change those to:
   doSomething -- otherwise the world ends


>> Eventually the script got so mangled I just quit without saving. I think if I had been able to turn off autocomplete from the message box I could have corrected and saved my work.
>
> What this sounds like (at least I think it sounds like) is an autocomplete placeholder got messed up somehow causing typing in one place to also add the text elsewhere. If that’s the case then turning autocomplete off once it’s messed up won’t really help. There’s been a bit of movement in this code since DP 2 so it may be that your issue is fixed already. If you see it again do you think you could take some screen recording of it and send to me?

I'd need to find some screen recording software. Preferably free, if you
know of anything.

>> We probably also need a way to turn off remote debugging when we're done with it, just in case.
>
> Remote debugging might be a bit of a red herring here. It shouldn’t be doing anything unless there’s stuff coming in over the socket.

I could be falsely assigning cause and effect. Most of my session
involved testing an app on a tethered phone, so debugging was the main
thing that was different, and I had no trouble editing the script until
after I started remote debugging it. But it could certainly be something
else.

--
Jacqueline Landman Gay         |     [hidden email]
HyperActive Software           |     http://www.hyperactivesw.com


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Autocomplete toggle?

Tom Glod via use-livecode

> On 27 Sep 2017, at 3:16 pm, J. Landman Gay via use-livecode <[hidden email]> wrote:
>
> On 9/26/17 8:45 PM, Monte Goulding via use-livecode wrote:
>>> On 27 Sep 2017, at 9:12 am, J. Landman Gay via use-livecode <[hidden email]> wrote:
>>>
>>> Apologies Monte, I'm sure autocomplete will be handy at some point, but is there a command I can issue in the message box to turn it off for a while?
>> We have added a menu Edit > Options > Autocomplete to toggle it. It’s in 9.0 DP 9 and will be in 8.2 DP 2.
>
> Fantastic, thank you. I don't see that in the release notes.

Look for 20386

>>> My Android phone was cabled to the Mac and when asked, I clicked "yes" to start a remote debugging session. In this case none of my breakpoints triggered (not the fault of remote debugging, my breakpoints were in places that didn't run) so I quit the app. LC never indicated I had disconnected.
>> Hmm… it should do that when the socket is closed as the app is shutting down…
>
> I remember it used to, back before it stopped asking me at all. I wonder if it's due to the lack of messages sent with the hardware buttons. There's no notice of any kind for the Home and App Switcher keys. And the Back key is iffy.
>
> http://quality.livecode.com/show_bug.cgi?id=19420
> http://quality.livecode.com/show_bug.cgi?id=20456 <http://quality.livecode.com/show_bug.cgi?id=20456>

Hmm…I'm not sure. It needs investigation.
>
>>>
>>> I began to edit a script and the phone went to sleep. There was severe lag, the script editor started missing keystrokes and would then add them to some other place in the line. Every attempted correction caused other characters to be inserted somewhere else.
>> Wow that doesn’t sound good. I hope we can get to the bottom of it so it doesn’t occur again. Are you on 8.2 or 9.0?
>
> This was in 9.0 dp 9.

OK

>
>>> I tried to add a comment to a line and autocomplete kept inserting text for me though I didn't select any of the suggestions
>> What kind of text? The same as you are entering but added elsewhere too or something else?
>
> Here's the whole line. I first added the two hyphens at the front, then tried to add the trailing hyphenated comment at the end which is where it went off the rails:
>
> -- pass scrollerDidScroll -- jg: don't pass, it blocks scrolling when there are nested behaviors
>
> It simply wouldn't accept my comment; I ended up typing it in BBEdit and pasting it into the script. If I remember right, it didn't like anything after my initials with the colon. It would miss a keystroke, I'd keep typing, and then notice it had placed a character in the middle of a word a couple of words back. I'd delete the extra character, set the insertion point to where I was typing originally, type the letter again, and it would again insert it back somewhere else. Sometimes it missed keystrokes entirely and they never did show up. Meanwhile the suggestion list was popping up and down repeatedly though I didn't interact with it.
>
> The lag was severe but intermittent, maybe 2 seconds or so before a keystroke appeared in the script text. That's why I suspected something was going on with the debugging socket. The script I was editing was short, only about 60 lines, so it didn't seem like a delay due to text chunking.
>
> It would put up suggestions when I wanted to type "don't" and then add the "t" a couple of words back. It wasn't possible to type "scrolling". I never did make it to the word "behaviors”,

It really sounds like things were going haywire. Sorry about that! It’s feasible there were execution errors on IDE stacks that were obscured by gRevDevelopment false.

> I gave up after a few minutes and typed it in BBEdit.

I can see why!

>
>>> (shouldn't it ignore anything to the right of a comment delimiter?)
>> It should probably only present completions that are suitable within a comment context. I’ll need to think about that a bit.
>
>
> I'd encourage ignoring comments. It's similar to a problem we've had for ages when I want to add a comment like this:
>
>  doSomething  -- else the world ends
>
> I have to change those to:
>  doSomething -- otherwise the world ends
>
>
>>> Eventually the script got so mangled I just quit without saving. I think if I had been able to turn off autocomplete from the message box I could have corrected and saved my work.
>> What this sounds like (at least I think it sounds like) is an autocomplete placeholder got messed up somehow causing typing in one place to also add the text elsewhere. If that’s the case then turning autocomplete off once it’s messed up won’t really help. There’s been a bit of movement in this code since DP 2 so it may be that your issue is fixed already. If you see it again do you think you could take some screen recording of it and send to me?
>
> I'd need to find some screen recording software. Preferably free, if you know of anything.

If you are on a Mac then you can use quicktime player.
>
>>> We probably also need a way to turn off remote debugging when we're done with it, just in case.
>> Remote debugging might be a bit of a red herring here. It shouldn’t be doing anything unless there’s stuff coming in over the socket.
>
> I could be falsely assigning cause and effect. Most of my session involved testing an app on a tethered phone, so debugging was the main thing that was different, and I had no trouble editing the script until after I started remote debugging it. But it could certainly be something else.

Well… I’m not sure at this stage but I _really_ want to fix it so if we can come up with a recipe it would be great. I’ll review the text entry code again to see if I can spot anything.

Cheers

Monte

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Autocomplete toggle?

Tom Glod via use-livecode

> On 27 Sep 2017, at 3:45 pm, Monte Goulding via use-livecode <[hidden email]> wrote:
>
>> Here's the whole line. I first added the two hyphens at the front, then tried to add the trailing hyphenated comment at the end which is where it went off the rails:
>>
>> -- pass scrollerDidScroll -- jg: don't pass, it blocks scrolling when there are nested behaviors

Is it possible that one or the other (or both) of these comments were inserted via autocomplete completion? It would have added a comment placeholder that you would have needed to delete. I’m wondering if deleting it didn’t clear the placeholder right…

Cheers

Monte
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Autocomplete toggle?

Tom Glod via use-livecode
On 9/27/17 12:58 AM, Monte Goulding via use-livecode wrote:
>
>> On 27 Sep 2017, at 3:45 pm, Monte Goulding via use-livecode <[hidden email]> wrote:
>>
>>> Here's the whole line. I first added the two hyphens at the front, then tried to add the trailing hyphenated comment at the end which is where it went off the rails:
>>>
>>> -- pass scrollerDidScroll -- jg: don't pass, it blocks scrolling when there are nested behaviors
>
> Is it possible that one or the other (or both) of these comments were inserted via autocomplete completion? It would have added a comment placeholder that you would have needed to delete. I’m wondering if deleting it didn’t clear the placeholder right…

I don't think that's it. I typed both sets of hyphens manually. The
original line of code was written in LC 8.x and I was updating it in
9.0dp9. I added the two hyphens at the front manually, then tried to add
the second comment at the end manually.

--
Jacqueline Landman Gay         |     [hidden email]
HyperActive Software           |     http://www.hyperactivesw.com


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Autocomplete toggle?

Tom Glod via use-livecode
In reply to this post by Tom Glod via use-livecode
On 27 Sep 2017, at 7:16, J. Landman Gay via use-livecode wrote:

>> What this sounds like (at least I think it sounds like) is an
>> autocomplete placeholder got messed up somehow causing typing in one
>> place to also add the text elsewhere. If that’s the case then
>> turning autocomplete off once it’s messed up won’t really help.
>> There’s been a bit of movement in this code since DP 2 so it may be
>> that your issue is fixed already. If you see it again do you think
>> you could take some screen recording of it and send to me?
>
>
> I'd need to find some screen recording software. Preferably free, if
> you know of anything.

Quicktime Player can do it. Nothing fancy but is free. I’ve been using
it regularly to record screen activity for troubleshooting. Make sure to
check recording the mouse clicks, otherwise it is often hard to see what
you ate doing.

Robert
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Autocomplete toggle?

Tom Glod via use-livecode
Thanks. I wish it recorded sound, it would be helpful to say "now I'm typing a
D, look 3 words back for the insertion" but that's what I'll probably use.

@Monte, I will have some free time next week, I'll see if I can reproduce
the problem then.

---
Jacqueline Landman Gay         |     [hidden email]
HyperActive Software           |     http://www.hyperactivesw.com



On September 27, 2017 9:17:10 AM Robert Brenstein via use-livecode
<[hidden email]> wrote:

> On 27 Sep 2017, at 7:16, J. Landman Gay via use-livecode wrote:
>
>>> What this sounds like (at least I think it sounds like) is an
>>> autocomplete placeholder got messed up somehow causing typing in one
>>> place to also add the text elsewhere. If that’s the case then
>>> turning autocomplete off once it’s messed up won’t really help.
>>> There’s been a bit of movement in this code since DP 2 so it may be
>>> that your issue is fixed already. If you see it again do you think
>>> you could take some screen recording of it and send to me?
>>
>>
>> I'd need to find some screen recording software. Preferably free, if
>> you know of anything.
>
> Quicktime Player can do it. Nothing fancy but is free. I’ve been using
> it regularly to record screen activity for troubleshooting. Make sure to
> check recording the mouse clicks, otherwise it is often hard to see what
> you ate doing.
>
> Robert
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Autocomplete toggle?

Tom Glod via use-livecode

> On 28 Sep 2017, at 3:32 am, J. Landman Gay via use-livecode <[hidden email]> wrote:
>
> Thanks. I wish it recorded sound, it would be helpful to say "now I'm typing a
> D, look 3 words back for the insertion" but that's what I'll probably use.
>
> @Monte, I will have some free time next week, I'll see if I can reproduce the problem then.

Great, thanks

Cheers

Monte
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Autocomplete toggle?

Tom Glod via use-livecode
In reply to this post by Tom Glod via use-livecode
> On Sep 27, 2017, at 10:32 AM, J. Landman Gay via use-livecode <[hidden email]> wrote:
>
> Thanks. I wish it recorded sound, it would be helpful to say "now I'm typing a
> D, look 3 words back for the insertion" but that's what I'll probably use.

I am a bit behind on this list. So apologies if this has already come up. Give ScreenFlow a try.
https://www.telestream.net/screenflow/overview.htm <https://www.telestream.net/screenflow/overview.htm>

It records the screen, audio, keyboard and mouseclicks, you can easily add text notation. Those are the basics. It does a lot more should you need it.

It has a super simple video and audio editor. It costs $129. Since your time is worth money (especially yours Jacque), it is practically free. Go ahead and get it. You deserve it.  :)


Best regards,

Mark Talluto
livecloud.io <http://livecloud.io/>
nursenotes.net <http://nursenotes.net/>
canelasoftware.com <http://www.canelasoftware.com/>

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: Autocomplete toggle?

Tom Glod via use-livecode
I use Movavi for screen capture and quick editing. It is inexpensive, and also has a very nice video format converter.
http://m.movavi.com/?gclid=EAIaIQobChMIlZDa0qbX1gIViG5-Ch0R5gwwEAAYASAAEgL_wvD_BwE
Best,
Bill

William Prothero
http://es.earthednet.org

On Oct 4, 2017, at 8:28 AM, Mark Talluto via use-livecode <[hidden email]> wrote:

>> On Sep 27, 2017, at 10:32 AM, J. Landman Gay via use-livecode <[hidden email]> wrote:
>>
>> Thanks. I wish it recorded sound, it would be helpful to say "now I'm typing a
>> D, look 3 words back for the insertion" but that's what I'll probably use.
>
> I am a bit behind on this list. So apologies if this has already come up. Give ScreenFlow a try.
> https://www.telestream.net/screenflow/overview.htm <https://www.telestream.net/screenflow/overview.htm>
>
> It records the screen, audio, keyboard and mouseclicks, you can easily add text notation. Those are the basics. It does a lot more should you need it.
>
> It has a super simple video and audio editor. It costs $129. Since your time is worth money (especially yours Jacque), it is practically free. Go ahead and get it. You deserve it.  :)
>
>
> Best regards,
>
> Mark Talluto
> livecloud.io <http://livecloud.io/>
> nursenotes.net <http://nursenotes.net/>
> canelasoftware.com <http://www.canelasoftware.com/>
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode