json icon indicating copy to clipboard operation
json copied to clipboard

natvis not updated to 3.11.3

Open RomanKhv opened this issue 2 years ago • 1 comments

Description

In version 3.11.3 the underlying namespace seems to be nlohmann::json_abi_v3_11_3. But nlohmann_json.natvis is still written for nlohmann::json_abi_v3_11_2.

Reproduction steps

  • Create sample project in Visual Studio.
  • Add supplied nlohmann_json.natvis visuzliazer (https://github.com/nlohmann/json/blob/develop/nlohmann_json.natvis).
  • Write some basic intialization for json object.
  • Run in Debug mode and stop after initilization

Expected vs. actual results

In VS Debugger Watch window view for json object is not pretty-printed (visualizer is not applied)

Minimal code example

No response

Error messages

No response

Compiler and operating system

Visual Studio

Library version

3.11.3

Validation

RomanKhv avatar Apr 10 '24 11:04 RomanKhv

If you have Python installed, you can update it yourself using https://github.com/nlohmann/json/blob/master/tools/generate_natvis/generate_natvis.py

@nlohmann I guess executing this script should be added to the version update process.

gregmarr avatar Apr 10 '24 15:04 gregmarr