Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intelliSense broken #8887

Closed
SmileGobo opened this issue Feb 19, 2022 · 11 comments
Closed

intelliSense broken #8887

SmileGobo opened this issue Feb 19, 2022 · 11 comments

Comments

@SmileGobo
Copy link

SmileGobo commented Feb 19, 2022

Bug type: General

vscode:
Version: 1.64.2 (user setup)
Commit: f80445acd5a3dadef24aa209168452a3d97cc326
Date: 2022-02-09T22:02:28.252Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 6.1.7601
C/C++ Extension Version: v1.8.4 (1.8.2)
cmake tools: v1.9.2
A clear and concise description of what the bug is.

Steps to reproduce the behavior:

  1. Open cmake project folder
  2. open .cpp or .h file

Expected behavior

intelliSense not work, autocomplete not work, navigate not work

Additional context

Error on extension console

[2022-02-19 15:04:21.334] [exthost] [warning] TextEditor is closed/disposed
[2022-02-19 15:04:55.678] [exthost] [error] [ms-vscode.cpptools] provider FAILED
[2022-02-19 15:04:55.678] [exthost] [error] TypeError: Cannot read property 'ActiveClient' of undefined
	at Object.<anonymous> (c:\Users\user\.vscode\extensions\ms-vscode.cpptools-1.8.4\dist\main.js:39247:37)
	at Generator.next (<anonymous>)
	at c:\Users\user\.vscode\extensions\ms-vscode.cpptools-1.8.4\dist\main.js:39062:71
	at new Promise (<anonymous>)
@BillDenton
Copy link

BillDenton commented Feb 21, 2022

I appear to have the same or similar issue. None of the C/C++ extension commands work. For example:
image
In the Log (Extension Host):
[2022-02-21 14:51:10.277] [exthost] [error] [ms-vscode.cpptools] provider FAILED
[2022-02-21 14:51:10.277] [exthost] [error] TypeError: Cannot read property 'ActiveClient' of undefined

The whole extension is completely unusable. Insider version:
Name: C/C++
Id: ms-vscode.cpptools
Description: C/C++ IntelliSense, debugging, and code browsing.
Version: 1.9.0
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools

Tried switching the release version. Still got the same problem:
[2022-02-21 14:57:25.931] [exthost] [error] [ms-vscode.cpptools] provider FAILED
[2022-02-21 14:57:25.931] [exthost] [error] TypeError: Cannot read property 'ActiveClient' of undefined
at Object. (c:\Users\den71958.vscode\extensions\ms-vscode.cpptools-1.8.4\dist\main.js:39247:37)

@BillDenton
Copy link

Tried uninstalling and re-installing. Still failing in the same way. So the C/C++ extension is completely broken as it doesn't load.

@Colengms
Copy link
Collaborator

Hi @SmileGobo @BillDenton . Could look in the .vscode\extensions\ms-vscode.cpptools-x.x.x\.vsixmanifest in your profile directory, and tell me what the value of TargetPlatform there is? I'm curious if you're repro'ing this issue: microsoft/vscode#141696

@Colengms Colengms self-assigned this Feb 22, 2022
@Colengms Colengms added Language Service more info needed The issue report is not actionable in its current state labels Feb 22, 2022
@Colengms
Copy link
Collaborator

I'm not certain this issue has been addressed, but there will be a couple of fixes in 1.9.1 that might address this. 1.9.1 should be available 'really soon'.

@BillDenton
Copy link

BillDenton commented Feb 23, 2022

@Colengms In my .vscode\extensions\ms-vscode.cpptools-1.9.0 in .vsixmanifest:
<Identity Language="en-US" Id="cpptools" Version="1.9.0" Publisher="ms-vscode" TargetPlatform="win32-x64"/>

Checking in the Log (Extension Host) today I also noticed another error from a different extension:
[2022-02-22 22:10:14.131] [exthost] [info] ExtensionService#_doActivateExtension beaglefoot.awk-ide-vscode, startup: false, activationEvent: 'onLanguage:awk'
[2022-02-22 22:10:21.525] [exthost] [error] [beaglefoot.awk-ide-vscode] provider FAILED
[2022-02-22 22:10:21.525] [exthost] [error] Error: Request getSemanticTokens failed with message: Cannot read property 'getLanguage' of undefined

....

at handleResponse (c:\Users\den71958\.vscode\extensions\beaglefoot.awk-ide-vscode-0.9.0\node_modules\vscode-jsonrpc\lib\common\connection.js:477:48)
at processMessageQueue (c:\Users\den71958\.vscode\extensions\beaglefoot.awk-ide-vscode-0.9.0\node_modules\vscode-jsonrpc\lib\common\connection.js:292:17)
at Immediate.<anonymous> (c:\Users\den71958\.vscode\extensions\beaglefoot.awk-ide-vscode-0.9.0\node_modules\vscode-jsonrpc\lib\common\connection.js:276:13)
at processImmediate (internal/timers.js:461:21)

[2022-02-23 09:05:53.340] [exthost] [error] [ms-vscode.cpptools] provider FAILED
[2022-02-23 09:05:53.340] [exthost] [error] TypeError: Cannot read property 'ActiveClient' of undefined

I recently installed the AWK extension (beaglefoot.awk-ide-vscode). Could that be causing the problem? I'll try uninstalling it.
Update: Uninstalling the AWK extension made no difference. C/C++ extension is still completely broken. A bit of a show stopper as 99.9% of my work is in C++ or C.

@BillDenton
Copy link

@bobbrow @Colengms any updates? The extension is unusable. I can't switch to the Clangd extension as our build system (scons based) doesn't produce the compiler json database. Tnanks.

@Colengms
Copy link
Collaborator

Hi @BillDenton @SmileGobo . 1.9.1 has been released. Could you check if this issue is still reproducible with 1.9.1?

@xjrjyy
Copy link

xjrjyy commented Feb 25, 2022

In my VS Code, cpptools can't use it with clangd(because of the Intelli Sense Engine setting)

[error] Error: Do not activate the extension when IntelliSense is disabled.

@BillDenton
Copy link

@xjrjyy As far as I can tell the Microsoft C/C++ extension is mutually exclusive with clangd extension. As the Microsoft extension wasn't starting I tried the clangd extension (after disabling the Microsoft extension).
@Colengms after upgrading to 1.9.1 is now working again. However, it did start working with just a window reload. I had to shut down VS Code and start again. I found that the IntelliSense had been disabled (like @xjrjyy). After re-enabling and restarting VS Code is now working. Glad to have it back again. It was quite a pain to navigate the code without it. Thaks.

@SmileGobo
Copy link
Author

SmileGobo commented Feb 25, 2022

@Colengms Hi! I'm make full reinstall code and plugins pack, but have same problem. Answer on your request
TargetPlatform="win32-x64"
PS later try new version.
PPS after reinstal not reproduced.

@Colengms
Copy link
Collaborator

It sounds like this issue was addressed with 1.9.1. :) Closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants