microsoft / microsoft/vscode-cpptools

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

Offen
#8,279 4 Kommentare 5 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug Language Service
Vorherrschende Sprache
TypeScript
Sterne
6.2k
Forks
1.7k
Ø Merge
14 Std. 46 Min.
Gemergte PRs (30 T.)
61

Beschreibung

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. {}

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit der Suche nach dem Fehler "Update code model for cpptools" und dem Code-Modell-Aktualisierungspfad in der TypeScript-VS-Code-Erweiterung. Reproduziere die Konfiguration mit cpptools 1.7.0 und deaktiviertem IntelliSense unter Verwendung des bereitgestellten Protokollmusters; als erledigt gilt die Aufgabe, wenn die Konfiguration den unbehandelten Fehler nicht mehr ausgibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cmake, typescript, vscode
Bereich
build-system, devtools
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.