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

pdc task fails to build a source folder with no pdxinfo #2

Closed midouest closed 1 year ago

midouest commented 2 years ago

Reproduction

  1. Open the Examples directory in the PlaydateSDK
  2. Configure the pdc task in the root of the project
{
  "version": "2.0.0",
  "tasks": [
    {
      "type": "pdc",
      "problemMatcher": ["$pdc-lua", "$pdc-external"],
      "label": "Playdate: Build"
    },
  ]
}
  1. Configure the project sourcePath and outputPath in the project settings
{
  "playdate-debug.sourcePath": "/Users/midouest/Developer/PlaydateSDK/Examples/Asheteroids/Source",
  "playdate-debug.outputPath": "/Users/midouest/Developer/PlaydateSDK/Examples/Asheteroids"
}
  1. Run the pdc task

Expected

The source folder is compiled without a pdxinfo

Actual

The pdc task fails to compile the folder with the following error:

Could not read pdxinfo file at /Users/midouest/Developer/PlaydateSDK/Examples/Asheteroids/Source/pdxinfo
midouest commented 1 year ago

This is a bug because pdc does not require a pdxinfo file to compile a project. This can be verified by opening the Examples/Asheteroids project in the Playdate SDK and compiling it with pdc Source/. pdc will create a Source.pdx bundle next to the Source/ directory.

midouest commented 1 year ago

No longer reproducible