{"action":"closed","issue":{"url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1763","labels_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1763/labels{/name}","comments_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1763/comments","events_url":"https://api.github.com/repos/Valloric/YouCompleteMe/issues/1763/events","html_url":"https://github.com/Valloric/YouCompleteMe/issues/1763","id":116114038,"number":1763,"title":"Incomplete types detected by YCM","user":{"login":"robertsawko","id":773606,"avatar_url":"https://avatars.githubusercontent.com/u/773606?v=3","gravatar_id":"","url":"https://api.github.com/users/robertsawko","html_url":"https://github.com/robertsawko","followers_url":"https://api.github.com/users/robertsawko/followers","following_url":"https://api.github.com/users/robertsawko/following{/other_user}","gists_url":"https://api.github.com/users/robertsawko/gists{/gist_id}","starred_url":"https://api.github.com/users/robertsawko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertsawko/subscriptions","organizations_url":"https://api.github.com/users/robertsawko/orgs","repos_url":"https://api.github.com/users/robertsawko/repos","events_url":"https://api.github.com/users/robertsawko/events{/privacy}","received_events_url":"https://api.github.com/users/robertsawko/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-10T14:09:52Z","updated_at":"2015-11-12T13:18:07Z","closed_at":"2015-11-12T13:18:07Z","body":"Hello,\r\n\r\nI am working again with YCM developing an application for library called OpenFOAM. The project ycm file as well as the project are [here](https://github.com/robertsawko/STFFoam/blob/master/.ycm_extra_conf.py). The YCM file works by using environmental variables to include the correct directories. Completion and detecting errors mostly works, but I have a few that I cannot quite nail down and I was wondering if I can ask for your input.\r\n\r\nI get two errors:\r\n```\r\nerror: 'SomeType' does not refer to a value\r\nerror: incomplete type 'SomeTemplatedType' named in nested name specifier\r\n```\r\nI think they are related as it's all about templated types or types that I pass as template arguments. None of this errors appears in the compilation. I tried using `-include` switch in `.ycm_extra_conf.py` to include the file containing the templated class explicitly but that didn't resolve it.\r\n\r\nAs far as I can see I am putting exactly the same options and includes to my cmake and to YCM, so I feel that the difference must be more subtle.\r\n\r\nAlso, the `typdef` was not deteted until I included the file containing them explicitly \r\n```python\r\n    '-include ' + foam_src + '/finiteVolume/lnInclude/volFieldsFwd.H'\r\n```\r\nThis may or may not be related. Another little thing that may be going on here is that OpenFOAM uses environmental variables to instantiate some template classes. For instance Vector can be float or double depending on the type of compilation specified in the environment. "}}