yaml-cpp icon indicating copy to clipboard operation
yaml-cpp copied to clipboard

debugger visualization for MSVC, experimental yaml-path

Open peterchen-cp opened this issue 6 years ago • 4 comments

Just to let you know, two things related to yaml-cpp (not really an "issue"):

MSVC debugger visualization file (.natvis) here: https://github.com/peterchen-cp/yaml-cpp-natvis It significantly improves the display of YAML::Node in Visual Studio Debugger.

Feel free to include it in yaml-cpp. Might help your Windows users (they just need to include it in their msvc project).

yaml-path: I've toyed around a little with a path selector (simpler, but conceptually similar to XML XPath). It's only a first shot, but makes my life a little easier already. Take a look if you like, I'd be happy to hear comments.

peterchen-cp avatar Feb 22 '19 22:02 peterchen-cp

Neat! If you want to open a PR to add the natvis in the /contrib folder, that'd be cool. The one thing that worries me is keeping it up to date - is there any way to write an automated test for it? Also, if you do submit a PR, can you write a little explanation on the main yaml-cpp page for how to use it?

Second: do you have a link to yaml-path?

jbeder avatar Mar 24 '19 01:03 jbeder

yaml-path is here: https://github.com/peterchen-cp/yaml-cpp-path

With the memory management issues I ran into, I may have to make some changes on how I use sequences instead of vectors.

peterchen-cp avatar Mar 24 '19 20:03 peterchen-cp

Cool! I've never used XPath, but I have used jq, which is amazing, and if I were to do something for YAML, I'd basically copy what jq did for JSON.

jbeder avatar Mar 24 '19 21:03 jbeder

any news here? yaml-cpp-path is looking like a perfect fit for my use case.

atar-axis avatar Nov 13 '20 16:11 atar-axis