I am seeing the following incorrect error marking in Clang Intellisense. #include #include void foo() { std::stringstream stream; stream << "Some Text"; stream << std::string("Some Other Text"); }
The << has the squiggly red underline. Floating over the first one displays: Error [Clang IntelliSense] Error: invalid operands to binary expression ('std::stringstream' (aka 'basic_stringstream') and 'const char *')
Floating over the second one displays: Error [Clang IntelliSense] Error: invalid operands to binary expression ('std::stringstream' (aka 'basic_stringstream') and 'std::string' (aka 'basic_string'))
The error can be reproduced by taking the standard “Blink” demo project and adding the c++ file above to it.
Is there a workaround for this?
This topic was modified 9 months, 1 week ago by dedvalson.
This topic was modified 9 months, 1 week ago by dedvalson.
Sorry, it doesn’t look like any known issue. Most likely, some file somewhere got corrupt and is interfering with IntelliSense.
Our best advice would be to reset the environment (toolchain, ESP-IDF) and try creating a new project from scratch. If the problem doesn’t reappear on the new project, try comparing the project files between the working and non-working projects to pinpoint the setting that could be causing this.