Open niamotullah opened 11 months ago
Is it possible to fix this without installing
libstdc++-12-dev
, So when a user installclangd
extension this problem doesn't occur at the first place?
Yes, please see https://github.com/clangd/clangd/issues/1394#issuecomment-1328676884 with a description of the problem, and four available workarounds. Only one of the four involves installing libstdc++-12-dev
. (The comment talks about g++-12
, I guess libstdc++-12-dev
is the more specific dependency that brings in which is relevant.)
Is it possible to fix this without installing
libstdc++-12-dev
, So when a user installclangd
extension this problem doesn't occur at the first place?Yes, please see clangd/clangd#1394 (comment) with a description of the problem, and four available workarounds. Only one of the four involves installing
libstdc++-12-dev
. (The comment talks aboutg++-12
, I guesslibstdc++-12-dev
is the more specific dependency that brings in which is relevant.)
Sorry, i guess there is some misunderstanding, As i already told, i resolved my issue (by installing libstdc++-12-dev
). So intention of this bug report wasn't about for finding different ways of fixing the problem, Rather the intention was to ask for a solution (if there's so) where the problem wouldn't occur at the first place.
the intention was to ask for a solution (if there's so) where the problem wouldn't occur at the first place
This is discussed in the last paragraph of the comment I linked to:
I think a proper fix would involve fixing the clang driver's heuristics for locating standard library paths, to handle this situation correctly. [...] the code in question is not in clangd, it's upstream in libclangDriver
Issue
After installing this extension VSCode editor shows error on C++ file saying
'iostream' file not foundclang(pp_file_not_found)
. But it compiles without any problem.Temp Solution
After googling i found lots of people also facing the same problem. But none of those mentioned soutions worked for me except one from this post stackoverflow.com, Where installing
libstdc++-12-dev
solved the missing header problem in C++ files:Question
libstdc++-12-dev
, So when a user installclangd
extension this problem doesn't occur at the first place?libstdc++-12-dev
is necessary for this to work, then maybe a message (after installingclangd
extension) to installlibstdc++-12-dev
would help lot.Logs
clangd "Output" window logs with
--log=verbose
:System information
clangd
and other installed compilers:Here is the installed extension lists:
Operating system