BartmanAbyss / vscode-amiga-debug

One-stop Visual Studio Code Extension to compile, debug and profile Amiga C/C++ programs compiled by the bundled gcc 12.2 with the bundled WinUAE/FS-UAE.
GNU General Public License v3.0
312 stars 39 forks source link

Add PATH to compile task #94

Closed MihaMarkic closed 2 years ago

MihaMarkic commented 2 years ago

I think that the current compile's task path is wrong and out of the box the F5 will yield something like:

Unhandled exception. System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'dotnet' with working directory 'D:\Temp\Amiga'. The system cannot find the file specified.
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start(String fileName, String arguments)
   at Microsoft.PowerShell.GlobalTool.Shim.EntryPoint.Main(String[] args)
The terminal process "C:\Users\Miha\.dotnet\tools\pwsh.exe -Command c:\Users\USER\.vscode\extensions\bartmanabyss.amiga-debug-1.3.2\bin\gnumake.exe -j4" terminated with exit code: 3762504530.

The problem is setting PATH environmental variable upon launching compile task. I think that it might be correct like this (note the added existing env:PATH at the beginning:

"PATH": "${env:PATH};${command:amiga.bin-path}\\opt\\bin;${command:amiga.bin-path}"