Problem with Script Editor in LC 9.6.2 (rc3)

HENRY LOWE hlowe at me.com
Wed Mar 24 18:34:17 EDT 2021


Thanks Matthias. I am not using any 3rd party text tools or plug-ins.

If anyone else can confirm this issue I will submit a bug report.

Henry

> On Mar 24, 2021, at 3:17 PM, matthias rebbe via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Henry,
> 
> i had a similar problem already with previous LC releases. In my case a 3rd party tool called Popclip was the culprit.
> Popclip is automatically activated as soon as some text is selected. So when i selected text in the editor some strange things happened, for example the whole text was selected and so on.
> Fortunately Popclip allows to exclude apps from being monitored by it, so i just had to add Livecode to the list of apps that should be excluded from PopClip actions.
> 
> 
> Regards,
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 24.03.2021 um 22:58 schrieb HENRY LOWE via use-livecode <use-livecode at lists.runrev.com>:
>> 
>> Thanks Richard. I turned off the line number option and the problem still occurs. I can reproduce this with any script that extend beyond the bottom of the script editor pane. 
>> 
>> Select the first line of a script and then (holding the mouse button down) continue dragging down to select additional lines until you are reach the last visible line. Continue to drag down to get the script editor to autoscroll and the scrolling now continues automatically until the entire script is selected. Cannot stop the scroll until the entire script is selected.
>> 
>> Looks like a new bug to me.
>> 
>> Henry
>> 
>>> On Mar 24, 2021, at 2:45 PM, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
>>> 
>>> Henry Lowe wrote:
>>> 
>>>> If I select text in the LC Script Editor and then drag down to select
>>>> additional text (e.g. I want to select an entire handler), the editor
>>>> starts to autoscroll and does not stop until it reaches the end of the
>>>> script text. Nothing I do stops the scrolling and text selection. I am
>>>> locked out of LC, which is unresponsive. Activity Monitor shows that
>>>> LC is using 100% of the CPU while in this ‘autoscrolling’ state. Once
>>>> the scroll reaches the end of the text in the editor pane, I get
>>>> control of LC again.
>>>> 
>>>> This is only happening with a very large script 5900 lines of text
>>>> (238K). I am in the progress of breaking this script up into a series
>>>> of smaller scripts.
>>>> 
>>>> I suspect that this issue is related to the large amount of text in
>>>> the script but have not seen this before with this script until I
>>>> updated to LC 9.6.2 (rc3).
>>>> 
>>>> Can anyone confirm this issue?
>>> 
>>> I have seen similar issues on Ubuntu.  I believe it may be related to the complicated way the line number field is kept in sync.
>>> 
>>> The only workaround I've tested is writing my own script editor, thankfully subsidized by a generous soul who commissioned it.  It's not yet ready for prime time, though, so I have no immediate solution for LC SE users.
>>> 
>>> 
>>>> Also, is there an upper limit to the size of a LC script?
>>> 
>>> There should not be, at least within reasonable memory limits.
>>> 
>>> And if there were, it shouldn't be anywhere near as short as 5900 lines. I've been stress-testing my with 20k-line scripts.
>>> 
>>> The LC field object is quite good.  Any script editor using it should be quite good too.
>>> 
>>> -- 
>>> Richard Gaskin
>>> Fourth World Systems
>>> Software Design and Development for the Desktop, Mobile, and the Web
>>> ____________________________________________________________________
>>> Ambassador at FourthWorld.com                http://www.FourthWorld.com
>>> 
>>> _______________________________________________
>>> 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:
>> 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:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list