-
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
IntelliSense not working on Remote SSH "Request canceled by server" #11717
Comments
I encountered the same issue, and I fixed it by setting the 'C_Cpp: Intelli Sense Engine' value to 'default'. |
Thank you. In my case 'C_Cpp: Intelli Sense Engine' value was already set to 'default'. |
Having the same issue. |
@RahulSisondia Can you run the C/C++: Reset IntelliSense Database command from the command palette? Does that fix it? |
@RahulSisondia @charliesabino Is the issue fixed after downgrading to 1.17.5? |
No. it doesn't fix the issue. I restarted the vscode server processes running on the remote box but that did not help either. |
@sean-mcmanus Indeed, downgrading to 1.17.5 seems to have fixed the problem. I can see intellisense rescanning in action with lot of log entries like Intellisense rescanning completed within 1-2 minutes while it is taking forever with latest versions. I noticed log entries |
FTR, downgrading |
With 1.18.5 we fixed a bug on Linux in which it wasn't using the $XDG_CACHE_HOME or $HOME/.cache. Does downgrading to 1.18.4 fix the issue? If so, there could be some issue with writing to that directory. #11693 |
Does using these remote or workspace settings fix the issue? (or some equivalent path, FYI, the intelliSenseCache path can be shared by workspaces, but you don't want the databaseFilename to be shared). "C_Cpp.intelliSenseCachePath": "${workspaceFolder}/.vscode",
"C_Cpp.default.browse.databaseFilename": "${workspaceFolder}/.vscode/vc.db" |
This did not fix the issue. I kept the path exactly as described. I could see In the log the following errors in the log.
|
using 1.18.4 also doesn;t fix the problem. Intellisensne doesn't work and I continue to see the followingn errors in log.
|
Hi @RahulSisondia . Are you able to reproduce this issue with our latest pre-release, 1.19.2? There are some significant changes to how IntelliSense passes are managed and scheduled in 1.19.2. If this still occurs for you in 1.19.2, could you provide updated logs? |
|
Had a similar problem, any version higher than 1.17.5 would crash the language server. I am developing on a remote Linux SSH as well. However, the above settings did not work for me. But I remembered I used to have problems with mounted NFS directories. Long story short, my home directory (which also contains the workspace directory) is a mounted NFS directory. Thus the cache destination My solution:
I hope this is somewhat useful for others who have the same setup. 😄 Edit: More information on the setup can be found in closed issue #7558. |
I am sorry, I still haven't got a chance to verify with latest version or 1.19.2. Hopefully I get to verify this week. |
I upgraded to 1.19.8 version today. I no longer see the problem. |
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
Hi, I'm trying to develop c++ on a linux machine using remote ssh. The connect is fine, open file is fine. However Intellisense seems not working. It keeps on the indexing, selecting "go to definition" does nothing, hovering mouse over a symbol doesn't show the preview. It seems Intellisense has stopped working due to some cancellation request by the language server. AFAICT, it is regression from the recent versions because this was working until last week.
Steps to reproduce:
(1 )Download the Remote - SSH extension and C/C++ extension
(2) Connect to remote
(3) Install the C/C++ extension on the remote
(4) Open the workspace that contains mysql source
(5) Open any cpp file and observe and try to navigate or hover the mouse over a symbol. Notice indexing and rescanning taking forever but never completes.
Expected behavior:
Hovering over a symbol must show details about that symbol. Must be able to navigate to the definitions.
Everything was working fine until Friday. Seems regression due to latest upgrades.
Downgrading the vscode and upgrading the c_cpp extension to 1.90 had no effect
Configuration and Logs
Other Extensions
clang-format
code Spell checker
copy with line numbers
Git lense
Additional context
No response
The text was updated successfully, but these errors were encountered: