Today out of the blue it can no longer find the ENV variable when I go to compile a project, was working fine a couple days ago. This is the error I'm getting:
CMake Error at CMakeLists.txt:20 (message):
SDK Path not found; set ENV value PLAYDATE_SDK_PATH
I'm on a Mac, building via command line. I checked the .zprofile file and it still has the var set in there, same as when it was working the other day:
export PLAYDATE_SDK_PATH=Developer/PlaydateSDK
Any ideas on what might be going on? We did have a power outage last night and that's the first time my computer has had a hard reset since I started this project, possible that affected it somehow?
it's weird, I can type "env" in the terminal and it shows me the var:
PLAYDATE_SDK_PATH=/Developer/PlaydateSDK
so it's in there, but for whatever reason now Playdate can't find it. Also this was running perfectly just a couple days ago, no changes to the code at any time during those couple days
The path listed in your last post, PLAYDATE_SDK_PATH=/Developer/PlaydateSDK, isn't right. Double check your .zprofile path is correct and expanded...IIRC it won't expand relative paths to home.
That got it, thanks! It's weird bc it had been working on that path for a couple weeks now. I think it had to do with the reset closing the terminal window & sourcing the .zprofile, I didn't source the .zprofile the first time around.
For anyone seeing this in future, the solution seemed to be:
updating the path to be the full path in the .zprofile file