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

identificator "json_value_pair" isn't defined #3

Closed
pavelc7 opened this issue Feb 5, 2020 · 3 comments
Closed

identificator "json_value_pair" isn't defined #3

pavelc7 opened this issue Feb 5, 2020 · 3 comments

Comments

@pavelc7
Copy link

pavelc7 commented Feb 5, 2020

what is json_value_pair ?
Natvis: ...\2019\Professional\Common7\Packages\Debugger\Visualizers\sciter.natvis(87,27): Error: identificator "json_value_pair" isn't defined
Error in evaluation of "((json_value_pair*)( ((int*)d) + 3 ))" in context of "MyProgram.exe!sciter::value".

@pavelc7 pavelc7 changed the title json_value_pair identificator "json_value_pair" isn't defined Feb 5, 2020
@pavelc7
Copy link
Author

pavelc7 commented Feb 5, 2020

don't not why it's start working after adding to my sources:

using json_value_pair = std::pair<sciter::value, sciter::value>;

void my_func(){
...
json_value_pair x;
...
code with map using
}

@pravic
Copy link
Member

pravic commented Feb 5, 2020

It's mentioned in the readme.

The map data structure in sciter is essentially an array of key-value pairs (not tree or something). In order to display the contents of a map I need some type that looks like a pair. And json_value_pair is a promise that this type will be available in debugger. I don't have a better idea.

@pavelc7
Copy link
Author

pavelc7 commented Feb 6, 2020

Oops. Sorry. I read readme before installing it;)

@pavelc7 pavelc7 closed this as completed Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants