{"action":"opened","issue":{"url":"https://api.github.com/repos/cquery-project/cquery/issues/522","repository_url":"https://api.github.com/repos/cquery-project/cquery","labels_url":"https://api.github.com/repos/cquery-project/cquery/issues/522/labels{/name}","comments_url":"https://api.github.com/repos/cquery-project/cquery/issues/522/comments","events_url":"https://api.github.com/repos/cquery-project/cquery/issues/522/events","html_url":"https://github.com/cquery-project/cquery/issues/522","id":305724905,"number":522,"title":"workspace/didChangeConfiguration doesn't update diagnostics","user":{"login":"edjubuh","id":5461357,"avatar_url":"https://avatars1.githubusercontent.com/u/5461357?v=4","gravatar_id":"","url":"https://api.github.com/users/edjubuh","html_url":"https://github.com/edjubuh","followers_url":"https://api.github.com/users/edjubuh/followers","following_url":"https://api.github.com/users/edjubuh/following{/other_user}","gists_url":"https://api.github.com/users/edjubuh/gists{/gist_id}","starred_url":"https://api.github.com/users/edjubuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edjubuh/subscriptions","organizations_url":"https://api.github.com/users/edjubuh/orgs","repos_url":"https://api.github.com/users/edjubuh/repos","events_url":"https://api.github.com/users/edjubuh/events{/privacy}","received_events_url":"https://api.github.com/users/edjubuh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-15T21:24:52Z","updated_at":"2018-03-15T21:24:52Z","closed_at":null,"author_association":"NONE","body":"I'm currently watching compile_commands.json for any changes within ide-cquery, and sending a workspace/didChangeConfiguration to cquery whenever the file gets modified. The idea is to force cquery \r\nto rescan the compile_commands.json as things change. What I'm doing to test that everything is working correctly is to modify the include paths, but I don't see symbols getting complained about that no longer exist in the world of cquery. cquery seems to respond to the didChangeConfiguration correctly - I see  the log messages that compile_commands.json is getting loaded and correctly don't see the include directories that I removed.\r\n```\r\n2018-03-15 17:15:34.958 (  87.837s) [querydb      ]        project.cc:405      0| Trying to load compile_commands.json\r\n2018-03-15 17:15:34.958 (  87.838s) [querydb      ]          timer.cc:35       0| compile_commands.json clang time took 0.59ms\r\n2018-03-15 17:15:34.958 (  87.838s) [querydb      ]          timer.cc:35       0| compile_commands.json our time took 0.158ms\r\n2018-03-15 17:15:34.959 (  87.838s) [querydb      ]        project.cc:537      0| quote_include_dir: C:/Users/Elliot/dev/driver-demo/include/\r\n2018-03-15 17:15:34.959 (  87.838s) [querydb      ]        project.cc:537      0| quote_include_dir: C:/Users/Elliot/dev/driver-demo/include/\r\n2018-03-15 17:15:34.959 (  87.838s) [querydb      ]          timer.cc:35       0| [perf] Loaded compilation entries (4 files) took 0.965ms\r\n```\r\n\r\nHowever, the diagnostics still report everything is OK. The only hint I get that something might be wrong is that clang_complete shows the arguments passed to clang, which still includes the options I removed \r\n(notice the `-Ic:\\toolchain...` paths - those are the ones I removed):\r\n\r\n```\r\n2018-03-15 17:15:42.914 (  95.793s) [completeparse] clang_complete.cc:380      0| Creating completion session with arguments clang -working-directory=C:\\Users\\Elliot\\dev\\driver-demo --target=armv7a-xilinx-none-eabi --fshort-enums -Ic:\\toolchain\\usr\\bin\\../lib/gcc/arm-none-eabi/7.2.1/include -Ic:\\toolchain\\usr\\bin\\../lib/gcc/arm-none-eabi/7.2.1/include-fixed -Ic:\\toolchain\\usr\\bin\\../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/include -iquote./include -iquote./include/./ -march=armv7-a -mfpu=neon-fp16 -mfloat-abi=softfp -D_POSIX_THREADS -D_UNIX98_THREAD_MUTEX_ATTRIBUTES -Os -Wall -ffunction-sections -fdata-sections -fdiagnostics-color --std=gnu11 C:/Users/Elliot/dev/driver-demo/src/opcontrol.c -resource-dir=C:/cquery/build/release/lib/LLVM-6.0.0-win64/lib/clang/6.0.0 -Wno-unknown-warning-option -fparse-all-comments -fspell-checking\r\n```"}}
{"actor":{"display_login":"edjubuh"}}