{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1828","repository_url":"https://api.github.com/repos/Microsoft/vscode-cpptools","labels_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1828/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1828/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1828/events","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/1828","id":314211960,"number":1828,"title":"compileCommands has no effect at all","user":{"login":"olifre","id":166759,"avatar_url":"https://avatars0.githubusercontent.com/u/166759?v=4","gravatar_id":"","url":"https://api.github.com/users/olifre","html_url":"https://github.com/olifre","followers_url":"https://api.github.com/users/olifre/followers","following_url":"https://api.github.com/users/olifre/following{/other_user}","gists_url":"https://api.github.com/users/olifre/gists{/gist_id}","starred_url":"https://api.github.com/users/olifre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olifre/subscriptions","organizations_url":"https://api.github.com/users/olifre/orgs","repos_url":"https://api.github.com/users/olifre/repos","events_url":"https://api.github.com/users/olifre/events{/privacy}","received_events_url":"https://api.github.com/users/olifre/received_events","type":"User","site_admin":false},"labels":[{"id":355010486,"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/labels/Language%20Service","name":"Language Service","color":"c5def5","default":false},{"id":348032333,"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-04-13T18:44:53Z","updated_at":"2018-04-13T22:26:33Z","closed_at":"2018-04-13T22:17:18Z","author_association":"NONE","body":"VScode 1.22.1, cpptools 1.16.1\r\n\r\nIn `c_cpp_properties.json`, I have:\r\n```\r\n            \"compileCommands\": \"${workspaceFolder}/build/compile_commands.json\",\r\n```\r\nand that file contains, amongst other stuff:\r\n```\r\n{\r\n  \"directory\": \"/home/olifre/gits/rootStaticAnalyzer/build\",\r\n  \"command\": \"/usr/lib/llvm/5/bin/clang++-5.0   -I/opt/root/6.12/include -I../src/include -I../src/tests/include    -Wall -Woverloaded-virtual -Wshadow -Wextra -std=c++11 -O2 -g -DNDEBUG   -o src/CMakeFiles/rootStaticAnalyzer.dir/streamingUtils.cpp.o -c /home/olifre/gits/rootStaticAnalyzer/src/streamingUtils.cpp\",\r\n  \"file\": \"/home/olifre/gits/rootStaticAnalyzer/src/streamingUtils.cpp\"\r\n},\r\n```\r\nHowever, editing `~/gits/rootStaticAnalyzer/src`, none of the includes are resolved.\r\nChecking in the logs, with loglevel `INFO`, I get:\r\n```\r\nChecking for syntax errors: file:///home/olifre/gits/rootStaticAnalyzer/src/streamingUtils.cpp\r\n0 include path suggestion(s) discovered.\r\n```\r\nEditing `c_cpp_properties.json` and trying to add manual paths to the `includePath` array only reveals this in the logs:\r\n```\r\nShutting down IntelliSense server: /home/olifre/gits/rootStaticAnalyzer/src/streamingUtils.cpp\r\n  Folder: /home/olifre/gits/rootStaticAnalyzer/ will be indexed\r\n  Folder: /usr/local/include/ will be indexed\r\n  Folder: /usr/lib64/clang/6.0.0/include/ will be indexed\r\nChecking for syntax errors: file:///home/olifre/gits/rootStaticAnalyzer/src/streamingUtils.cpp\r\n```\r\nIt seems like `compileCommands` is fully ignored. Any ideas how to find out what is happening here?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/comments/381275244","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/1828#issuecomment-381275244","issue_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/1828","id":381275244,"user":{"login":"olifre","id":166759,"avatar_url":"https://avatars0.githubusercontent.com/u/166759?v=4","gravatar_id":"","url":"https://api.github.com/users/olifre","html_url":"https://github.com/olifre","followers_url":"https://api.github.com/users/olifre/followers","following_url":"https://api.github.com/users/olifre/following{/other_user}","gists_url":"https://api.github.com/users/olifre/gists{/gist_id}","starred_url":"https://api.github.com/users/olifre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olifre/subscriptions","organizations_url":"https://api.github.com/users/olifre/orgs","repos_url":"https://api.github.com/users/olifre/repos","events_url":"https://api.github.com/users/olifre/events{/privacy}","received_events_url":"https://api.github.com/users/olifre/received_events","type":"User","site_admin":false},"created_at":"2018-04-13T22:26:33Z","updated_at":"2018-04-13T22:26:33Z","author_association":"NONE","body":"Ah, understood, many thanks for the detailed explanation! \r\nI might have noticed this issue earlier if the chosen configuration would have been shown in the status bar. For some reason, this was not the case - but it is there now, after removing the other configs. \r\n\r\nSo many thanks for providing help even if the issue in the end was not really cpptools! :+1: "}}
{"actor":{"display_login":"olifre"}}