LiveCode won't recognize my stack
Bill Vlahos
bvlahos at mac.com
Mon Dec 30 19:58:52 EST 2019
Mark,
Thanks for commenting.
This behavior changed between version 7 (and earlier) and version 8 (and later).
When I am in LC version 7 or earlier and go File menu/Open Stack I am able to select my stack named “LicenseKey.IW” without specifying “All Files”.
When I am in LC version 8 or 9 on the same computer opening the same “LicenseKey.IW”, file it is grayed out on the Mac when Open Stack. On Windows the file is not visible until I select All Files.
My program is correctly setting the defaultFolder but is getting the same result of not recognizing the file as a LiveCode stack when I build using LiveCode version 9.5.1.
Any idea what might have changed between version 7 and 8 and how I can get the old behavior when I’m referencing the stack?
Thank you,
Bill Vlahos
> On Dec 30, 2019, at 9:21 AM, Mark Waddingham via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> On 2019-12-27 22:51, Bill Vlahos via use-livecode wrote:
>> List,
>> Version 9.x of LiveCode doesn’t recognize stacks unless the file name
>> ends with either .rev or .livecode. Previous versions (I don’t know
>> when this changed) were able to.
>
> Nothing has changed here in any recent version.
>
>> I use a stack file as the Preferences file for InfoWallet but the file
>> name is “LicenseKey.IW”. When I execute the following command to read
>> custom properties in the stack it fails with an error. Type: Chunk:
>> can't find stack
>> put the uDefaultWallet of stack "LicenseKey.IW" into vDefault
>
> This is most likely because you haven't got the stackFiles property set up, or the defaultFolder is not what you are expecting it to be - i.e. the engine cannot find the stack with filename "LicenseKey.IW" relative to the current folder.
>
>> I can also see this when opening a stack from LiveCode. the
>> LicenseKey.IW file is greyed out unless I look for All Files when then
>> opens it correctly.
>
> The IDE still uses the form of 'answer file' which specifies a creator/filetype and an extension. I suspect either one of:
>
> A) the creator/filetype is actually recognised by more recent versions of macOS (i.e. they are ignored completely - I don't recall a report against Mojave, but it is entirely possible Catalina no longer supports them)
>
> B) The file has just lost its creator/filetype and thus is being filtered out (this can happen if a file is archived via a format which doesn't support these attributes, or has transmitted through an FS which doesn't).
>
>> How can I open the stack file in LiveCode 9.5.1 without changing the
>> name of the file?
>
> Use All Files and select it that way, as you have been doing :)
More information about the use-livecode
mailing list