Interaction between configurationProvider and other settings #7445
Replies: 1 comment 15 replies
-
Hi @mmarczell-graphisoft . It's currently by-design that most other fields of the configuration are not used when using a custom configuration provider. One exception is the compilerPath field, which if set to a blank string can be used to disable use of the compiler provider by a custom configuration provider, which still using detected include paths, etc.. Otherwise, the other fields of the configuration are only used when the custom configuration provider does not provide a configuration for a file. It's expected that a custom configuration provider should provide a complete configuration for the file. Since you are using CMake Tools, could you onfigure your CMakeLists.txt such that the forcedInclude is specified there, such as using a -include (gcc/clang) or /FI arg (cl.exe) ? I'm not sure I understand the issue you are trying to work around. Is that error coming from the C/C++ Extension? Is "Availability.h" indeed a dependency of iostream? Is that file missing? Is the C/C++ extension failing to fully retrieve system include paths from the compiler? |
Beta Was this translation helpful? Give feedback.
-
Hello,
When I set
the forcedInclude setting is not respected. Is that a bug or intended behaviour? How can I overcome this?
The scenario is Emscripten development on a Mac, and currently there is no way to tell the development environment that it shouldn't display this error when including iostream:
cannot open source file "Availability.h" (dependency of "iostream")
I tried the approach suggested in #1083 (comment) but it didn't work.
Beta Was this translation helpful? Give feedback.
All reactions