-
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 #7131
Comments
Can you set When you do Help->Toggle Developer Tools->Console do you see any relevant errors? Do you see an "activating extension" message from our extension? Is the cpptools process running? What is the CPU usage? |
|
It sounds the like the cpptools process may be stuck. Can you set C_Cpp.loggingLevel to "Debug" and provide the logs from the "C/C++" output or see what the last lines of output are? Also, are you able to attach a debugger to get a callstack? https://github.com/microsoft/vscode-cpptools/wiki/Attaching-debugger-to-cpptools-or-cpptools%E2%80%90srv |
Also, are you able login to the machine and use VS Code without using SSH? |
|
The logs show that the IntelliSense process is not launching and I don't see any indication that it's stuck. Is your C_Cpp.intelliSenseEngine set to "Default"? What is the logging show when you invoke formatting? It's possible your computer is really slow and the IntelliSense process launching is stuck waiting for tag parsing to finish (I noticed it's parsing some system header files). Do any more tag parsing messages appear in the logs or is that finished? Hmm, I'm not sure why you're getting that "superuser access" message. You shouldn't need superuser access to attach unless the process you're attaching to has superuser access. @WardenGnaw Do you know about this? I'm not aware of how attaching to our cpptools process could harm your computer in any way even with superuser access. We were thinking your might be able to remote desktop into the machine -- if your IT administrators haven't explained how you can do this then it might not be possible. |
|
|
After the logging shows "Formatting Engine: clangFormat" it appears that the clang-format process is taking a long time to do the formatting -- you could confirm that via running something like top/htop to see the CPU usage. During that time it appears to be tag parsing more system includes. You may want to try waiting for cpptools to enter an idle state (stop tag parsing) before doing a formatting to see if that gives better results (but I don't know a reason tag parsing would block formatting). You could also compare the performance of running clang-format for the Facility.cpp file directly on the command line (my guess is that it would be equally slow). Also, there is strange behavior with the IntelliSense processing for mayday.cpp. I see it process a didClose for that file, but then it appears to launch the IntelliSense process for that file 2 more times and then shutting down and that appears to delay the launching of the IntelliSense process for Facility.cpp -- this may indicate the queue for IntelliSense work is backlogged with old work. |
Is there any way to fix this issue of slowness? Would doing a remote desktop into my school computer resolve it? |
Since everything appears to be running on the remote computer without any remote calls between computers, I wouldn't expect alternative remoting methods to yield different results, although it may still be worth trying. Are other tasks on the machine equally slow, such as tasks on the command line such as compiling or clang-format? Are multiple students remoting into the same machine? |
|
We've found/fixed a performance bug (#7159) when formatting occurs which could cause didChange processing to take a long time. I'm not sure if that's what you were hitting or not though, because your logs don't seem to indicate that, but it could block the main thread for several seconds after a format occurred. |
We've fixed a bug with format performance with https://github.com/microsoft/vscode-cpptools/releases/tag/1.3.0-insiders , although your performance issue sounds like it still might not be resolved. |
Issue Type: Bug
I recently connected to my school's computer using the Remote - SSH extension. I have installed the C/C++ extension on my school computer as well. However, Intellisense is not working. These are the steps I followed to get to where I am now:
VS Code is able to successfully connect to the host since the built-in terminal shows the home directory of my school's PC. Additionally, the configuration now running is Linux as shown in the bottom right. However, I am having the following issues with Intellisense:
All of these features work on my local computer.
Extension version: 1.2.2
VS Code version: Code 1.54.1 (f30a9b73e8ffc278e71575118b6bf568f04587c8, 2021-03-04T22:42:18.719Z)
OS version: Darwin x64 20.3.0
Remote OS version: Linux x64 4.15.0-136-generic
System Info
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: