Re: Unable to load Preferences LC 9.6.9rc3 and Levure 9.0.5

2023-04-18 Thread Mark Smith via use-livecode
Marty, apologies, I forgot to add I am doing this on an “M” chip. 

Mark


> On 18 Apr 2023, at 10:42 am, Mark Smith  wrote:
> 
> Hi Marty, this worked like a charm. I was trying to open Trevor's 
> dataview_demo and was getting the same “An error occurred while initialising 
> the application…” msg. This fixed it. Thanks
> 
> Mark
> 
> 
>> On 14 Apr 2023, at 10:35 pm, Marty Knapp via use-livecode 
>>  wrote:
>> 
>> I don’t have an “M” chip Mac here to test at the moment but here’s something 
>> to try:
>> 
>> In the Levure framework open the helpers folder and then the preferences 
>> folder
>> Modify the helper.yml file by deleting the section under externals so the 
>> file just contains the following
>> 
>> externals:
>> libraries:
>> - filename: preferences.livecodescript
>> extensions:
>> - filename: nsuserdefaults.lcm
>>   engine version: ">=9.0"
>>   platform: macos,ios
>> 
>> Then try a build and see how that works. I just tried it on my Intel iMac 
>> and preferences are working OK without the previous content.
>> 
>> Please let me know how it works on your “M” mac
>> 
>> 
>> Marty
>> 
>>> On Apr 10, 2023, at 3:23 AM, Mark Waddingham via use-livecode 
>>>  wrote:
>>> 
>>> On 2023-04-08 14:58, bob--- via use-livecode wrote:
 I'm wondering if anyone might be able to help me out. I’m trying to
 use LC 9.6.9rc3 with an app built with Levure. With LC 9.6.9rc2 I am
 able to open the app in the IDE with no issue.
 When I try to open the app with LC 9.6.9rc3 I get “An error occurred
 while initializing the application [unable to load external
 Preferences]”. I’m tracing through the Levure script now and can see
 in fact the Preference stack is not being loaded. I’ve confirmed
 Preferences.bundle is at the location referenced in the script.
 Can anyone steer me in a direction for a fix to this?
>>> 
>>> So you'll need to (for now) use `Get Info` on LiveCode.app in Finder, and 
>>> ask it to 'open in rosetta'... Then when building any standalones, disable 
>>> generating a the arm64 slice (you can do this in the MacOS pane of 
>>> standalone settings).
>>> 
>>> The reason is isn't working is that the preferences external included in 
>>> Levure does not have a ARM64 slice - so won't load when the engine is 
>>> running using that architecture.
>>> 
>>> The preferences external will need to be rebuilt with an arm64 slice and 
>>> included in Levure.
>>> 
>>> (When looking at this the other day, I did notice that Levure has an LCB 
>>> extension which can do preferences stuff on macOS - bypassing the need for 
>>> an external, but I couldn't see how you opt to use that instead of the 
>>> external).
>>> 
>>> Warmest Regards,
>>> 
>>> Mark.
>>> 
>>> -- 
>>> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
>>> LiveCode: Build Amazing Things
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Unable to load Preferences LC 9.6.9rc3 and Levure 9.0.5

2023-04-18 Thread Mark Smith via use-livecode
Hi Marty, this worked like a charm. I was trying to open Trevor's dataview_demo 
and was getting the same “An error occurred while initialising the 
application…” msg. This fixed it. Thanks

Mark


> On 14 Apr 2023, at 10:35 pm, Marty Knapp via use-livecode 
>  wrote:
> 
> I don’t have an “M” chip Mac here to test at the moment but here’s something 
> to try:
> 
> In the Levure framework open the helpers folder and then the preferences 
> folder
> Modify the helper.yml file by deleting the section under externals so the 
> file just contains the following
> 
> externals:
> libraries:
>  - filename: preferences.livecodescript
> extensions:
>  - filename: nsuserdefaults.lcm
>engine version: ">=9.0"
>platform: macos,ios
> 
> Then try a build and see how that works. I just tried it on my Intel iMac and 
> preferences are working OK without the previous content.
> 
> Please let me know how it works on your “M” mac
> 
> 
> Marty
> 
>> On Apr 10, 2023, at 3:23 AM, Mark Waddingham via use-livecode 
>>  wrote:
>> 
>> On 2023-04-08 14:58, bob--- via use-livecode wrote:
>>> I'm wondering if anyone might be able to help me out. I’m trying to
>>> use LC 9.6.9rc3 with an app built with Levure. With LC 9.6.9rc2 I am
>>> able to open the app in the IDE with no issue.
>>> When I try to open the app with LC 9.6.9rc3 I get “An error occurred
>>> while initializing the application [unable to load external
>>> Preferences]”. I’m tracing through the Levure script now and can see
>>> in fact the Preference stack is not being loaded. I’ve confirmed
>>> Preferences.bundle is at the location referenced in the script.
>>> Can anyone steer me in a direction for a fix to this?
>> 
>> So you'll need to (for now) use `Get Info` on LiveCode.app in Finder, and 
>> ask it to 'open in rosetta'... Then when building any standalones, disable 
>> generating a the arm64 slice (you can do this in the MacOS pane of 
>> standalone settings).
>> 
>> The reason is isn't working is that the preferences external included in 
>> Levure does not have a ARM64 slice - so won't load when the engine is 
>> running using that architecture.
>> 
>> The preferences external will need to be rebuilt with an arm64 slice and 
>> included in Levure.
>> 
>> (When looking at this the other day, I did notice that Levure has an LCB 
>> extension which can do preferences stuff on macOS - bypassing the need for 
>> an external, but I couldn't see how you opt to use that instead of the 
>> external).
>> 
>> Warmest Regards,
>> 
>> Mark.
>> 
>> -- 
>> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
>> LiveCode: Build Amazing Things
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Unable to load Preferences LC 9.6.9rc3 and Levure 9.0.5

