{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/2728","repository_url":"https://api.github.com/repos/Microsoft/vscode-cpptools","labels_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/2728/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/2728/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/2728/events","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/2728","id":374356044,"node_id":"MDU6SXNzdWUzNzQzNTYwNDQ=","number":2728,"title":"[Bug] Go To Declaration/Definition does not initialise properly","user":{"login":"dariuszseweryn","id":1412475,"node_id":"MDQ6VXNlcjE0MTI0NzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1412475?v=4","gravatar_id":"","url":"https://api.github.com/users/dariuszseweryn","html_url":"https://github.com/dariuszseweryn","followers_url":"https://api.github.com/users/dariuszseweryn/followers","following_url":"https://api.github.com/users/dariuszseweryn/following{/other_user}","gists_url":"https://api.github.com/users/dariuszseweryn/gists{/gist_id}","starred_url":"https://api.github.com/users/dariuszseweryn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dariuszseweryn/subscriptions","organizations_url":"https://api.github.com/users/dariuszseweryn/orgs","repos_url":"https://api.github.com/users/dariuszseweryn/repos","events_url":"https://api.github.com/users/dariuszseweryn/events{/privacy}","received_events_url":"https://api.github.com/users/dariuszseweryn/received_events","type":"User","site_admin":false},"labels":[{"id":355010486,"node_id":"MDU6TGFiZWwzNTUwMTA0ODY=","url":"https://api.github.com/repos/Microsoft/vscode-cpptools/labels/Language%20Service","name":"Language Service","color":"c5def5","default":false},{"id":348032328,"node_id":"MDU6TGFiZWwzNDgwMzIzMjg=","url":"https://api.github.com/repos/Microsoft/vscode-cpptools/labels/bug","name":"bug","color":"ee0701","default":true},{"id":1045443034,"node_id":"MDU6TGFiZWwxMDQ1NDQzMDM0","url":"https://api.github.com/repos/Microsoft/vscode-cpptools/labels/investigate","name":"investigate","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-26T12:11:10Z","updated_at":"2018-11-16T01:18:47Z","closed_at":null,"author_association":"NONE","body":"Not really sure if this should be reported here or on the [`CMake Tools`](https://github.com/vector-of-bool/vscode-cmake-tools/issues) site.\r\n\r\n**Type: LanguageService**\r\n<!----- Input information below ----->\r\n\r\n<!--\r\n**Please review existing issues and our documentation at https://github.com/Microsoft/vscode-cpptools/tree/master/Documentation prior to filing an issue.**\r\n-->\r\n\r\n**Describe the bug**\r\n- OS and Version: `MacOS 10.13.6`\r\n- VS Code Version: `1.28.2`\r\n- C/C++ Extension Version: `0.19.0`\r\n- Other extensions you installed (and if the issue persists after disabling them): \r\n    - `CMake` (No — without `CMake` `CMake Tools` cannot work)\r\n    - `CMake Tools` (No)\r\n    - `CMake Tools Helper` (Yes)\r\n    - `Cortex-Debug` (Yes)\r\n    - `Native Debug` (Yes)\r\n    - `GitLens — Git supercharged` (Yes)\r\n- A clear and concise description of what the bug is.\r\nRight after opening a project and waiting the initialisation to settle the `Go To Declaration/Definition` functionality does not function properly for some functions. \r\n\r\n**To Reproduce**\r\n<!-- Steps to reproduce the behavior: -->\r\n<!-- *The most actionable issue reports include a code sample including configuration files such as c_cpp_properties.json* -->\r\n1. Open the project (no tabs opened)\r\n2. Wait for the project to initialise (DB icon disappear in the bottom right part of the `VSCode`)\r\n3. Open file `long_write_service.c`\r\n4. Wait for the flame icon to disappear\r\n5. Float mouse over `sd_ble_user_mem_reply` function (68 LOC)\r\n6. See error — no declaration/definition is suggested\r\nWorking scenario below:\r\n7. Close the `VSCode` while `long_write_service.c` is opened\r\n8. Open the project again (`long_write_service.c` is opened from the start)\r\n9. Wait for the project to initialise (DB icon disappear in the bottom right part of the `VSCode`)\r\n10. Wait for the flame icon to disappear\r\n11. Float mouse over `sd_ble_user_mem_reply` function (68 LOC)\r\n12. See declaration/definition suggestion\r\n\r\n**Expected behavior**\r\n<!-- A clear and concise description of what you expected to happen. -->\r\nThe IntelliSense `Go To Declaration/Definition` and other helpers should work correctly no matter what is the the tab visible during startup.\r\n\r\n<!-- **Screenshots** -->\r\n<!-- If applicable, add screenshots to help explain your problem. -->\r\n\r\n**Additional context**\r\n<!--\r\n*Call Stacks: For bugs like crashes, deadlocks, infinite loops, etc. that we are not able to repro and for which the call stack may be useful, please attach a debugger and/or create a dmp and provide the call stacks. Starting with 0.17.3, Windows binaries have symbols available in VS Code by setting your \"symbolSearchPath\" to \"http://msdl.microsoft.com/download/symbols\".*\r\nAdd any other context about the problem here including log messages in your Output window (\"C_Cpp.loggingLevel\": \"Debug\" in settings.json).\r\n-->\r\nThe project uses [`gcc-arm-none-eabi-7-2017-q4-major`](https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads) compiler and [`nRF5_SDK_12.3.0_d7731ad`](https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v12.x.x/) Nordic Semiconductors SDK that are put _outside_ of the test project directory.\r\n\r\nAttached files:\r\n- Setup files with the test project \r\n[test_project.zip](https://github.com/Microsoft/vscode-cpptools/files/2519077/test_project.zip)\r\n- Logs from the `C++` plugin for both failure and success scenario \r\n[intellisense_failure.txt](https://github.com/Microsoft/vscode-cpptools/files/2519073/intellisense_failure.txt)\r\n[intellisense_success.txt](https://github.com/Microsoft/vscode-cpptools/files/2519074/intellisense_success.txt)\r\n- The header file which contains `sd_ble_user_mem_reply` function description (added `.txt` extension) \r\n[ble.h](https://github.com/Microsoft/vscode-cpptools/files/2519072/ble.h.txt)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/comments/439248593","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/2728#issuecomment-439248593","issue_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/2728","id":439248593,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTI0ODU5Mw==","user":{"login":"sean-mcmanus","id":19859882,"node_id":"MDQ6VXNlcjE5ODU5ODgy","avatar_url":"https://avatars0.githubusercontent.com/u/19859882?v=4","gravatar_id":"","url":"https://api.github.com/users/sean-mcmanus","html_url":"https://github.com/sean-mcmanus","followers_url":"https://api.github.com/users/sean-mcmanus/followers","following_url":"https://api.github.com/users/sean-mcmanus/following{/other_user}","gists_url":"https://api.github.com/users/sean-mcmanus/gists{/gist_id}","starred_url":"https://api.github.com/users/sean-mcmanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean-mcmanus/subscriptions","organizations_url":"https://api.github.com/users/sean-mcmanus/orgs","repos_url":"https://api.github.com/users/sean-mcmanus/repos","events_url":"https://api.github.com/users/sean-mcmanus/events{/privacy}","received_events_url":"https://api.github.com/users/sean-mcmanus/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T01:18:47Z","updated_at":"2018-11-16T01:18:47Z","author_association":"COLLABORATOR","body":"Okay, sorry for the misunderstanding -- yeah the failure case is when it falls back to using the Tag Parser because it's using the seemingly incorrect results from the CMake Tools custom configuration provider, but when you start our extension with the file open, the CMake Tools provider isn't ready yet so it's getting the results from the compile_commands.json. That's what is shows in your logs. CMake Tools seems to think your compiler is clang, but your compiler_commands.json is using gcc. Are you able to configure CMake Tools? So, you shouldn't actually need to add SVCALL to cpp.hint, unless you want Find Symbol or non-IntelliSense-based Go to Def to work."}}
{"actor":{"display_login":"sean-mcmanus"}}