midouest / vscode-playdate-debug

Unofficial Playdate debug extension for Visual Studio Code on macOS, Windows and Ubuntu
https://marketplace.visualstudio.com/items?itemName=midouest.playdate-debug
MIT License
38 stars 4 forks source link

Getting error main.lua or pdex.bin required after update to playdateSDK 1.13.5 #28

Closed Mahekaru closed 1 year ago

Mahekaru commented 1 year ago

Everything was working great and now after the update it's unusable :(.

midouest commented 1 year ago

What operating system platform/version are you using?

Everything is working fine for me on macOS 13.3.1.

Mahekaru commented 1 year ago

I'm running windows 11 No matter what I do I'm getting image

I have main.pdx image

And main.lua image

midouest commented 1 year ago

Thanks! I’ll take a look at this tomorrow when I have access to a Windows computer.

I see in your screenshots that you have a main.pdx folder inside your source folder. Does deleting source/main.pdx make any difference?

Mahekaru commented 1 year ago

I had that in there to test it to see what folder it wanted the pdx folder in. Anyway I did delete it, but it didn't matter.

midouest commented 1 year ago

I am able to reproduce this issue on Windows 11 with Playdate SDK 1.13.5. It looks like there were breaking changes to how pdc handles Windows paths in 1.13.5. I'm going to report this issue on the Playdate dev forum.

In the meantime, here are a couple workarounds you can try:

  1. Downgrade to Playdate SDK 1.13.4
  2. Build via the pdc task in .vscode/tasks.json instead of using the "Run/Debug file in Playdate Simulator" button. You can copy-paste this configuration example.
midouest commented 1 year ago

@Mahekaru This is now fixed in the latest release!

Mahekaru commented 1 year ago

Wooot!!! It's working again ^.....^ Thanks a bunch @midouest. 150 gold stars.