Resolve headers on the remote host without local copy
Hello.
Our remote host is a linux environment. Local is windows.
I am using CLion only for development. Building occurs separately (on the remote).
I have cloned the sources of my project locally and have them remotely as well. I have managed to connect to the remote and sync with my sources there.
The sources of some utility library files however are only on the remote (and should stay there since they are huge, common and get outdated quickly).
The result is that CLion fails to resolve the paths referenced in the CMakeLists.txt (which was created with regards to the remote structure),
and I don't get any type recognition, or code navigation.
Is there a way to make CLion resolve these headers without having to download all of them locally?
Please sign in to leave a comment.
Hello!
First of all please note that for now in the full remote mode CLion supports only the following scenario: sources are originally located on local machine, and then are automatically synchronized by CLion to remote host. Opening projects located on remote host the is not supported yet: https://youtrack.jetbrains.com/issue/CPP-14584, but there is a workaround described in the issue. Also feel free to comment or upvote the issue in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
As for the headers: no, there is no way. CLion synchronizes header search paths with all the content from the remote machine to the local client in order to resolve your code correctly.