How to reproduce:
Debug
to any compiler other than GCC#include <stdlib.h>
in main.c
Then header file of chosen compiler (or rather of the compiler associated to the active target) is expected to be opened, but header in path of GCC is opened
Using CB svn11246 (nightly build) on Win10.
What is the other compiler?
x86_64-w64-mingw32-gcc/g++.exe.
This is too generic. Version number, link to download, etc, please...
Probably relevant here: The nice thing about the msys2 shell is that paths are displayed as, e.g., /c/temp (for C:/temp), while cygwin sticks to /cygdrive/c/temp. Both shells ignore single backslashs, in general, since backslashs are to be escaped by a backslash.
If any piece of info is missing, I am happy to share.
The reason here is:
When you create the project, the default compiler is GCC, and after your create the project, CodeCompletion use the Compiler(GCC) to fetch all the compiler build-in search paths, so when you switch the compiler, it won't change the build-in search paths.
I think you can save the project after changing the compiler, and then close the project. Then reopen the project, this time, CodeCompletion will use the new compiler set to fetch the include search paths.