I have this config for cpp, but when i use vimspector#Launch, error appears, it's connected with this string "shell": "g++ -o ${workspaceRoot}/test -g -std=c++2a ${workspaceRoot}/*.cpp"
All config code:
{
"adapters": {
"custom-codelldb": {
"extends": "CodeLLDB",
"command": [
"$HOME/Development/vimspector/CodeLLDB/build/adapter/codelldb",
"--port", "${unusedLocalPort}"
]
},
"CodeLLDB - StopOnEntry": {
"extends": "custom-codelldb",
"name": "CoHostingLLDB"
},
"custom-cpptools": {
"extends": "vscode-cpptools",
"command": [
"$HOME/Development/vimspector/MIEngine/bin/Debug/vscode/OpenDebugAD7"
]
}
},
"configurations": {
"CodeLLDB": {
"adapter": "CodeLLDB",
"variables": {
"BUILDME": {
"shell": "g++ -o ${workspaceRoot}/test -g -std=c++2a ${workspaceRoot}/*.cpp"
}
},
"configuration": {
"request": "launch",
"expressions": "native",
"program": "${workspaceRoot}/test"
}
}
}
}
If i write g++ -o ${workspaceRoot}/test -g -std=c++2a ${file} in shell istead of "shell": "g++ -o ${workspaceRoot}/test -g -std=c++2a ${workspaceRoot}/*.cpp" it works fine, but i need compile multiple files automatically.