Returning to Codea after a while off - running into two bugs. First, the export all projects to a zip causes Codea to crash. Secondly, Dependencies through the “require” command do not work. Old projects which had dependencies work OK, but I can’t even get a simple new dependency to work - it starts to execute then freezes. I’m on 3.15
@West are you able to share an example of dependencies not working?
iCloud project or local?
Local.
The attached zip is the dependency project.
The referring project is:
–# Main
require(asset.documents.Map_Depend_Test)
– Second Test
– Use this function to perform your initial setup
function setup()
print(“Second test”)
Cheese(“send more cheese”)
end
– This function gets called once every frame
function draw()
– This sets a dark background color
background(40, 40, 50)
-- This sets the line thickness
strokeWidth(5)
-- Do your drawing here
end
Interestingly when I try to export this project as a zip it hangs as well. I could delete Codea and reinstall, but don’t want to lose all my projects. As I’m not able to export all projects as a zip, then I’m apprehensive
Map Depend Test.zip (1.3 KB)
Hmm this works OK for me. Are you on the 3.16 beta? If not, could I get you to try it on the beta to see if it’s resolved there?
I’m on 3.15 (585). Happy to try the beta. I suspect it may be to do with the volume and age of my projects library (>1000 projects going back over at least 12 years). Could do with a clear out and fresh install ,but don’t want to risk losing the old ones - happened to me with a drawing package a couple of years ago
@west - seems to be a number of issues with your posted code the dash (—) used for formatting comments is different and in many cases a single dash not double. The code is also displaced suggesting hidden characters.
Perhaps my copy is corrupted could you retry posting the complete demo (two separate files).
Edit: Just loaded latest version Codea and ran successfully. - message printed out OK.