2023-04-14 Thread Marty Knapp via use-livecode
I don’t have an “M” chip Mac here to test at the moment but here’s something to 
try:

In the Levure framework open the helpers folder and then the preferences folder
Modify the helper.yml file by deleting the section under externals so the file 
just contains the following

externals:
libraries:
  - filename: preferences.livecodescript
extensions:
  - filename: nsuserdefaults.lcm
engine version: ">=9.0"
platform: macos,ios

Then try a build and see how that works. I just tried it on my Intel iMac and 
preferences are working OK without the previous content.

Please let me know how it works on your “M” mac


Marty

> On Apr 10, 2023, at 3:23 AM, Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2023-04-08 14:58, bob--- via use-livecode wrote:
>> I'm wondering if anyone might be able to help me out. I’m trying to
>> use LC 9.6.9rc3 with an app built with Levure. With LC 9.6.9rc2 I am
>> able to open the app in the IDE with no issue.
>> When I try to open the app with LC 9.6.9rc3 I get “An error occurred
>> while initializing the application [unable to load external
>> Preferences]”. I’m tracing through the Levure script now and can see
>> in fact the Preference stack is not being loaded. I’ve confirmed
>> Preferences.bundle is at the location referenced in the script.
>> Can anyone steer me in a direction for a fix to this?
> 
> So you'll need to (for now) use `Get Info` on LiveCode.app in Finder, and ask 
> it to 'open in rosetta'... Then when building any standalones, disable 
> generating a the arm64 slice (you can do this in the MacOS pane of standalone 
> settings).
> 
> The reason is isn't working is that the preferences external included in 
> Levure does not have a ARM64 slice - so won't load when the engine is running 
> using that architecture.
> 
> The preferences external will need to be rebuilt with an arm64 slice and 
> included in Levure.
> 
> (When looking at this the other day, I did notice that Levure has an LCB 
> extension which can do preferences stuff on macOS - bypassing the need for an 
> external, but I couldn't see how you opt to use that instead of the external).
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Build Amazing Things


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Unable to load Preferences LC 9.6.9rc3 and Levure 9.0.5

2023-04-10 Thread Mark Waddingham via use-livecode

On 2023-04-08 14:58, bob--- via use-livecode wrote:

I'm wondering if anyone might be able to help me out. I’m trying to
use LC 9.6.9rc3 with an app built with Levure. With LC 9.6.9rc2 I am
able to open the app in the IDE with no issue.

When I try to open the app with LC 9.6.9rc3 I get “An error occurred
while initializing the application [unable to load external
Preferences]”. I’m tracing through the Levure script now and can see
in fact the Preference stack is not being loaded. I’ve confirmed
Preferences.bundle is at the location referenced in the script.

Can anyone steer me in a direction for a fix to this?


So you'll need to (for now) use `Get Info` on LiveCode.app in Finder, 
and ask it to 'open in rosetta'... Then when building any standalones, 
disable generating a the arm64 slice (you can do this in the MacOS pane 
of standalone settings).


The reason is isn't working is that the preferences external included in 
Levure does not have a ARM64 slice - so won't load when the engine is 
running using that architecture.


The preferences external will need to be rebuilt with an arm64 slice and 
included in Levure.


(When looking at this the other day, I did notice that Levure has an LCB 
extension which can do preferences stuff on macOS - bypassing the need 
for an external, but I couldn't see how you opt to use that instead of 
the external).


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Build Amazing Things

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Unable to load Preferences LC 9.6.9rc3 and Levure 9.0.5

2023-04-08 Thread Marty Knapp via use-livecode
I use Levure to build apps too and discovered this issue when my standalones 
try to run natively on the Apple “M” chips. I’m guessing that LC 9.6.9rc3 
(haven’t tried it yet) defaults to running natively rather than under Rosetta. 
For some reason when running natively it apparently thinks that something in 
the “Preferences.bundle" is a (not native) external so won’t/can’t load it.

So I am also needing a solution to this but no luck so far.
---
Marty Knapp

> On Apr 8, 2023, at 6:58 AM, bob--- via use-livecode 
>  wrote:
> 
> I'm wondering if anyone might be able to help me out. I’m trying to use LC 
> 9.6.9rc3 with an app built with Levure. With LC 9.6.9rc2 I am able to open 
> the app in the IDE with no issue.
> 
> When I try to open the app with LC 9.6.9rc3 I get “An error occurred while 
> initializing the application [unable to load external Preferences]”. I’m 
> tracing through the Levure script now and can see in fact the Preference 
> stack is not being loaded. I’ve confirmed Preferences.bundle is at the 
> location referenced in the script.
> 
> Can anyone steer me in a direction for a fix to this?
> 
> Thanks in advance,
> Bob

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Unable to load Preferences LC 9.6.9rc3 and Levure 9.0.5

2023-04-08 Thread bob--- via use-livecode
I'm wondering if anyone might be able to help me out. I’m trying to use LC 
9.6.9rc3 with an app built with Levure. With LC 9.6.9rc2 I am able to open the 
app in the IDE with no issue.

When I try to open the app with LC 9.6.9rc3 I get “An error occurred while 
initializing the application [unable to load external Preferences]”. I’m 
tracing through the Levure script now and can see in fact the Preference stack 
is not being loaded. I’ve confirmed Preferences.bundle is at the location 
referenced in the script.

Can anyone steer me in a direction for a fix to this?

Thanks in advance,
Bob
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode