You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Encounter TypeError when generating database #13818
If using SSH remote, specify OS of remote machine:
Bug Summary and Steps to Reproduce
Bug Summary:
Steps to reproduce:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior:
Configuration and Logs
Error in OUTPUT:
[ms-vscode.cpptools] provider FAILED
TypeError: vscodelm.selectChatModels is not a function
at CopilotHoverProvider.provideHover (xxx/.vscode-server/extensions/ms-vscode.cpptools-1.26.3-linux-x64/dist/src/main.js:82266:44)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async f.provideHover (xxx/.vscode-server/cli/servers/Stable-863d2581ecda6849923a2118d93a088b0745d9d6/server/out/vs/workbench/api/node/extensionHostProcess.js:150:96498)
Activity
bobbrow commentedon Aug 5, 2025
Luca (@lukka) Ben McMorran (@benmcmorran) do you know anything about this error?
sean-mcmanus commentedon Aug 5, 2025
lulu10922 Can you set
"C_Cpp.copilotHover": "disabled"as a workaround?sean-mcmanus commentedon Aug 5, 2025
VS Code Version: 1.87.2is from Feburary 2024 -- the Copilot hover might require a newer version (1.90.0 or newer).lulu10922 Can you upgrade your VS Code version?
sean-mcmanus commentedon Aug 5, 2025
lulu10922 Do you have the GitHub Copilot (Chat) Extensions installed? If so, what versions?
sean-mcmanus commentedon Aug 5, 2025
The API was added in VS Code version 1.90.0 in commit microsoft/vscode@6990923 (it got renamed).
Our code only checks that the lm exists and not the particular function.
sean-mcmanus commentedon Aug 5, 2025
In 1.87 of VS Code, that API was in a "proposed state" and was subject to breaking changes until it got out of the proposed state.
I'm not sure if there's a recommended fix on our part.
We only added the selectChatModels call in December 2024 in PR #12552 .
fix #13818
lukka commentedon Aug 5, 2025
Sean McManus (@sean-mcmanus) Colen Garoutte-Carson (@Colengms) Ben McMorran (@benmcmorran) probably this could be a fix: https://github.com/microsoft/vscode-cpptools/pull/13824/files
fix #13818 (#13824)
Merge main to vs (#13828)
sean-mcmanus commentedon Aug 7, 2025
lulu10922 Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.27.0 (assuming you didn't fix it by upgrading VS Code).