Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

natvis is broken #869

Open
vinniefalco opened this issue Mar 9, 2023 · 4 comments
Open

natvis is broken #869

vinniefalco opened this issue Mar 9, 2023 · 4 comments

Comments

@vinniefalco
Copy link
Member

Natvis: C:\Users\Vinnie\src\boost\libs\json\include\boost\json\json.natvis(58,4): Warning: Unable to load a visualized preview for type 'boost::json::string' because the conditions of all elements were false.
Natvis: C:\Users\Vinnie\src\boost\libs\json\include\boost\json\json.natvis(58,4): Warning: Unable to load a visualized preview for type 'boost::json::string' because the conditions of all elements were false.
Natvis: C:\Users\Vinnie\src\boost\libs\json\include\boost\json\json.natvis(58,4): Warning: Unable to load a visualized preview for type 'boost::json::string' because the conditions of all elements were false.

@grisumbras
Copy link
Member

I don't think I've touched internal representation for any of the containers, and I definitely haven't touched the natvis file. So, I have to ask for a reproducible example.

@vinniefalco
Copy link
Member Author

well try inspecting any json::value

@Aspire-Design-Ltd
Copy link

Aspire-Design-Ltd commented Feb 24, 2024

Hi. I am no expert but I have been trying to learn Boost JSON using VSCODE, The json.natvis file does not work but I think this is due to changes made to VSCODE. I have made changes to the natvis file which are working for me although I could not test the kind::string+64 as I could not see how to initiate a value.
It seems VSCODE has broken how char array can be viewed so I have converted to viewing a null terminated string.
Again I am no expert so I may be hacking rather than correcting the issue.
MPC.

PS I could not get rid of the pointers to the null terminated strings.

json.natvis.txt

Screenshot from 2024-02-24 19-41-09

@grisumbras
Copy link
Member

So, you have a fix to at least some of the issues with the natvis file? That's great! Please create a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants