VSCode-PlaydateTemplate
VSCode-PlaydateTemplate copied to clipboard
Windows 11: Error checking and log output not working
I can't explain it but the Build and Run (Simulator).ps1 command in powershell or vscode terminal just won't display any log output and won't abort on errors. For example here I added a space to break syntax
math.rand omseed(playdate.getSecondsSinceEpoch()) -- seed for math.random
* Executing task: & 'C:\dev\playlords\Build and Run (Simulator).ps1' -build 'C:\dev\playlords\builds' -source 'C:\dev\playlords\source' -name 'playlords'
Directory: C:\dev\playlords
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 4/24/2024 10:06 PM builds
error: C:\dev\playlords\source/main.lua:9: syntax error near 'omseed'
even with this error it runs the simulator. Even if it can't find pdc.exe it will still try to run the simulator
I tried manually inserting echo or printf or Write-Host commands and still couldn't get any of their output to show.
I should mention, it does generally work, it's just less informative than perhaps it was intended to be