-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Closed
Labels
*caused-by-extensionIssue identified to be caused by an extensionIssue identified to be caused by an extension
Description
- VSCode Version: 1.51.1
- OS Version: ubuntu 20.04.1 LTS
Steps to Reproduce:
- Create a simple c++ file that use a c++17 feature
- Terminal > Configure Default Build Task
- Choose C/C++: g++ build active file.
- add flag "-std=c++17" in args of tasks.json.
Then the build work with Terminal > Run Build Task - Run > Add Configuration... and then choose C++ (GDB/LLDB).
- Choose g++ build and debug active file.
- Run > Start Debugging
Then the build task don't work anymore : error in terminal saying than he don't find c++17 feature, for instance "error: ‘optional’ is not a member of ‘std’".
When i applied this 2 modification i able to build and run with Run > Start Debugging :
- change in launch.json the "preLaunchTask" from "C/C++: g++ build active file" to "foo"
- change in tasks.json the "label" from "C/C++: g++ build active file" to "foo"
My cpp file :
#include <iostream>
#include <optional>
int main() {
std::optional<std::string> data;
std::cout << "Hello World!";
return 0;
}Does this issue occur when all extensions are disabled?: Yes/No
Metadata
Metadata
Assignees
Labels
*caused-by-extensionIssue identified to be caused by an extensionIssue identified to be caused by an extension