-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
1.18.3 fails to activate with older VS Code versions #11680
Comments
I had the same problem as you, and after switching to a lower version, the situation improved. |
Having a similar problem. Contextual options such as Outline tabs says No symbols found in document <filename>.c. Downgrading to |
Same here. Extension output log:
|
It looks like @tmedicci is seeing the extension fail to activate -- is everyone else seeing that too? i.e. does all extension functionality not work, or it just a problem with symbols (go to def)? Assuming the extension activates, does doing a C/C++: Reset IntelliSense Database command fix the issue? |
It's exactly that. No functionality is available because the extension fails to initialize. No command works (including |
Does anyone have any idea what is "special" about your setup, i.e. why our team isn't able to repro this? Our team is testing with the latest VS Code 1.84.2 or the latest Insiders -- it looks like one person has 1.79.2 -- is everyone else using an older VS Code version. FYI, older VS Code versions don't have security issues fixes, so it's recommended to upgrade, e.g. microsoft/vscode#192906. i.e. if that's the issue, then the potential "fix" would be to ship 1.18.4 with a higher VS Code dependency, so if you can't upgrade your VS Code version, then using 1.17.5 is the recommended workaround. |
Got error: [Uncaught ReferenceError: node is not defined] for c++ extension so extension was not getting activated at all. Updated VSCode to latest 1.84.2 and all is fine now! |
I'm using Manjaro and I was building VS Code. Updating it to the latest version fixed it. |
Got the same error: "ReferenceError: fetch is not defined", updated to the latest vscode, reinstalled extensions and now it works fine. |
I have that issue, too:
Result is no working intellisense which is quite annoying. |
It's this fetch:
|
And the function with that fetch has been introduced in that commit: And the issue is that VS Code (at least the version I'm using) is using a node.js version without a globally defined fetch, as described here: https://stackoverflow.com/a/48433898 This means this issue will come up for everyone using VS Code before version 1.82 (from August 2023), because then electron and with it node.js was update: https://code.visualstudio.com/updates/v1_82#_engineering |
@musteresel Thanks for the info -- that helped a lot. We have a pending fix at #11683 |
Environment
OS and Version: win10 x64 version 10.0.19045.2728
VS Code Version:
Version: 1.79.2 (user setup)
Commit: 695af097c7bd098fbf017ce3ac85e09bbc5dda06
Date: 2023-06-14T08:57:04.379Z
Electron: 22.5.7
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.19045
C/C++ Extension Version: 1.18.3
If using SSH remote, specify OS of remote machine:
Bug Summary and Steps to Reproduce
Bug Summary:
when C/C++ extension Version is 1.18.3, go to definition function cannot be used
When I roll back the version to 1.17.5, go to definition function available
Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: