Hello!
Before CLion Nova, I used to retrieve the compiler settings as such:
public * getConfiguration(VirtualFile file) {
var psiFile = PsiManager.getInstance(project).findFile(file);
if (!(psiFile instanceof CppFile cppFile)) {
return;
}
var configuration = getConfiguration(project, file);
var cLanguageKind = getLanguageKind(cppFile.getLanguage());
var compilerSettings = configuration.getCompilerSettings(cLanguageKind, file);
var compilerKind = compilerSettings.getCompilerKind(); // -> Returns null
[...]
}
However, since CLion Nova (ReSharper engine enabled), the compiler settings do not return anything on C files.
What could be the reason? Is there a workaround with a new API?
Thank you!