Closed swork1 closed 11 months ago
There is no issue here as I can see. If gprbuild
doesn't report any problem, then VS Code shouldn't display any problem.
If you want to check aa single file for errors/warnings use Check current file
task. If you want you project doesn't compile successfully on warnings then append -gnatwe
to the compiler flags. If you want get all warnings in the project then force recompilation of the whole project with -f
flag of gprbuild
.
I have a very basic Alire project set up to replicate this issue. Run
Build project
on the following codeThe build output will warn
warning: variable "S" is not referenced [-gnatwu]
and VSCode will highlight theS
which works as expected. The issue appears if you runBuild project
again as the output isgprbuild: "main.exe" up to date
which VSCode will see and un-highlight theS
that is still an issue.Is there a way to have a better sync between errors/warnings so that VSCode is displaying accurate information?