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

Incorrect .pdx name used & can't deal with spaces #24

Closed nstbayless closed 1 year ago

nstbayless commented 1 year ago

When there is a space in the name field in pdxinfo, the standard Playdate: Debug launch no longer works and the simulator doesn't even open. I see this in the logs:

Starting Playdate Simulator...
> "~/apps/PlaydateSDK-1.12.2/bin/PlaydateSimulator" ~/git/playdate-swap-machina/Swap Machina.pdx

(Note the lack of quotes around the path to the pdx).

Furthermore, changing the output field in launch.json had no effect either. It did not change the path to the pdx as run by PlaydateSimulator. The only effective solution I found was to rename the game in pdxinfo to have no space. (Consulted on Discord. This was due to having the "orta" playdate extension also installed and is unrelated.)

I use Linux, by the way.