ARM-software / vscode-cmsis-csolution

Extension support for VS Code CMSIS Project Extension
https://marketplace.visualstudio.com/items?itemName=Arm.cmsis-csolution
Other
23 stars 5 forks source link

How do we get log from csolution crpj creation ? #22

Closed LMESTM closed 1 year ago

LMESTM commented 1 year ago

In case the VScode extension settings are not properly set, or in case Integrated Terminal is set to git-bash instead of PowerShell, the cprj creation will fail, but it seems it will more or less silently fail

The errors would only pop-up during BUILD process, claiming that there is no cprj.

Are there any logs, or could there be logs, about the crpj creation process ? so that we can have a look to understand the origin of the issue when cprj files are missing.

Way to reproduce.

Select git-bash as default integrated terminal

image

Then select a new Active Solution and try to build. It will fail as there is no cprj, but no other error was raied before. That's not easy to understand what's wrong ...

Executing task: "C:\ST\cmsis-toolbox-windows-amd64\bin\cbuild.exe" c:\ST\path\[myproject]+B-U585I-IOT02A.cprj 

info cbuild: Build Invocation 1.5.0 (C) 2023 Arm Ltd. and Contributors
error cbuild: project file c:\ST\path\[myproject]+B-U585I-IOT02A.cprj does not exist
error cbuild: CreateFile c:\ST\path\[myproject]+B-U585I-IOT02A.cprj : The system cannot find the file specified.
mcgordonite commented 1 year ago

The extension exposes a CMSIS Project Manager output channel in VS Code that has the messages from the conversion. That's not ideal, since it isn't very obvious when there are errors. In the near future we plan to move from building CPRJ to building the csolution directly, so the conversion step won't be needed. At that point I expect this won't be a problem.

LMESTM commented 1 year ago

thanks, I was expecting this kind of logs to exist so that anwers my question :-)