-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Failed to read response from server: 20 while parsing document #6688
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
Comments
Our IntelliSense process (cpptools-srv) is crashing. Are you able to somehow get a crash call stack? Otherwise, we may need an isolated repro. We have a preview release with some crash fixes at https://github.com/microsoft/vscode-cpptools/releases/tag/1.2.0-preview you could try. |
Well I've checked Version 1.20-preview is better (I can now follow by headers) but still can't follow symbols, I see following errors while trying to hover/follow symbols:
|
Something sometimes suppresses Mac crashes getting logged to ~/Library/Logs/DiagnosticReports (we haven't figured out what causes the difference in behavior). I don't know what you mean by a cout << *nullptr program -- that would crash your own program and not affect cpptools-srv. cpptools-srv on Mac has a problem in that attaching a debugger may cause it to exit out -- however, 1.2.0-preview has a new IPC mechanism so I haven't checked if that issue still happens yet. Either way, it's relatively high on our TODO list to make it possible for users to attach a debugger to cpptools-srv possible, see #6151 . Yeah, the new "IntelliSense process crash detected" message replaces the "Failed to read response" message. |
Well when I'm trying to connect debugger to the
errors from Console.app:
It seems that macOS forbids to debug binaries, which signs doesn't contains com.apple.security.get-task-allow entitlement. (See more in https://apple.stackexchange.com/questions/409046/how-to-get-lldb-to-work-on-m1-big-sur) Do you have sources of It seems that it is some macOS specific issue since same plugin with same vscode version opening same source code on Linux machine works like a charm.
I just want to say that in general crash reporting works on my system except |
vscode might be suppressing crash reporting of child processes. Your original bug report said you were on mac 10.15.7. You're on 11.1 now? When I run "lldb -p" I don't get that error -- it stops in the debugger (but then the app exits out, which is a different issue we need to fix). Maybe my Mac is configured differently to get around that issue. We'll try to find some way to get crash call stacks on Mac... |
Nope, I still use macOS 10.15.7 (Catalina)/ XCode Version 12.1 (12A7403)/lldb-1200.0.32.1.
It seems that you trying to connect to the unsigned
Did you try to connect to the process without stopping process (more specifically sending command If you can give me unsigned version of |
No, I'm attaching to cpptools from 1.1.3 which has signed binaries -- after I use "continue" the process exits out due to an issue that we've fixed (#6151), afterwhich I can use "continue". I haven't fixed attaching to cpptools-srv yet (#6736). Why do you believe an unsigned binary would enable debugging of the crash? Also, I'm hitting an issue where I can't get VS Code to break into the debugger that I've been talking to @WardenGnaw about, but I don't hit that issue using lldb. @Colengms @WardenGnaw Are you familiar with get-task-allow issue or why I'm not hitting this? |
Are you able to get a crash call stack with https://github.com/microsoft/vscode-cpptools/releases/tag/1.2.0-insiders3 now? We fixed the attach issue, but we're not able to repro the get-task-allow issue, so we're not sure what is going on with that yet. |
This issue has been closed automatically because it needs more information and has not had recent activity. |
Type: LanguageService
I have an issue with language server. When I'm opening one file with vscode-cpptools enabled it seems that intellisense doesn't work and in c/c++ output I see following lines:
I see suspicious
Failed to read response from server: 20
but I don't know why client failed to read response.Describe the bug
Steps to reproduce
Unfortunately I can't share code sample to reproduce error.
Expected behavior
Logs
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: