Script Editor freezes in Windows 10 (was Can't edit scripts in DataGrid group in Windows 10)

Martin Koob mkoob at rogers.com
Fri Oct 23 09:44:59 EDT 2020


Hi everyone.

Thanks for all the suggestions.  I tried them all but no joy.

I figured out what caused it.   I am using Monte’s lcVCS plugin to keep the project  in bitbucket and I was trying to work on it on the Mac and Windows by making changes on the Mac and then updating the stacks by exporting to lcVCS, committing and pushing the changes to bitBucket and then on the Windows Machine fetching the changes and pulling them to the repo on my Windows machine and then use lcVCS to create stacks from files.   I recently finished a branch and was merging it back into my version  branch on the Mac.   When I tried to fetch the changes on Windows there were lots of conflicts.   I don’t really understand git process really well for merging etc so I kind of hacked away at it till I got the two repos back in sync with the origin so in the process I must have ended up corrupting some of the scripts in the stack so they would not load. The stack would open and run properly which was odd…

So to fix it just zipped up the version on my Mac, Copied it over to the PC and opened it there and it worked.   So now I am back in business.

Thanks for for your time in responding.  Your responses got me to look at the problem from a few different angles till I could see the light through the cracks.

Martin.


> On Oct 23, 2020, at 8:09 AM, matthias rebbe via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Martin,
> i am not sure if the freezes are also caused by this, but what Antivirus Software are you using. A 3rd party or Microsoft Defender?
> If the latter then please try to exclude the Livecode program folder  and its support folders (like preferences) from realtime scanning in MS Defender.
> 
> There were some reports from users that Microsoft Defender slowed down Livecode, especially when using the Script Editor.
> 
> Regards,
> Matthias
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 23.10.2020 um 02:30 schrieb Martin Koob via use-livecode <use-livecode at lists.runrev.com>:
>> 
>> Another bit of info regarding the length of script where this happens.
>> 
>> I have been going through the project browser trying to open small scripts then opening those with more and more lines.   I found that a script with 53 lines opens, a script with 62 lines freezes.
>> 
>> anyway.  Down with this for tonight.  Hope someone has some ideas as to what might be going on and how to solve it.
>> 
>> Martin
>> 
>> 
>>> On Oct 22, 2020, at 8:16 PM, Martin Koob via use-livecode <use-livecode at lists.runrev.com> wrote:
>>> 
>>> Hi again,
>>> 
>>> Sorry just re-read my previous email and realized it is not clear.
>>> 
>>> I meant to say that  is that I get the same issue where the IDE stops responding when I try to edit the main stack script too.  So it is not a strictly DataGrid issue.
>>> 
>>> Martin
>>> 
>>>> On Oct 22, 2020, at 8:05 PM, Martin Koob via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>> 
>>>> Hi
>>>> 
>>>> Just to follow up.  It is not just happening in a DataGrid group script.  I just opened a main stack script.  It has almost 600 lines.
>>>> 
>>>> Something Odd going on.  I am just new to using LiveCode on Windows as I am now working on an application  for release on Mac and Windows.  However I have edited many of the scripts in this project before and have never seen this.  
>>>> 
>>>> Again if anyone has ideas as to what might be happening or how to trouble shoot that would really be appreciated.
>>>> 
>>>> Martin
>>>> 
>>>>> On Oct 22, 2020, at 5:19 PM, Martin Koob <mkoob at rogers.com> wrote:
>>>>> 
>>>>> Hi all
>>>>> 
>>>>> Maybe this is not good practice but I have DataGrids with script in the group that contains the DataGrid in addition to the behaviour script of the DataGrid.   So to edit the script in the DataGrid group I just select the Datagrid group I right click on the DataGrid and select the ‘Edit Script’ menu item.   
>>>>> 
>>>>> This works fine on the mac.    I just tried this on Windows 10 with LiveCode 9.6 and when I try to open the same DataGrid following the same process the script editor opens but it does not load the script.  In fact LiveCode becomes unresponsive. The script editor dims as if disabled and the cursor when hovering over the script editor or any other LiveCode windows  is the hour glass cursor.
>>>>> 
>>>>> If I click on the ‘x’ to close the LiveCode project I get the dialog that says.
>>>>> 
>>>>> LiveCode for Windows is not responding
>>>>> If you close the program, you might lose information.
>>>>> —>Close the Program
>>>>> —>Wait for the program to respond.
>>>>> 
>>>>> Eventually I just select ‘Close the program’ since the program never responds.
>>>>> 
>>>>> I created a test stack with just a DataGrid on it and a button and opened the group script and was able to add a handler and then save it and reopen it so it does work in a simple scenario.
>>>>> 
>>>>> In my application I have two dataGrids that have code in the group script.  On has 290 lines the other has about 480 lines.   So it seems the longer code is a contributing factor.
>>>>> 
>>>>> Has anyone else experienced this?  
>>>>> 
>>>>> It the problem that you are not supposed to have script in the DataGrid’ Group script and rather put it all in the DataGrid's behaviour?
>>>>> 
>>>>> 
>>>>> Thanks in advance.
>>>>> 
>>>>> 
>>>>> Martin Koob
>>>>> 
>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> 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
> 
> 
> _______________________________________________
> 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