• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Canela SDK is missing
#6
(06-26-2019, 11:34 PM)sltfn Wrote:
(06-26-2019, 10:55 PM)jasonchan Wrote:
(06-26-2019, 10:01 PM)sltfn Wrote:
(06-26-2019, 09:06 PM)Jamil Semaan Wrote: Hi Sieg,

It sounds like there is an issue with pathing and it is unable to find the CanelaDB toolkit. Is the substack located in a different folder than the main/splash stack? The initialization script was written in mind that the stack where the script is running sits next to the CanelaDB directory.

Thanks. Good question. How does one find the path to a LiveCode substack? "put the effective filename of this stack" reveals the path to the main stack.

You are correct. The effective filename should do the trick.

Can you try running this and see does it match the location of your CanelaDB folder?

Code:
set the itemdel to "/"
put item 1 to -2 of the fileName of this stack

Thanks. The results is empty. I'd guess, "This is because the filename is a property of the main stack only. Substacks do not have a filename property." This quote comes from a LiveCode lesson here.

http://lessons.livecode.com/m/4071/l/786...resides-in

I have asked on a LiveCode forum where substacks are located and how that might be sleuthed out. Hopefully there is an answer, but I would appreciate any information LiveCloud users might have. Thanks.

I think the substacks are at the same location as the stacks but we are not using the correct way to get the file path. 
This is an oversight on our part. We should be using effective filename. 
If you change all the references of fileName to effective fileName in initializeCanelaDB, you should be able to use the library.
We will put it into the next update. Thank you for finding the issue.
  Reply


Messages In This Thread
Canela SDK is missing - by sltfn - 06-26-2019, 07:47 PM
RE: Canela SDK is missing - by Jamil Semaan - 06-26-2019, 09:06 PM
RE: Canela SDK is missing - by sltfn - 06-26-2019, 10:01 PM
RE: Canela SDK is missing - by jasonchan - 06-26-2019, 10:55 PM
RE: Canela SDK is missing - by sltfn - 06-26-2019, 11:34 PM
RE: Canela SDK is missing - by jasonchan - 06-27-2019, 03:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)