question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The Prisma Language Server server crashed 5 times in the last 3 minutes. The Service will not restart

See original GitHub issue

Bug description

when i open file .prisma the extension crash

Logs

[Info  - 02:02:02] Default version of Prisma binary 'prisma-fmt': 5d491261d382a2a5ffdc71de17072b0e409f1cc1
[Info  - 02:02:02] Extension name @prisma/language-server with version 2.14.0
[Info  - 02:02:02] Prisma CLI version: 2.14.0
[Info  - 02:02:03] Local prisma-fmt path: /home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/@prisma/language-server/dist/src/prisma-fmt.5d491261d382a2a5ffdc71de17072b0e409f1cc1
[Info  - 02:02:03] Downloading prisma-fmt from https://binaries.prisma.sh/all_commits/5d491261d382a2a5ffdc71de17072b0e409f1cc1/debian-openssl-1.1.x/prisma-fmt.gz
[Info  - 02:02:11] Connection to server got closed. Server will restart.
[Error - 02:02:11] Request textDocument/formatting failed.
Error: Connection got disposed.
	at Object.dispose (/home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/vscode-jsonrpc/lib/main.js:904:25)
	at Object.dispose (/home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/vscode-languageclient/lib/client.js:74:35)
	at LanguageClient.handleConnectionClosed (/home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/vscode-languageclient/lib/client.js:2309:42)
	at LanguageClient.handleConnectionClosed (/home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/vscode-languageclient/lib/main.js:155:15)
	at closeHandler (/home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/vscode-languageclient/lib/client.js:2296:18)
	at CallbackList.invoke (/home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/vscode-jsonrpc/lib/events.js:62:39)
	at Emitter.fire (/home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/vscode-jsonrpc/lib/events.js:121:36)
	at closeHandler (/home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/vscode-jsonrpc/lib/main.js:240:26)
	at CallbackList.invoke (/home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/vscode-jsonrpc/lib/events.js:62:39)
	at Emitter.fire (/home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/vscode-jsonrpc/lib/events.js:121:36)
	at IPCMessageReader.fireClose (/home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
	at ChildProcess.<anonymous> (/home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/vscode-jsonrpc/lib/messageReader.js:213:45)
	at ChildProcess.emit (events.js:228:7)
	at maybeClose (internal/child_process.js:1021:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
[Info  - 02:02:12] Default version of Prisma binary 'prisma-fmt': 5d491261d382a2a5ffdc71de17072b0e409f1cc1
[Info  - 02:02:12] Extension name @prisma/language-server with version 2.14.0
[Info  - 02:02:12] Prisma CLI version: 2.14.0
[Info  - 02:02:12] Local prisma-fmt path: /home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/@prisma/language-server/dist/src/prisma-fmt.5d491261d382a2a5ffdc71de17072b0e409f1cc1
[Info  - 02:02:12] Connection to server got closed. Server will restart.
[Info  - 02:02:16] Default version of Prisma binary 'prisma-fmt': 5d491261d382a2a5ffdc71de17072b0e409f1cc1
[Info  - 02:02:16] Extension name @prisma/language-server with version 2.14.0
[Info  - 02:02:16] Prisma CLI version: 2.14.0
[Info  - 02:02:16] Local prisma-fmt path: /home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/@prisma/language-server/dist/src/prisma-fmt.5d491261d382a2a5ffdc71de17072b0e409f1cc1
[Info  - 02:02:16] Connection to server got closed. Server will restart.
[Info  - 02:02:17] Default version of Prisma binary 'prisma-fmt': 5d491261d382a2a5ffdc71de17072b0e409f1cc1
[Info  - 02:02:17] Extension name @prisma/language-server with version 2.14.0
[Info  - 02:02:17] Prisma CLI version: 2.14.0
[Info  - 02:02:17] Local prisma-fmt path: /home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/@prisma/language-server/dist/src/prisma-fmt.5d491261d382a2a5ffdc71de17072b0e409f1cc1
[Info  - 02:02:17] Connection to server got closed. Server will restart.
[Info  - 02:02:19] Default version of Prisma binary 'prisma-fmt': 5d491261d382a2a5ffdc71de17072b0e409f1cc1
[Info  - 02:02:19] Extension name @prisma/language-server with version 2.14.0
[Info  - 02:02:19] Prisma CLI version: 2.14.0
[Info  - 02:02:19] Local prisma-fmt path: /home/fede/.vscode/extensions/prisma.prisma-2.14.0/node_modules/@prisma/language-server/dist/src/prisma-fmt.5d491261d382a2a5ffdc71de17072b0e409f1cc1
[Error - 02:02:19] Connection to server got closed. Server will not be restarted.

Prisma Schema

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

datasource db {
  provider = "mysql"
  url      = env("DATABASE_URL")
}

generator client {
  provider = "prisma-client-js"
}

model User {
  hi   Int    @id
  test String
  hdi  Test   @relation(fields: [testId], references: [id])

  testId Int
}

model Test {
  id   Int    @id
  User User[]
}

Environment & setup

  • OS: Arch Linux
  • Editor: VSCode
  • Editor version: 1.52.1
  • Extension version: 2.14.0 & 15.0.11

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
Fedeyacommented, Jan 11, 2021

i solve the problem using this command in my home user folder

chmod +x .vscode/extensions/prisma.prisma-2.14.0/node_modules/@prisma/language-server/dist/src/prisma-fmt.5d491261d382a2a5ffdc71de17072b0e409f1cc1

after, use the restart language server in vscode

1reaction
TheRafaelFariascommented, Aug 15, 2021

Still happening on 2.29.1. Making prisma-fmt executable resolved for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Prisma Language Server server crashed 5 times ... - GitHub
The Prisma Language Server server crashed 5 times in the last 3 minutes. The Service will not restart #569.
Read more >
The PHP Language Server server crashed 5 times in the last 3 ...
The PHP Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted · Kindly check the...
Read more >
The language server crashed 5 times in the last 3 minutes. In c ...
I worked on a medium sized C project and at times it became so slow that I constantly have to restart VSCode.
Read more >
@prisma/language-server - npm
Any editor that is compatible with the Language Server Protocol can create clients that can use the features provided by this language server....
Read more >
VMware SASE 5.0.1 Release Notes
Upgrades to this version may take longer than normal (3-5 minutes) on Edge 3x00 models (i.e., 3400, 3800 and 3810). This is due...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found