You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am compiling for ARM embedded with arm-none-eabi using coc.nvim with Vim 9.1.
Trying to use std::array gives me the error no template named 'array' in namespace 'std' (ccls 2). I have included the correct header file before the usage and using COC's go to definition takes me to the correct version i.e. the arm-none-eabi file.
As you can see, I have provided the correct compiler path with --gcc-toolchain and -isystem. This is how I got COC to find the correct header file. The header file itself clearly defines the templated array struct. Importantly, this code does compile correctly and I am using the compile commands generated with bear make. The problem is only with the language server.
It is possible that this is an error on my part. Perhaps there is a command line option in the compile commands which is not supported by clang. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
I am compiling for ARM embedded with arm-none-eabi using coc.nvim with Vim 9.1.
Trying to use
std::array
gives me the errorno template named 'array' in namespace 'std' (ccls 2)
. I have included the correct header file before the usage and using COC's go to definition takes me to the correct version i.e. the arm-none-eabi file.My COC setup is as follows:
As you can see, I have provided the correct compiler path with
--gcc-toolchain
and-isystem
. This is how I got COC to find the correct header file. The header file itself clearly defines the templated array struct. Importantly, this code does compile correctly and I am using the compile commands generated withbear make
. The problem is only with the language server.It is possible that this is an error on my part. Perhaps there is a command line option in the compile commands which is not supported by clang. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: