Generated natvis is invalid XML #3858
Labels
confirmed
kind: bug
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
Description
The natvis generator inserts comments before the xml node, which is invalid and causes parsing to fail.
Reproduction steps
json\nlohmann_json.natvis(4,3): Fatal error: Invalid xml declaration.
appears in the output windowOpening up the generated natvis in the editor within visual studio shows a red squiggly, hovering over it reveals:
Expected vs. actual results
Expected:
generated natvis starts with:
Reality:
generated natvis starts with:
Minimal code example
No response
Error messages
`json\nlohmann_json.natvis(4,3): Fatal error: Invalid xml declaration.`
Compiler and operating system
Microsoft Visual Studio Community 2022 Version 17.4.2
Library version
a3e6e26
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: