Dropbox

@Simeon - I can’t seem to get away from Dropbox problems. Plagued me on and off ever since I joined. The latest issue is Codea keeps crashing when Dropbox is updating.

The position is I have transferred a large number of files from my Dropbox account to an external hard drive - removing duplication and resources I don’t use. When I start the sync it goes through the usual procedure but when my iPad goes to sleep or I open another app Codea crashes.

I’ll post crash reports when I next try to sync. The sync count never seems to go down.

Does Codea sync directly with Dropbox or with the Dropbox app?

All,
Just used a filer app on my phone to view Dropbox and you could literally see the folders update with the number of files in each. As you follow branches you see the same effect.

Makes me think that the algorithm within Codea may be the problem. Rather than lock out while updating all a better algorithm could be upgrade as needed. This may require a needs sync flag for each folder - but it could also get rid of the sync button.

@Simeon - what do you think?

@Simeon - I managed to get round the problem by syncing my Dropbox account with a local server. Also copied about 50 files down from my Dropbox account to a folder in Codea. The files I downloaded were up to date with recent changes whereas those linked to my Codea file (presumably in Codea documents) were not. I moved the downloaded files into a folder in Codea root and linked accordingly - et voila - it works.

I would like to be able to link to files in the synced server - is that possible within Codea?

@Simeon - is there any way you can reset Dropbox within Codea so that it purges out the old files and rebuilds the database?

Edit: Was going to apologise when I remembered the unlinking then re-linking. A total of 8220 files to sync, tried that unlinked, then re-linked and it crashed. Currently trying unlink, stop Codea, restart Codea and sync. Not crashed so far but not dropped below 8220 files on display.

Thought occured to me - I have quite a few files I’ve downloaded and stored from external sources. Are there any illegal characters which could mess up Dropbox or Codea? What about ‘_’ ?

@Simeon - another question. I have three systems to link my Dropbox account currently iPad, PC and Mac. But have been switching between Mojave and Big Sur recently, on my ma, which externally is seen as a new computer and I have had to go through the dialogue for switching one out - but that was always a ‘second’ Mac and should not have interfered. But - you never know! Any experience of that?

Does Codea count as an additional system as I also have Codea accessing it? Does Codea address Dropbox remote or Dropbox on the iPad?

@Simeon - this gets weirder each time I play with this. Stripped loads of files out of Dropbox. Tried older versions of Codea. Unlinked, relinked and restarted Codea but keeps on crashing. Now I find when I set up an asset link to a file I know is there a red error bar highlights the error line where it thinks there is no file to load with the asset chain. It sees the folder but not the file.
Surprisingly the project runs and the graphic asset targeted is not displayed but the rest of the project runs OK. Also there is no error in the output window.

Is this a feature of “Fixed an issue that could cause Codea to crash when signalling an error from a custom package searcher”?

@Simeon - this gets weirder each time I play with this. Stripped loads of files out of Dropbox. Tried older versions of Codea. Unlinked, relinked and restarted Codea but keeps on crashing. Now I find when I set up an asset link to a file I know is there a red error bar highlights the error line where it thinks there is no file to load with the asset chain. It sees the folder but not the file.
Surprisingly the project runs and the graphic asset targeted is not displayed but the rest of the project runs OK. Also there is no error in the output window.

@Simeon - whoopeeeeeeee, finally got my Dropbox working. Solution - remove everything in the Codea Dropbox folder and sync Dropbox on my iPad, then Dropbox in Codea. The file number returns to the count down usually seen (frozen when faulty). And it is synced. Am now slowly adding files back and resending to see if I can find any issues. Is there a limit on the number of files? Are there any issues with file naming (checked out those reported by Dropbox). My Dropbox account was 90% full on 2gb. So I am still a little in the dark here but will sort out and gain from tidying my mess in Dropbox.

I’ll report any issues I find.

@Simeon - what format does filer save Codea files to Dropbox ? Have you set up a specific copy to Dropbox routine within Codea for Codea Projects ?

When I tried to copy a few Codea projects from the root to Dropbox I got an error (see attached image).