I'm trying to set up auto compile on VScode using this.
this is the output of running the default build task
>> Attempting a build and run of PDX...
>> Cleaning build directory...
>! PDXINFO NOTICE:
>! Don't forget to change your unique project info in 'Source/pdxinfo': 'bundleID', 'name', 'author', 'description'.
>! It's critical to change your game bundleID, so there will be no collisions with other games, installed via sideload.
>! Read more about pdxinfo here: https://sdk.play.date/Inside%20Playdate.html#pdxinfo
>> Building PDX with 'pdc'...
/home/deck/programming/playdateSDK/projects/VSCode-PlaydateTemplate/build_and_run.sh: line 113: /bin/pdc: No such file or directory
!! ERROR !!
>> There was an issue with the previous command; exiting!
* The terminal process "/usr/bin/bash '-c', '/home/deck/programming/playdateSDK/projects/VSCode-PlaydateTemplate/build_and_run.sh build'" failed to launch (exit code: 1).
I haven't really used VScode before, so when i tried to look at the autobuild script to see what was going wrong, I was completely lost. help would be much appreciated!
creating a symlink from the /usr/bin directory to pdc to allow it to be executed from anywhere
done the same for the /bin directory
things I am aware of, but haven't tried
installing the AUR package for the playdate SDK : Haven't set up yay, so I don't currently have a way of downloading it.
I should also mention that I'm using a docked steamdeck, which runs SteamOS, which is based on arch. it has a couple of quirks compared to a normal linux computer, but none that should matter here.
Is your install of VSCode from a flatpak or other package? It may not have permission to access the shell. Try the direct install of VSCode. Also, IMHO, this is a better dev setup than the template you're using.
my setup is using the flatpak version of VScode, I did try the Playdate eextension, though it didn't work. that said, that could probably also be attributed to the flatpak. I'll update here once I've tried the non flatpak version, though it might take awhile, as I need to figure out how to get yay on a steam deck
@willco I tried VScode on another machine (not flatpak) that was also running arch, and ran into the same issue. I also tried the extensions that the video you provided suggested, but autocomplete refused to work.
after looking into it a bit more, it seems that it's actually a different problem, wherein, when run from the terminal, it can't find the compiler. VScode gets as far as compiling it, but can't find the simulator. the terminal does the same when told to skip compilation.
I've managed to get it to the point that everything works, except the build task. running ./build_and_run build works fine, It's just the build action that doesn't.