I am in the following situation.
I have a docker
image with a file-system which is, starting from the root
, of this kind
bin
etc
...
home
/myname
/MyProject
...
usr
...
and my local host is running an Ubuntu 20.04
distribution with its typical file-system of the form
bin
etc
...
home
/myname
/MyProject
...
usr
...
The folder MyProject
is shared (i.e. if I change some file in that folder, I can see the change both locally and in the docker) and such a folder is tracked with git
.
Hence, the development process is to implement software changes locally and then build the overall project into the docker
image.
The project language is C
(embedded).
I have a locally-installed LSP
that sometimes reports some errors due to that there are some files that exist somewhere in the docker but I don't have locally (think for example to some header
files that are located outside the folder MyProject
on the container but on the host or to some other supporting file needed by the specific compiler version that is on the container but on the host).
What could be the best way to get the benefit of using a LSP
in this kind of situation?