microsoft / microsoft/vscode-cpptools

'Update code model for cpptools Error' after disable cpptools's IntelliSense

Open
#8,279 4 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Language Service
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Brief Issue Summary

After update cpptools to 1.7.0(IntelliSense has been disable), Update code model for cpptools Error log will show when configure.

Debug Log
[main] Safe constructing new CMakeTools instance
[variant] Constructing VariantManager
[main] Constructing new CMakeTools instance
[main] Starting CMakeTools second-phase init
[variant] Loaded new set of variants
[main] CMakeTools instance initialization complete.
[kit] Reading kits file xxxxxx\cmake-tools-kits.json
[kit] Successfully loaded 8 kits from xxxxxx\cmake-tools-kits.json
[kit] Not reading non-existent kits file: xxxxxx\cmake-kits.json
[main] Injecting new Kit into CMake driver
[extension] Using cache to configure workspace on open file:///xxxxxx
[main] Starting new CMake driver
[main] Starting CMake driver
[main] Using generator from user configuration: Ninja
[cmakefileapi-driver] Creating instance of CMakeFileApiDriver
[driver] Initializating base driver using kit
[driver] CMakeDriver Kit set to Visual Studio Community 2019 Release - amd64
[kit] OK running xxxxxx\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat x64, env vars:xxxxxx
[driver] Run _refreshExpansions
[driver] Run _refreshExpansions cb
[cache] Reading CMake cache file xxxxxx/build/Debug/CMakeCache.txt
[cache] Parsing CMake cache string
[cache] Reading CMake cache file xxxxxx/CMakeCache.txt
[cache] Parsing CMake cache string
[cmakefileapi-parser] Read reply folder: xxxxxx\build\Debug\.cmake\api\v1\reply
[cmakefileapi-parser] Found index files: ["cache-v2-d94fb1ac8145deee2684.json","codemodel-v2-19b47e44f6078814bb45.json","index-2021-09-18T11-56-26-0823.json","target-Utils-Debug-ae79c13cc81fa1e0ac66.json","target-UtilsTest-Debug-025563727d3d9d72a9cc.json"]
[cmakefileapi-driver] This version of CMake does not support the "toolchains" object kind. Compiler paths will be determined by reading CMakeCache.txt.
[driver] Setting new variant Debug
[driver] Run _refreshExpansions
[driver] Run _refreshExpansions cb
[driver] Run _refreshExpansions
[driver] Run _refreshExpansions cb
[driver] Use cached configuration 
[driver] Runnnig pre-configure checks and steps
[driver] Run _refreshExpansions
[driver] Run _refreshExpansions cb
[cmakefileapi-parser] Read reply folder: xxxxxx\build\Debug\.cmake\api\v1\reply
[cmakefileapi-parser] Found index files: ["cache-v2-d94fb1ac8145deee2684.json","codemodel-v2-19b47e44f6078814bb45.json","index-2021-09-18T11-56-26-0823.json","target-Utils-Debug-ae79c13cc81fa1e0ac66.json","target-UtilsTest-Debug-025563727d3d9d72a9cc.json"]
[cache] Reading CMake cache file xxxxxx/build/Debug/CMakeCache.txt
[cache] Parsing CMake cache string
[cache] Reading CMake cache file xxxxxx/build/Debug/CMakeCache.txt
[cache] Parsing CMake cache string
[rollbar] Unhandled exception: Unhandled Promise rejection: Update code model for cpptools Error: Do not activate the extension when IntelliSense is disabled. {}
[rollbar] Unhandled exception: Unhandled Promise rejection: Update code model for cpptools Error: Do not activate the extension when IntelliSense is disabled. {}
[cache] Reading CMake cache file xxxxxx/build/Debug/CMakeCache.txt
[cache] Parsing CMake cache string
[rollbar] Unhandled exception: Unhandled Promise rejection: Update code model for cpptools Error: Do not activate the extension when IntelliSense is disabled. {}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by searching for the "Update code model for cpptools" error and the code-model update path in the TypeScript VS Code extension. Reproduce configuration with cpptools 1.7.0 and IntelliSense disabled using the provided log pattern; done means configuration no longer emits the unhandled error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, typescript, vscode
Domain
build-system, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.