Custom browse configuration path irregularities #1099
Labels
bug
a bug in the product
Feature: cpptools integration
fixed (release pending)
fixed in pre-release and is pending official release
IMPORTANT
Milestone
(I initially mistakenly reported this bug to the C/C++ extension team)
Whilst looking at another unrelated issue with the C/C++ extension I turned on debug logging and saw something unusual in the paths listed in the "Custom browse configuration received:" section. Specifically, there are repeated lower-cased versions of paths (I can just about believe that's intentional due to platform differences) and/or paths with the workspace folder appended twice (I can't think of any reason for this). If this is a somewhat scattergun approach to finding things, that's not ideal, but it also doesn't seem to work quite right - I see some paths in the lower case or repeated style that don't appear correctly in the list of paths at all.
To Reproduce
My c_cpp_properties.json:
{ "configurations": [ { "name": "Mac", "includePath": [ "${workspaceFolder}/**", "~/.conan/data/**" ], "defines": [], "macFrameworkPath": [ "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks" ], "compilerPath": "/usr/bin/clang", "cStandard": "c11", "cppStandard": "c++17", "configurationProvider": "vector-of-bool.cmake-tools" } ], "version": 4 }
I simply start up VS Code, and the paths issue is visible in the start up debug output from the extension.
Expected behavior
Only valid paths are set in the browse configuration.
Screenshots
Lower casing of path (Notice /users):
Lower casing of path and repetition of the workspace folder:
Subsequent errors:
The text was updated successfully, but these errors were encountered: