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

Visual Studio 2015 IntelliTrace problems #729

Closed
leozzyzheng opened this issue Sep 7, 2017 · 12 comments
Closed

Visual Studio 2015 IntelliTrace problems #729

leozzyzheng opened this issue Sep 7, 2017 · 12 comments
Labels

Comments

@leozzyzheng
Copy link

using json = nlohmann::json;
json j;
std::string json_string;
j = json::parse(json_string);

Visual Studio 2015 will show red line under json::parse:
image
it shows following error message:
image

I can successfully compile it but it is a little bit annoying. Could it be avoided?

@theodelrieu
Copy link
Contributor

theodelrieu commented Sep 7, 2017

I had this issue once, IIRC it disappeared after I updated to VS2015 U3

@leozzyzheng
Copy link
Author

Thanks, I will try it now.

@nlohmann nlohmann added the platform: visual studio related to MSVC label Sep 7, 2017
@leozzyzheng
Copy link
Author

@theodelrieu Have finished install update 3 for vs2015, it seems not work for me.

@theodelrieu
Copy link
Contributor

I looked it up, and it seems I just disabled Intellisense and bought a Visual Assist license.
I have no real idea on how to solve that problem unfortunately..

@leozzyzheng
Copy link
Author

Okay, I prefer the Intellisense so seems I need to get used to it. :)

@nlohmann
Copy link
Owner

nlohmann commented Oct 2, 2017

I am not sure what I can do to fix this issue.

@leozzyzheng
Copy link
Author

It only happens on std::string, if I change it using c_str(), then the underline gone.

@nlohmann
Copy link
Owner

nlohmann commented Oct 2, 2017

It seems the parser MSVC uses in the editor has a problem. :-S

@nlohmann nlohmann added the state: help needed the issue needs help to proceed label Oct 2, 2017
@nlohmann
Copy link
Owner

nlohmann commented Oct 2, 2017

Maybe someone has an idea - otherwise I shall close this issue.

@gregmarr
Copy link
Contributor

gregmarr commented Oct 2, 2017

Intellisense uses a different compiler which doesn't always support the same things as the regular compiler. Unfortunately, these errors are really hard to fix.

@leozzyzheng
Copy link
Author

It's fine to close it since the workaround doesn't take time. :)

@nlohmann
Copy link
Owner

nlohmann commented Oct 3, 2017

Thanks for checking back!

@nlohmann nlohmann closed this as completed Oct 3, 2017
@nlohmann nlohmann removed the state: help needed the issue needs help to proceed label Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants