vscode-cmake-tools: Duplicate cmakePath variables in default settings
Hello, VSCode is currently giving me a warning that there is “duplicate object key” in the /settings.json. Note that this is the defaults, not my user or my workspace settings. I am not actually sure whether this exists as a real file, or is somehow generated by VSCode? If I click on the warning, I see these lines:
// The preferred CMake generator(s) to use when configuring (tried in order of listing)
"cmake.preferredGenerators": [
"Ninja",
"Unix Makefiles",
"MinGW Makefiles",
"NMake Makefiles"
],
// The path to CMake generator executable
"cmake.cmakePath": "cmake",
//-------- CMake configuration --------
// The path to CMake generator executable
"cmake.cmakePath": "cmake",
However I can’t edit this ‘file’, so I can’t remove the duplicates. Any ideas?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (11 by maintainers)
Commits related to this issue
- Merge pull request #13 from vector-of-bool/develop Pull — committed to microsoft/vscode-cmake-tools by bbosnjak 7 years ago
The problem is that it’s hard to maintain a zero-warnings approach when I’ve always got a non-zero number of warnings (due to stuff that I cannot fix). It’s not a critical issue, but it is kind of serious…
Unfortunately, no. I don’t see any viable workaround for users. I’ll have to update my own dependencies. That change should come soon. Until then, the warning is fairly benign.