Skip to content

Commit

Permalink
COMP: Fix XML namespace of Natvis file (Visual Studio Debug Visualizers)
Browse files Browse the repository at this point in the history
The ITK Debug Visualizers for Visual Studio do not seem to work when the XML
namespace name starts with "https" (rather than just "http"). This was found by
setting the option "Natvis diagnostic messages" to "Verbose", in either
Visual Studio 2019 (version 16.11.31) or Visual Studio 2022 (version 17.7.6).
It says:

> ITK.natvis(4,2): Fatal error: Expected element with namespace 'http://schemas.microsoft.com/vstudio/debugger/natvis/2010'.

Reverts the change of this particular file from pull request #3428
commit 9cd0f20 "ENH: Use https instead of http
when https works", May 18, 2022.

-- With help from colleagues of mine at LKEB, Leiden University Medical Center.
  • Loading branch information
N-Dekker authored and dzenanz committed Nov 3, 2023
1 parent 00badae commit dccdf4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/Debugger/ITK.natvis
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Documentation: https://msdn.microsoft.com/en-us/library/jj620914.aspx?f=255&MSPPError=-2147217396 -->
<!-- e.g. copy into C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Packages\Debugger\Visualizers\ITK.natvis -->
<AutoVisualizer xmlns="https://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">

<Type Name="itk::Size&lt;1&gt;">
<DisplayString>[{m_InternalArray[0]}]</DisplayString>
Expand Down

0 comments on commit dccdf4b

Please sign in to comment.