Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Language server exits with code 0 and restarts repeatedly (1.35.4, Windows 11)

Aberta
#14,841 4 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@sean-mcmanus já está trabalhando nisso.

Desde 22/10/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

bug Language Service more info needed reliability
Environment
  • OS: Windows 11 Enterprise, 10.0.28000.3231
  • VS Code: 1.141.2
  • C/C++ extension: 1.35.4 (pre-release)
  • Settings: "C_Cpp.maxConcurrentThreads": 2, "C_Cpp.workspaceParsingPriority": "low"
What happens

The notification "The language server crashed. Restarting..." appears again and again. It happened five times in about 34 hours in one VS Code session, from 2026-10-20 to 2026-10-22. Each time the output channel shows the same sequence:

[Error - 8:56:31 PM] Client cpptools: connection to server is erroring.
write EPIPE
[Error - 8:56:31 PM] Server process exited with code 0.
[Error - 8:56:31 PM] Client cpptools: connection to server is erroring.
Cannot call write after a stream was destroyed
[Error - 8:56:32 PM] The language server crashed. Restarting...

The other four were at 9:57 PM, 12:52 AM, 1:28 AM and 5:05 AM. Two of them begin directly with "Server process exited with code 0." and have no write EPIPE line.

The server exits with code 0 rather than a signal, so no crash call stack is shown.

Workspace
  • A large Rust workspace with git submodules: about 4,400 tracked files, of which 7 are C/C++ files (C headers for a C ABI).
  • C/C++ is not edited during these periods.
  • Long cargo builds and test runs with two jobs often run at the same time, so the machine is under load.
Next

I have set "C_Cpp.loggingLevel": "Debug" and will add the debug log from the next occurrence to this issue. Tell me if a different capture would help more, for example a specific logging setting or a dump configuration for an exit with code 0.

— Xmip (https://github.com/IlleNilsson)

Linguagem predominante
TypeScript
Estrelas
6.2k
Forks
1.7k
Merge médio
1d 16h
PRs com merge (30d)
20

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de microsoft/vscode-cpptools

Todas as issues de microsoft/vscode-cpptools

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.