PINE64
PineTime Simulation Feature - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PineTime (https://forum.pine64.org/forumdisplay.php?fid=134)
+--- Forum: Development Discussion on PineTime (https://forum.pine64.org/forumdisplay.php?fid=136)
+--- Thread: PineTime Simulation Feature (/showthread.php?tid=12100)



PineTime Simulation Feature - gjoyet - 11-10-2020

Hi

I just started a PineTime developing project for college. I am quite new to programming and just kind of got thrown into that project without any help available, which means I am still quite lost at the moment.
I will get a physical PineTime to run my code on, but until then I read on the wiki FAQ that you can preview watch faces thanks to WebAssembly.

I followed every step on this site, which was linked to on the wiki: I forked the Pinetime repo and created the Github workflow as instructed. However, the action failed with following error every time it ran:

cp: cannot stat 'src/DisplayApp/Screens/Clock.cpp': No such file or directory

I tried to google that but did not get any wiser. What is the problem? The directory that the path above is pointing to is in my repo, there is no doubt about that (except that every directory actually starts with a lowercase letter, but I do not suppose that this is relevant?). So why was it not found?

Thanks in advance for any help
gjoyet


RE: PineTime Simulation Feature - wibble - 11-11-2020

That tutorial was originally announced in https://forum.pine64.org/showthread.php?tid=11077 so it might be worth asking there if @lupyuen doesn't spot this thread. I'm used to linux where paths are case sensitive, and I think that's what github are using behind the scenes for Actions, so I wouldn't be surprised if having the wrong case caused problems.


RE: PineTime Simulation Feature - VMMainFrame - 11-11-2020

(11-10-2020, 11:51 AM)gjoyet Wrote: Hi

I just started a PineTime developing project for college. I am quite new to programming and just kind of got thrown into that project without any help available, which means I am still quite lost at the moment.
I will get a physical PineTime to run my code on, but until then I read on the wiki FAQ that you can preview watch faces thanks to WebAssembly.

I followed every step on this site, which was linked to on the wiki: I forked the Pinetime repo and created the Github workflow as instructed. However, the action failed with following error every time it ran:

cp: cannot stat 'src/DisplayApp/Screens/Clock.cpp': No such file or directory

I tried to google that but did not get any wiser. What is the problem? The directory that the path above is pointing to is in my repo, there is no doubt about that (except that every directory actually starts with a lowercase letter, but I do not suppose that this is relevant?). So why was it not found?

Thanks in advance for any help
gjoyet

I also followed the instructions to preview watch faces and it worked for me.  However, I forked the repository when it was 0.7.1.  Since then there have been changes including changing the names of some of the directories, I don't know why.  In my fork the directory is DisplayApp.  In the current JF002 repository it is displayapp, all lower case.  Similarly directory Screens is now screens.  Clock.cpp is  still Clock.cpp.  If you change the action code appropriately it should work.

Hugh


RE: PineTime Simulation Feature - gjoyet - 11-15-2020

That was the problem. I didn't realise the path to the file was explicitly written in the *.yml file. It works now, thank you very much.