prisma / language-tools

🌐 Prisma Language Tools = Language Server and Prisma's VS Code extension.
https://marketplace.visualstudio.com/items?itemName=Prisma.prisma
Apache License 2.0
257 stars 40 forks source link

Connection to server got closed. Server will restart #403

Closed myfreax closed 3 years ago

myfreax commented 4 years ago
[Info  - 2:44:05 PM] Connection to server got closed. Server will restart.
events.js:177
      throw er; // Unhandled 'error' event
      ^

Error: spawn /home/user/.vscode-server/extensions/prisma.prisma-2.4.2/node_modules/@prisma/language-server/dist/src/prisma-fmt.195d4bdc2d16132977f4ba7a8ca312f7906cb086 EACCES
    at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
    at onErrorNT (internal/child_process.js:456:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:9)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
    at onErrorNT (internal/child_process.js:456:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:9) {
  errno: 'EACCES',
  code: 'EACCES',
  syscall: 'spawn ' +
    '/home/user/.vscode-server/extensions/prisma.prisma-2.4.2/node_modules/@prisma/language-server/dist/src/prisma-fmt.195d4bdc2d16132977f4ba7a8ca312f7906cb086',
  path: '/home/user/.vscode-server/extensions/prisma.prisma-2.4.2/node_modules/@prisma/language-server/dist/src/prisma-fmt.195d4bdc2d16132977f4ba7a8ca312f7906cb086',
  spawnargs: [ '--version' ]
}
carmenberndt commented 4 years ago

@huangyanxiong01 Are you still getting this bug with version 2.6.0?

nedpals commented 4 years ago

Can confirm in the latest version. The output shows this:

[Info  - 4:01:21 pm] Default version of Prisma binary 'prisma-fmt': e6c9b4b2b7fa162d0d459d1863321f547498fcfe
[Info  - 4:01:21 pm] Extension name @prisma/language-server with version 2.8.0
[Info  - 4:01:21 pm] Prisma CLI version: 2.8.0
[Info  - 4:01:21 pm] Connection to server got closed. Server will restart.
[Info  - 4:01:21 pm] Default version of Prisma binary 'prisma-fmt': e6c9b4b2b7fa162d0d459d1863321f547498fcfe
[Info  - 4:01:21 pm] Extension name @prisma/language-server with version 2.8.0
[Info  - 4:01:21 pm] Prisma CLI version: 2.8.0
[Info  - 4:01:21 pm] Connection to server got closed. Server will restart.
[Info  - 4:01:22 pm] Default version of Prisma binary 'prisma-fmt': e6c9b4b2b7fa162d0d459d1863321f547498fcfe
[Info  - 4:01:22 pm] Extension name @prisma/language-server with version 2.8.0
[Info  - 4:01:22 pm] Prisma CLI version: 2.8.0
[Error - 4:01:22 pm] Connection to server got closed. Server will not be restarted.
logesh-freshworks commented 4 years ago

Same here. I can confirm with the latest version too.

[Info  - 12:38:14 PM] Connection to server got closed. Server will restart.
[Info  - 12:38:22 PM] Default version of Prisma binary 'prisma-fmt': e6c9b4b2b7fa162d0d459d1863321f547498fcfe
[Info  - 12:38:22 PM] Extension name @prisma/language-server with version 2.8.0
[Info  - 12:38:22 PM] Prisma CLI version: 2.8.0
[Info  - 12:38:23 PM] Connection to server got closed. Server will restart.
[Info  - 12:38:23 PM] Default version of Prisma binary 'prisma-fmt': e6c9b4b2b7fa162d0d459d1863321f547498fcfe
[Info  - 12:38:23 PM] Extension name @prisma/language-server with version 2.8.0
[Info  - 12:38:23 PM] Prisma CLI version: 2.8.0
[Info  - 12:38:23 PM] Connection to server got closed. Server will restart.
[Info  - 12:38:23 PM] Default version of Prisma binary 'prisma-fmt': e6c9b4b2b7fa162d0d459d1863321f547498fcfe
[Info  - 12:38:23 PM] Extension name @prisma/language-server with version 2.8.0
[Info  - 12:38:23 PM] Prisma CLI version: 2.8.0
[Info  - 12:38:23 PM] Connection to server got closed. Server will restart.
[Info  - 12:38:24 PM] Default version of Prisma binary 'prisma-fmt': e6c9b4b2b7fa162d0d459d1863321f547498fcfe
[Info  - 12:38:24 PM] Extension name @prisma/language-server with version 2.8.0
[Info  - 12:38:24 PM] Prisma CLI version: 2.8.0
[Error - 12:38:24 PM] Connection to server got closed. Server will not be restarted.
ovidiuch commented 4 years ago

I'm getting the same error with Prisma 2.8.1 and VS Code 1.50.0.

image

[Info  - 8:10:49 PM] Default version of Prisma binary 'prisma-fmt': 439da16b2f8314c6faca7d2dad2cdcf0732e8a9c
[Info  - 8:10:49 PM] Extension name @prisma/language-server with version 2.8.2
[Info  - 8:10:49 PM] Prisma CLI version: 2.8.1
[Info  - 8:10:49 PM] Connection to server got closed. Server will restart.
[Info  - 8:10:49 PM] Default version of Prisma binary 'prisma-fmt': 439da16b2f8314c6faca7d2dad2cdcf0732e8a9c
[Info  - 8:10:49 PM] Extension name @prisma/language-server with version 2.8.2
[Info  - 8:10:49 PM] Prisma CLI version: 2.8.1
[Info  - 8:10:49 PM] Connection to server got closed. Server will restart.
[Info  - 8:10:49 PM] Default version of Prisma binary 'prisma-fmt': 439da16b2f8314c6faca7d2dad2cdcf0732e8a9c
[Info  - 8:10:49 PM] Extension name @prisma/language-server with version 2.8.2
[Info  - 8:10:49 PM] Prisma CLI version: 2.8.1
[Info  - 8:10:49 PM] Connection to server got closed. Server will restart.
[Info  - 8:10:50 PM] Default version of Prisma binary 'prisma-fmt': 439da16b2f8314c6faca7d2dad2cdcf0732e8a9c
[Info  - 8:10:50 PM] Extension name @prisma/language-server with version 2.8.2
[Info  - 8:10:50 PM] Prisma CLI version: 2.8.1
[Info  - 8:10:50 PM] Connection to server got closed. Server will restart.
[Info  - 8:10:50 PM] Default version of Prisma binary 'prisma-fmt': 439da16b2f8314c6faca7d2dad2cdcf0732e8a9c
[Info  - 8:10:50 PM] Extension name @prisma/language-server with version 2.8.2
[Info  - 8:10:50 PM] Prisma CLI version: 2.8.1
[Error - 8:10:50 PM] Connection to server got closed. Server will not be restarted.
carmenberndt commented 4 years ago

This should be fixed with version 2.8.2 caused by a broken dependency update from 'vsce'.

ovidiuch commented 4 years ago

Is 2.8.2 available? If so, what do I need to upgrade?

The VS Code extension is already on v2.8.2 image

carmenberndt commented 4 years ago

@skidding Ah sorry then you are using 2.8.2 already. When you open the Log(Extension Host) in VSCode, can you see any errors after this line:

ExtensionService#_doActivateExtension Prisma.prisma {"startup":false,"extensionId":{"value":"Prisma.prisma","_lower":"prisma.prisma"},"activationEvent":"onLanguage:prisma"}

?

ovidiuch commented 4 years ago

No problem. No, I don't see any errors. The log ends with this (and similar lines from other extensions):

[2020-10-12 15:22:36.424] [exthost] [info] ExtensionService#_doActivateExtension Prisma.prisma {"startup":false,"extensionId":{"value":"Prisma.prisma","_lower":"prisma.prisma"},"activationEvent":"onLanguage:prisma"}
[2020-10-12 15:22:36.424] [exthost] [info] ExtensionService#loadCommonJSModule file:///Users/***/.vscode/extensions/prisma.prisma-2.8.2/dist/src/extension.js
xddz9 commented 4 years ago

Getting the same error on 2.9.0 under WSL2 (haven't tested on other platforms). Syntax highlighting works but everything else, including autocomplete, does not.

[Info  - 6:20:01 PM] Default version of Prisma binary 'prisma-fmt': 369b3694b7edb869fad14827a33ad3f3f49bbc20
[Info  - 6:20:01 PM] Extension name @prisma/language-server with version 2.9.0
[Info  - 6:20:01 PM] Prisma CLI version: 2.9.0
events.js:200
      throw er; // Unhandled 'error' event
      ^

Error: spawn /home/dev/.vscode-server/extensions/prisma.prisma-2.9.0/node_modules/@prisma/language-server/dist/src/prisma-fmt.369b3694b7edb869fad14827a33ad3f3f49bbc20 EACCES
AlexMenor commented 4 years ago

I get the same as @xddz9 under wsl2

carmenberndt commented 4 years ago

This should be fixed with 2.11.0. Please leave a comment in case you are still getting this error. πŸ™

xddz9 commented 4 years ago

Still crashing for me on WSL2:

[Info  - 2:43:30 AM] Default version of Prisma binary 'prisma-fmt': 58369335532e47bdcec77a2f1e7c1fb83a463918
[Info  - 2:43:30 AM] Extension name @prisma/language-server with version 2.11.0
[Info  - 2:43:30 AM] Prisma CLI version: 2.11.0
events.js:200
      throw er; // Unhandled 'error' event
      ^
NMinhNguyen commented 4 years ago

Still crashing for me too:

[Info  - 12:06:08] Default version of Prisma binary 'prisma-fmt': 58369335532e47bdcec77a2f1e7c1fb83a463918
[Info  - 12:06:08] Extension name @prisma/language-server with version 2.11.0
[Info  - 12:06:08] Prisma CLI version: 2.11.0
[Info  - 12:06:08] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-2.11.0/node_modules/@prisma/language-server/dist/src/prisma-fmt.58369335532e47bdcec77a2f1e7c1fb83a463918
[Info  - 12:06:09] Downloading prisma-fmt from https://binaries.prisma.sh/all_commits/58369335532e47bdcec77a2f1e7c1fb83a463918/debian-openssl-1.1.x/prisma-fmt.gz
[Info  - 12:06:12] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-2.11.0/node_modules/@prisma/language-server/dist/src/prisma-fmt.58369335532e47bdcec77a2f1e7c1fb83a463918
[Info  - 12:06:12] Connection to server got closed. Server will restart.
[Info  - 12:06:13] Default version of Prisma binary 'prisma-fmt': 58369335532e47bdcec77a2f1e7c1fb83a463918
[Info  - 12:06:14] Extension name @prisma/language-server with version 2.11.0
[Info  - 12:06:14] Prisma CLI version: 2.11.0
[Info  - 12:06:14] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-2.11.0/node_modules/@prisma/language-server/dist/src/prisma-fmt.58369335532e47bdcec77a2f1e7c1fb83a463918
[Info  - 12:06:14] Connection to server got closed. Server will restart.
[Info  - 12:06:14] Default version of Prisma binary 'prisma-fmt': 58369335532e47bdcec77a2f1e7c1fb83a463918
[Info  - 12:06:14] Extension name @prisma/language-server with version 2.11.0
[Info  - 12:06:15] Prisma CLI version: 2.11.0
[Info  - 12:06:15] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-2.11.0/node_modules/@prisma/language-server/dist/src/prisma-fmt.58369335532e47bdcec77a2f1e7c1fb83a463918
[Info  - 12:06:15] Connection to server got closed. Server will restart.
[Info  - 12:06:15] Default version of Prisma binary 'prisma-fmt': 58369335532e47bdcec77a2f1e7c1fb83a463918
[Info  - 12:06:15] Extension name @prisma/language-server with version 2.11.0
[Info  - 12:06:15] Prisma CLI version: 2.11.0
[Info  - 12:06:15] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-2.11.0/node_modules/@prisma/language-server/dist/src/prisma-fmt.58369335532e47bdcec77a2f1e7c1fb83a463918
[Info  - 12:06:15] Connection to server got closed. Server will restart.
[Info  - 12:06:15] Default version of Prisma binary 'prisma-fmt': 58369335532e47bdcec77a2f1e7c1fb83a463918
[Info  - 12:06:15] Extension name @prisma/language-server with version 2.11.0
[Info  - 12:06:15] Prisma CLI version: 2.11.0
[Info  - 12:06:16] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-2.11.0/node_modules/@prisma/language-server/dist/src/prisma-fmt.58369335532e47bdcec77a2f1e7c1fb83a463918
[Error - 12:06:16] Connection to server got closed. Server will not be restarted.
carmenberndt commented 4 years ago

@NMinhNguyen are you using WSL2 as well?

NMinhNguyen commented 4 years ago

@NMinhNguyen are you using WSL2 as well?

Ubuntu 18.04.

carmenberndt commented 4 years ago

thanks, I'll try to get a reproduction.

NMinhNguyen commented 4 years ago

thanks, I'll try to get a reproduction.

Let me know if I can get you some more detailed logs or whatever, I'm happy to help you debug this!

carmenberndt commented 3 years ago

Hi @NMinhNguyen, we recently added a trace setting for the language server. Can you please use the Insider Prisma extension (from 12.0.47), set prisma.trace.server to verbose and send me your logs again? (they should now provide more helpful information to get to the bottom of this bug).

NMinhNguyen commented 3 years ago

According to https://marketplace.visualstudio.com/items?itemName=Prisma.prisma-insider (and my VS Code), the latest version is still 12.0.46, do you want me to wait a little before 12.0.47 is published?

carmenberndt commented 3 years ago

ah yes, the publishing process takes a bit, it will probably take about 10 more minutes. I'll post again once it's available :)

carmenberndt commented 3 years ago

12.0.47 is available now.

NMinhNguyen commented 3 years ago

I had to remove the contents of prisma.schema from the logs, but let me know if you need it and I'll try to provide it in full.

Trace log ``` [Trace - 14:55:43] Sending request 'initialize - (0)'. Params: { "processId": 30668, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "bar" } ] } [Trace - 14:55:44] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:55:44] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 14:55:44] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.47" } [Info - 14:55:44] Extension name @prisma/language-server with version 12.0.47 [Trace - 14:55:44] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.38" } [Info - 14:55:44] Prisma CLI version: 2.12.0-dev.38 [Trace - 14:55:44] Received response 'initialize - (0)' in 396ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 14:55:44] Sending notification 'initialized'. Params: {} [Trace - 14:55:44] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 14:55:44] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "fe0b3a26-cd42-4269-a5b1-921c63a9c00c", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 14:55:44] Sending response 'client/registerCapability - (0)'. Processing request took 1ms No result returned. [Trace - 14:55:44] Sending request 'textDocument/codeAction - (1)'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma" }, "range": { "start": { "line": 28, "character": 24 }, "end": { "line": 28, "character": 24 } }, "context": { "diagnostics": [] } } [Trace - 14:55:44] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 14:55:44] Sending response 'workspace/configuration - (1)'. Processing request took 5ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 14:55:44] Received response 'textDocument/codeAction - (1)' in 129ms. Result: [] [Trace - 14:55:44] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.47/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:55:44] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.47/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 14:55:44] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Downloading prisma-fmt from https://binaries.prisma.sh/all_commits/a4ef806349a7b17c41f45735ce4a36322e01c250/debian-openssl-1.1.x/prisma-fmt.gz" } [Info - 14:55:44] Downloading prisma-fmt from https://binaries.prisma.sh/all_commits/a4ef806349a7b17c41f45735ce4a36322e01c250/debian-openssl-1.1.x/prisma-fmt.gz [Trace - 14:55:56] Sending notification 'textDocument/didClose'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma" } } [Trace - 14:56:10] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 14:56:10] Sending request 'textDocument/codeAction - (2)'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma" }, "range": { "start": { "line": 0, "character": 0 }, "end": { "line": 0, "character": 0 } }, "context": { "diagnostics": [] } } [Trace - 14:56:10] Received request 'workspace/configuration - (2)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 14:56:10] Sending response 'workspace/configuration - (2)'. Processing request took 3ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 14:56:10] Received response 'textDocument/codeAction - (2)' in 13ms. Result: [] [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.47/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:56:10] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.47/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Info - 14:56:10] Connection to server got closed. Server will restart. [Trace - 14:56:10] Sending request 'initialize - (0)'. Params: { "processId": 30668, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "bar" } ] } [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:56:10] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.47" } [Info - 14:56:10] Extension name @prisma/language-server with version 12.0.47 [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.38" } [Info - 14:56:10] Prisma CLI version: 2.12.0-dev.38 [Trace - 14:56:10] Received response 'initialize - (0)' in 208ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 14:56:10] Sending notification 'initialized'. Params: {} [Trace - 14:56:10] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 14:56:10] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "50b56c25-66d4-4527-a0cb-594693925370", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 14:56:10] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 14:56:10] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 14:56:10] Sending response 'workspace/configuration - (1)'. Processing request took 2ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 14:56:10] Sending request 'textDocument/codeAction - (1)'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma" }, "range": { "start": { "line": 28, "character": 24 }, "end": { "line": 28, "character": 24 } }, "context": { "diagnostics": [] } } [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.47/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:56:10] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.47/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Info - 14:56:10] Connection to server got closed. Server will restart. [Trace - 14:56:10] Sending request 'initialize - (0)'. Params: { "processId": 30668, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "bar" } ] } [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:56:10] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.47" } [Info - 14:56:10] Extension name @prisma/language-server with version 12.0.47 [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.38" } [Info - 14:56:10] Prisma CLI version: 2.12.0-dev.38 [Trace - 14:56:10] Received response 'initialize - (0)' in 124ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 14:56:10] Sending notification 'initialized'. Params: {} [Trace - 14:56:10] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 14:56:10] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "fe850653-26f5-420d-af3a-c49e8bb12183", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 14:56:10] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 14:56:10] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 14:56:10] Sending response 'workspace/configuration - (1)'. Processing request took 1ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 14:56:10] Sending request 'textDocument/codeAction - (1)'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma" }, "range": { "start": { "line": 28, "character": 24 }, "end": { "line": 28, "character": 24 } }, "context": { "diagnostics": [] } } [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.47/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:56:10] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.47/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Info - 14:56:10] Connection to server got closed. Server will restart. [Trace - 14:56:10] Sending request 'initialize - (0)'. Params: { "processId": 30668, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "bar" } ] } [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:56:10] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.47" } [Info - 14:56:10] Extension name @prisma/language-server with version 12.0.47 [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.38" } [Info - 14:56:10] Prisma CLI version: 2.12.0-dev.38 [Trace - 14:56:10] Received response 'initialize - (0)' in 146ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 14:56:10] Sending notification 'initialized'. Params: {} [Trace - 14:56:10] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 14:56:10] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "dff12e12-7dc5-4211-a2b2-daea0ab579d7", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 14:56:10] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 14:56:10] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 14:56:10] Sending response 'workspace/configuration - (1)'. Processing request took 1ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.47/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:56:10] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.47/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Info - 14:56:10] Connection to server got closed. Server will restart. [Trace - 14:56:10] Sending request 'initialize - (0)'. Params: { "processId": 30668, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "bar" } ] } [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:56:10] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.47" } [Info - 14:56:10] Extension name @prisma/language-server with version 12.0.47 [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.38" } [Info - 14:56:10] Prisma CLI version: 2.12.0-dev.38 [Trace - 14:56:10] Received response 'initialize - (0)' in 150ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 14:56:10] Sending notification 'initialized'. Params: {} [Trace - 14:56:10] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 14:56:10] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "926a9346-c9c3-463c-a024-1a22ff7b3d10", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 14:56:10] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 14:56:10] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 14:56:10] Sending response 'workspace/configuration - (1)'. Processing request took 1ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 14:56:10] Sending request 'textDocument/codeAction - (1)'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma" }, "range": { "start": { "line": 28, "character": 24 }, "end": { "line": 28, "character": 24 } }, "context": { "diagnostics": [] } } [Trace - 14:56:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.47/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:56:10] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.47/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Error - 14:56:10] Connection to server got closed. Server will not be restarted. ```
carmenberndt commented 3 years ago

Thank you!

It seems like the server fails after trying to download the prisma-fmt binary, since there should have been a log saying it got installed successfully. I'm looking into it.

NMinhNguyen commented 3 years ago

If it helps, I'm doing this at work where for external internet stuff we need to use proxies. Maybe the code that's trying to download prisma-fmt isn't taking into account environment variables like HTTP_PROXY? VS Code also lets you set a proxy in settings (where it also inherits from http_proxy and https_proxy if not set):

Screenshot 2020-11-18 at 15 33 46
carmenberndt commented 3 years ago

Ah yes that helps.

Let's try one more thing to double check: Can you please download and uncompress the archive file from here: https://binaries.prisma.sh/all_commits/a4ef806349a7b17c41f45735ce4a36322e01c250/debian-openssl-1.1.x/prisma-fmt.gz.

You can then set the path in prisma.prismaFmtBinPath and restart the Prisma Language Server. If the error does not occur again, then the downloading is the problem.

NMinhNguyen commented 3 years ago
Logs ``` [Trace - 15:41:04] Sending request 'initialize - (0)'. Params: { "processId": 32602, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "foo" } ] } [Trace - 15:41:04] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 15:41:04] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 15:41:04] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.47" } [Info - 15:41:04] Extension name @prisma/language-server with version 12.0.47 [Trace - 15:41:04] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.38" } [Info - 15:41:04] Prisma CLI version: 2.12.0-dev.38 [Trace - 15:41:04] Received response 'initialize - (0)' in 508ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 15:41:04] Sending notification 'initialized'. Params: {} [Trace - 15:41:04] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 15:41:04] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "02b7345b-1cd4-4744-8e52-1ef66f9a3666", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 15:41:04] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 15:41:04] Sending request 'textDocument/codeAction - (1)'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma" }, "range": { "start": { "line": 14, "character": 69 }, "end": { "line": 14, "character": 69 } }, "context": { "diagnostics": [] } } [Trace - 15:41:04] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 15:41:04] Sending response 'workspace/configuration - (1)'. Processing request took 5ms Result: [ { "prismaFmtBinPath": "/home/minhnguyen/Downloads/prismaaaa/prisma-fmt", "trace": { "server": "verbose" } } ] [Trace - 15:41:04] Received response 'textDocument/codeAction - (1)' in 20ms. Result: [] [Trace - 15:41:05] Received notification 'window/logMessage'. Params: { "type": 4, "message": "Using binary path from Prisma Language Server configuration." } Using binary path from Prisma Language Server configuration. [Info - 15:41:05] Connection to server got closed. Server will restart. [Trace - 15:41:05] Sending request 'initialize - (0)'. Params: { "processId": 32602, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "foo" } ] } [Trace - 15:41:05] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 15:41:05] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 15:41:05] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.47" } [Info - 15:41:05] Extension name @prisma/language-server with version 12.0.47 [Trace - 15:41:05] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.38" } [Info - 15:41:05] Prisma CLI version: 2.12.0-dev.38 [Trace - 15:41:05] Received response 'initialize - (0)' in 630ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 15:41:05] Sending notification 'initialized'. Params: {} [Trace - 15:41:05] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 15:41:06] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "ec766c95-621e-44e6-a6fe-b42907e4264a", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 15:41:06] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 15:41:06] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 15:41:06] Sending response 'workspace/configuration - (1)'. Processing request took 5ms Result: [ { "prismaFmtBinPath": "/home/minhnguyen/Downloads/prismaaaa/prisma-fmt", "trace": { "server": "verbose" } } ] [Trace - 15:41:06] Sending request 'textDocument/codeAction - (1)'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma" }, "range": { "start": { "line": 26, "character": 24 }, "end": { "line": 26, "character": 24 } }, "context": { "diagnostics": [] } } [Trace - 15:41:06] Received notification 'window/logMessage'. Params: { "type": 4, "message": "Using binary path from Prisma Language Server configuration." } Using binary path from Prisma Language Server configuration. [Info - 15:41:06] Connection to server got closed. Server will restart. [Trace - 15:41:06] Sending request 'initialize - (0)'. Params: { "processId": 32602, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "foo" } ] } [Trace - 15:41:07] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 15:41:07] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 15:41:07] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.47" } [Info - 15:41:07] Extension name @prisma/language-server with version 12.0.47 [Trace - 15:41:07] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.38" } [Info - 15:41:07] Prisma CLI version: 2.12.0-dev.38 [Trace - 15:41:07] Received response 'initialize - (0)' in 1194ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 15:41:07] Sending notification 'initialized'. Params: {} [Trace - 15:41:07] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 15:41:07] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "63a667c6-8861-4668-82e6-ad9e16a6dc82", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 15:41:07] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 15:41:07] Sending request 'textDocument/codeAction - (1)'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma" }, "range": { "start": { "line": 26, "character": 24 }, "end": { "line": 26, "character": 24 } }, "context": { "diagnostics": [] } } [Trace - 15:41:07] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 15:41:07] Sending response 'workspace/configuration - (1)'. Processing request took 6ms Result: [ { "prismaFmtBinPath": "/home/minhnguyen/Downloads/prismaaaa/prisma-fmt", "trace": { "server": "verbose" } } ] [Trace - 15:41:07] Received response 'textDocument/codeAction - (1)' in 51ms. Result: [] [Trace - 15:41:07] Received notification 'window/logMessage'. Params: { "type": 4, "message": "Using binary path from Prisma Language Server configuration." } Using binary path from Prisma Language Server configuration. [Info - 15:41:07] Connection to server got closed. Server will restart. [Trace - 15:41:07] Sending request 'initialize - (0)'. Params: { "processId": 32602, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "foo" } ] } [Trace - 15:41:08] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 15:41:08] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 15:41:08] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.47" } [Info - 15:41:08] Extension name @prisma/language-server with version 12.0.47 [Trace - 15:41:09] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.38" } [Info - 15:41:09] Prisma CLI version: 2.12.0-dev.38 [Trace - 15:41:09] Received response 'initialize - (0)' in 1205ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 15:41:09] Sending notification 'initialized'. Params: {} [Trace - 15:41:09] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 15:41:09] Sending request 'textDocument/codeAction - (1)'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma" }, "range": { "start": { "line": 26, "character": 24 }, "end": { "line": 26, "character": 24 } }, "context": { "diagnostics": [] } } [Trace - 15:41:09] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "67ea20a6-528f-4369-9090-a688f3f8976a", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 15:41:09] Sending response 'client/registerCapability - (0)'. Processing request took 1ms No result returned. [Trace - 15:41:09] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 15:41:09] Sending response 'workspace/configuration - (1)'. Processing request took 3ms Result: [ { "prismaFmtBinPath": "/home/minhnguyen/Downloads/prismaaaa/prisma-fmt", "trace": { "server": "verbose" } } ] [Trace - 15:41:09] Received response 'textDocument/codeAction - (1)' in 58ms. Result: [] [Trace - 15:41:09] Received notification 'window/logMessage'. Params: { "type": 4, "message": "Using binary path from Prisma Language Server configuration." } Using binary path from Prisma Language Server configuration. [Info - 15:41:09] Connection to server got closed. Server will restart. [Trace - 15:41:09] Sending request 'initialize - (0)'. Params: { "processId": 32602, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "foo" } ] } [Trace - 15:41:09] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 15:41:09] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 15:41:09] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.47" } [Info - 15:41:09] Extension name @prisma/language-server with version 12.0.47 [Trace - 15:41:10] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.38" } [Info - 15:41:10] Prisma CLI version: 2.12.0-dev.38 [Trace - 15:41:10] Received response 'initialize - (0)' in 896ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 15:41:10] Sending notification 'initialized'. Params: {} [Trace - 15:41:10] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 15:41:10] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "28df64c9-b6ac-46f4-a613-6f2ad9dc4f06", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 15:41:10] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 15:41:10] Sending request 'textDocument/codeAction - (1)'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma" }, "range": { "start": { "line": 26, "character": 24 }, "end": { "line": 26, "character": 24 } }, "context": { "diagnostics": [] } } [Trace - 15:41:10] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 15:41:10] Sending response 'workspace/configuration - (1)'. Processing request took 2ms Result: [ { "prismaFmtBinPath": "/home/minhnguyen/Downloads/prismaaaa/prisma-fmt", "trace": { "server": "verbose" } } ] [Trace - 15:41:10] Received response 'textDocument/codeAction - (1)' in 42ms. Result: [] [Trace - 15:41:10] Received notification 'window/logMessage'. Params: { "type": 4, "message": "Using binary path from Prisma Language Server configuration." } Using binary path from Prisma Language Server configuration. [Error - 15:41:10] Connection to server got closed. Server will not be restarted. ```
carmenberndt commented 3 years ago

I still can not reproduce this unfortunately. I did add some more logs to the Insider extension though.

Also can you please check if everything works when downloading the binary and moving it to the extension folder here: $HOME/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/

NMinhNguyen commented 3 years ago

Hm, for some reason the OS warns me about there being a folder named prisma-fmt and me copying a file called prisma-fmt would overwrite the folder. Should I proceed with overwriting it?

This is what happens when overwriting:

Error: Cannot find module './prisma-fmt/format' ``` internal/modules/cjs/loader.js:847 throw err; ^ Error: Cannot find module './prisma-fmt/format' Require stack: - /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/MessageHandler.js - /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/server.js - /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/cli.js - /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/bin.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:844:17) at Module._load (internal/modules/cjs/loader.js:737:27) at Function.Module._load (electron/js2c/asar.js:769:28) at Module.require (internal/modules/cjs/loader.js:899:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (/home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/MessageHandler.js:18:34) at Module._compile (internal/modules/cjs/loader.js:1014:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1051:10) at Module.load (internal/modules/cjs/loader.js:862:32) at Module._load (internal/modules/cjs/loader.js:774:14) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/MessageHandler.js', '/home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/server.js', '/home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/cli.js', '/home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/bin.js' ] } [Error - 12:39:02] Connection to server got closed. Server will not be restarted. ```
carmenberndt commented 3 years ago

Ah, no the folder should not be overwritten, the file should be in the folder src, where there is also a folder called prisma-fmt. Better rename the file to prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250.

NMinhNguyen commented 3 years ago

Ah so I actually already had a file with the exact same name. Here's the latest logs (I've unset prismaBinPath as well):

Logs ``` [Trace - 14:10:15] Sending request 'initialize - (0)'. Params: { "processId": 24772, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "foo" } ] } [Trace - 14:10:16] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:10:16] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 14:10:16] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.53" } [Info - 14:10:16] Extension name @prisma/language-server with version 12.0.53 [Trace - 14:10:16] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.40" } [Info - 14:10:16] Prisma CLI version: 2.12.0-dev.40 [Trace - 14:10:16] Received response 'initialize - (0)' in 470ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 14:10:16] Sending notification 'initialized'. Params: {} [Trace - 14:10:16] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 14:10:16] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "88a9c164-1293-49b3-a76b-8bc29acef6f6", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 14:10:16] Sending response 'client/registerCapability - (0)'. Processing request took 1ms No result returned. [Trace - 14:10:16] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 14:10:16] Sending response 'workspace/configuration - (1)'. Processing request took 4ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 14:10:17] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:10:17] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Info - 14:10:17] Connection to server got closed. Server will restart. [Trace - 14:10:17] Sending request 'initialize - (0)'. Params: { "processId": 24772, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "foo" } ] } [Trace - 14:10:18] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:10:18] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 14:10:18] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.53" } [Info - 14:10:18] Extension name @prisma/language-server with version 12.0.53 [Trace - 14:10:18] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.40" } [Info - 14:10:18] Prisma CLI version: 2.12.0-dev.40 [Trace - 14:10:18] Received response 'initialize - (0)' in 1781ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 14:10:18] Sending notification 'initialized'. Params: {} [Trace - 14:10:18] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 14:10:19] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "78c95405-33c9-4d9a-8eec-a5260852b017", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 14:10:19] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 14:10:19] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 14:10:19] Sending response 'workspace/configuration - (1)'. Processing request took 5ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 14:10:19] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:10:19] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Info - 14:10:19] Connection to server got closed. Server will restart. [Trace - 14:10:19] Sending request 'initialize - (0)'. Params: { "processId": 24772, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "foo" } ] } [Trace - 14:10:20] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:10:20] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 14:10:20] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.53" } [Info - 14:10:20] Extension name @prisma/language-server with version 12.0.53 [Trace - 14:10:20] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.40" } [Info - 14:10:20] Prisma CLI version: 2.12.0-dev.40 [Trace - 14:10:20] Received response 'initialize - (0)' in 1480ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 14:10:20] Sending notification 'initialized'. Params: {} [Trace - 14:10:20] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 14:10:20] Sending request 'textDocument/codeAction - (1)'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma" }, "range": { "start": { "line": 29, "character": 24 }, "end": { "line": 29, "character": 24 } }, "context": { "diagnostics": [] } } [Trace - 14:10:20] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "39fe1c91-ab93-4fe1-8b55-9ef398d9a05b", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 14:10:20] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 14:10:20] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 14:10:20] Sending response 'workspace/configuration - (1)'. Processing request took 6ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 14:10:20] Received response 'textDocument/codeAction - (1)' in 46ms. Result: [] [Trace - 14:10:20] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:10:20] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Info - 14:10:20] Connection to server got closed. Server will restart. [Trace - 14:10:21] Sending request 'initialize - (0)'. Params: { "processId": 24772, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "foo" } ] } [Trace - 14:10:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:10:22] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 14:10:22] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.53" } [Info - 14:10:22] Extension name @prisma/language-server with version 12.0.53 [Trace - 14:10:23] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.40" } [Info - 14:10:23] Prisma CLI version: 2.12.0-dev.40 [Trace - 14:10:23] Received response 'initialize - (0)' in 2358ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 14:10:23] Sending notification 'initialized'. Params: {} [Trace - 14:10:23] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 14:10:23] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "217f4c18-d929-4456-aef6-d1684fcd4a80", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 14:10:23] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 14:10:23] Sending request 'textDocument/codeAction - (1)'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma" }, "range": { "start": { "line": 29, "character": 24 }, "end": { "line": 29, "character": 24 } }, "context": { "diagnostics": [] } } [Trace - 14:10:23] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 14:10:23] Sending response 'workspace/configuration - (1)'. Processing request took 2ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 14:10:24] Received response 'textDocument/codeAction - (1)' in 81ms. Result: [] [Trace - 14:10:24] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:10:24] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Info - 14:10:24] Connection to server got closed. Server will restart. [Trace - 14:10:24] Sending request 'initialize - (0)'. Params: { "processId": 24772, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "foo" } ] } [Trace - 14:10:24] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:10:24] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 14:10:25] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.53" } [Info - 14:10:25] Extension name @prisma/language-server with version 12.0.53 [Trace - 14:10:25] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.40" } [Info - 14:10:25] Prisma CLI version: 2.12.0-dev.40 [Trace - 14:10:25] Received response 'initialize - (0)' in 932ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 14:10:25] Sending notification 'initialized'. Params: {} [Trace - 14:10:25] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "" } } [Trace - 14:10:25] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "53102a31-7c6c-466a-8b2a-5d02ec68c72d", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 14:10:25] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 14:10:25] Sending request 'textDocument/codeAction - (1)'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma" }, "range": { "start": { "line": 29, "character": 24 }, "end": { "line": 29, "character": 24 } }, "context": { "diagnostics": [] } } [Trace - 14:10:25] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 14:10:25] Sending response 'workspace/configuration - (1)'. Processing request took 5ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 14:10:25] Received response 'textDocument/codeAction - (1)' in 59ms. Result: [] [Trace - 14:10:25] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 14:10:25] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Error - 14:10:25] Connection to server got closed. Server will not be restarted. ```
carmenberndt commented 3 years ago

So that means the downloading was not the problem, if you do have the file there. Which also means we're back to the beginning without an idea what's causing the issue unfortunately..

NMinhNguyen commented 3 years ago

Is there any other way I can help you debug this? Is there some additional logging we can add to find out what leads to it closing the server connection?

Thank you so much for your time and help by the way!

carmenberndt commented 3 years ago

I'm trying to think about where it could crash, let's check if the crash is related to the schema file. So can you try this 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[]
}

Thank you for trying out lots of things as well!

carmenberndt commented 3 years ago

Have you always experienced this or was there an earlier version where this did not occur?

NMinhNguyen commented 3 years ago

Have you always experienced this or was there an earlier version where this did not occur?

I only started using at work about 2 months ago? But I think I've always had issues with it at work. Works fine on my personal Mac.

NMinhNguyen commented 3 years ago

I'm trying to think about where it could crash, let's check if the crash is related to the schema file. So can you try this 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[]
}

Thank you for trying out lots of things as well!

Happened with this schema as well. Using a newly started VS Code.

Details ``` [Trace - 15:41:33] Sending request 'initialize - (0)'. Params: { "processId": 17664, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "foo" } ] } [Trace - 15:41:34] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 15:41:34] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 15:41:34] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.53" } [Info - 15:41:34] Extension name @prisma/language-server with version 12.0.53 [Trace - 15:41:34] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.40" } [Info - 15:41:34] Prisma CLI version: 2.12.0-dev.40 [Trace - 15:41:34] Received response 'initialize - (0)' in 1270ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 15:41:34] Sending notification 'initialized'. Params: {} [Trace - 15:41:34] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "datasource db {\n provider = \"mysql\"\n url = env(\"DATABASE_URL\")\n}\n\ngenerator client {\n provider = \"prisma-client-js\"\n}\n\nmodel User {\n hi Int @id\n test String\n hdi Test @relation(fields: [testId], references: [id])\n\n testId Int\n}\n\nmodel Test {\n id Int @id\n User User[]\n}\n" } } [Trace - 15:41:35] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "ab6dee4d-c11a-45f2-8c9c-9d575646b993", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 15:41:35] Sending response 'client/registerCapability - (0)'. Processing request took 1ms No result returned. [Trace - 15:41:35] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 15:41:35] Sending response 'workspace/configuration - (1)'. Processing request took 5ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 15:41:35] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 15:41:35] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Info - 15:41:35] Connection to server got closed. Server will restart. [Trace - 15:41:35] Sending request 'initialize - (0)'. Params: { "processId": 17664, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "foo" } ] } [Trace - 15:41:37] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 15:41:37] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 15:41:37] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.53" } [Info - 15:41:37] Extension name @prisma/language-server with version 12.0.53 [Trace - 15:41:37] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.40" } [Info - 15:41:37] Prisma CLI version: 2.12.0-dev.40 [Trace - 15:41:37] Received response 'initialize - (0)' in 1955ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 15:41:37] Sending notification 'initialized'. Params: {} [Trace - 15:41:37] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "datasource db {\n provider = \"mysql\"\n url = env(\"DATABASE_URL\")\n}\n\ngenerator client {\n provider = \"prisma-client-js\"\n}\n\nmodel User {\n hi Int @id\n test String\n hdi Test @relation(fields: [testId], references: [id])\n\n testId Int\n}\n\nmodel Test {\n id Int @id\n User User[]\n}\n" } } [Trace - 15:41:37] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "38375053-b66b-44b2-ad57-639db606ce6a", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 15:41:37] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 15:41:38] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 15:41:38] Sending response 'workspace/configuration - (1)'. Processing request took 4ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 15:41:38] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 15:41:38] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Info - 15:41:38] Connection to server got closed. Server will restart. [Trace - 15:41:38] Sending request 'initialize - (0)'. Params: { "processId": 17664, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "foo" } ] } [Trace - 15:41:39] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 15:41:39] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 15:41:40] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.53" } [Info - 15:41:40] Extension name @prisma/language-server with version 12.0.53 [Trace - 15:41:40] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.40" } [Info - 15:41:40] Prisma CLI version: 2.12.0-dev.40 [Trace - 15:41:40] Received response 'initialize - (0)' in 1997ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 15:41:40] Sending notification 'initialized'. Params: {} [Trace - 15:41:40] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "datasource db {\n provider = \"mysql\"\n url = env(\"DATABASE_URL\")\n}\n\ngenerator client {\n provider = \"prisma-client-js\"\n}\n\nmodel User {\n hi Int @id\n test String\n hdi Test @relation(fields: [testId], references: [id])\n\n testId Int\n}\n\nmodel Test {\n id Int @id\n User User[]\n}\n" } } [Trace - 15:41:40] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "0f611c71-18a2-46c6-86c7-b0cbfed5d1f5", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 15:41:40] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 15:41:40] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 15:41:40] Sending response 'workspace/configuration - (1)'. Processing request took 6ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 15:41:40] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 15:41:40] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Info - 15:41:40] Connection to server got closed. Server will restart. [Trace - 15:41:41] Sending request 'initialize - (0)'. Params: { "processId": 17664, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "foo" } ] } [Trace - 15:41:43] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 15:41:43] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 15:41:43] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.53" } [Info - 15:41:43] Extension name @prisma/language-server with version 12.0.53 [Trace - 15:41:43] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.40" } [Info - 15:41:43] Prisma CLI version: 2.12.0-dev.40 [Trace - 15:41:43] Received response 'initialize - (0)' in 2731ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 15:41:43] Sending notification 'initialized'. Params: {} [Trace - 15:41:43] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "datasource db {\n provider = \"mysql\"\n url = env(\"DATABASE_URL\")\n}\n\ngenerator client {\n provider = \"prisma-client-js\"\n}\n\nmodel User {\n hi Int @id\n test String\n hdi Test @relation(fields: [testId], references: [id])\n\n testId Int\n}\n\nmodel Test {\n id Int @id\n User User[]\n}\n" } } [Trace - 15:41:43] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "0c27b6b4-aa6d-436e-9575-0a9325ecd978", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 15:41:43] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 15:41:43] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 15:41:43] Sending response 'workspace/configuration - (1)'. Processing request took 2ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 15:41:43] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 15:41:43] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Info - 15:41:43] Connection to server got closed. Server will restart. [Trace - 15:41:43] Sending request 'initialize - (0)'. Params: { "processId": 17664, "clientInfo": { "name": "vscode", "version": "1.51.1" }, "rootPath": "/home/minhnguyen/Development/foo", "rootUri": "file:///home/minhnguyen/Development/foo", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional" }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] } }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] } }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true } }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } } }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true } }, "window": { "workDoneProgress": true } }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///home/minhnguyen/Development/foo", "name": "foo" } ] } [Trace - 15:41:45] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 15:41:45] Default version of Prisma binary 'prisma-fmt': a4ef806349a7b17c41f45735ce4a36322e01c250 [Trace - 15:41:45] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Extension name @prisma/language-server with version 12.0.53" } [Info - 15:41:45] Extension name @prisma/language-server with version 12.0.53 [Trace - 15:41:45] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Prisma CLI version: 2.12.0-dev.40" } [Info - 15:41:45] Prisma CLI version: 2.12.0-dev.40 [Trace - 15:41:46] Received response 'initialize - (0)' in 2130ms. Result: { "capabilities": { "definitionProvider": true, "documentFormattingProvider": true, "completionProvider": { "resolveProvider": true, "triggerCharacters": [ "@", "\"", "." ] }, "hoverProvider": true, "renameProvider": true, "codeActionProvider": { "codeActionKinds": [ "quickfix" ] }, "textDocumentSync": 1 } } [Trace - 15:41:46] Sending notification 'initialized'. Params: {} [Trace - 15:41:46] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "languageId": "prisma", "version": 1, "text": "datasource db {\n provider = \"mysql\"\n url = env(\"DATABASE_URL\")\n}\n\ngenerator client {\n provider = \"prisma-client-js\"\n}\n\nmodel User {\n hi Int @id\n test String\n hdi Test @relation(fields: [testId], references: [id])\n\n testId Int\n}\n\nmodel Test {\n id Int @id\n User User[]\n}\n" } } [Trace - 15:41:46] Sending notification 'textDocument/didSave'. Params: { "textDocument": { "uri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "version": 1 } } [Trace - 15:41:46] Received request 'client/registerCapability - (0)'. Params: { "registrations": [ { "id": "11bb9236-1bd8-4172-bb81-b2c20495e6a0", "method": "workspace/didChangeConfiguration", "registerOptions": {} } ] } [Trace - 15:41:46] Sending response 'client/registerCapability - (0)'. Processing request took 0ms No result returned. [Trace - 15:41:46] Received request 'workspace/configuration - (1)'. Params: { "items": [ { "scopeUri": "file:///home/minhnguyen/Development/foo/services/storage/prisma/schema.prisma", "section": "prisma" } ] } [Trace - 15:41:46] Sending response 'workspace/configuration - (1)'. Processing request took 2ms Result: [ { "prismaFmtBinPath": "", "trace": { "server": "verbose" } } ] [Trace - 15:41:46] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250" } [Info - 15:41:46] Local prisma-fmt path: /home/minhnguyen/.vscode/extensions/prisma.prisma-insider-12.0.53/node_modules/@prisma/language-server/dist/src/prisma-fmt.a4ef806349a7b17c41f45735ce4a36322e01c250 [Error - 15:41:46] Connection to server got closed. Server will not be restarted. ```
xddz9 commented 3 years ago

Happened with this schema as well. Using a newly started VS Code.

Same here. Perhaps this will help though: I have no problems at all editing a schema.prisma file on Windows, it only crashes when using WSL. @carmenberndt Can you replicate this environment perhaps? Windows 10, WSL2 (Ubuntu), and VSCode connected to WSL with the prisma language server running on WSL instead of on Windows.

carmenberndt commented 3 years ago

I tried to reproduce this using WSL 2, with the extension only installed on WSL: Ubuntu-20.04 and VSCode connected to WSL. I unfortunately could not reproduce the issue this way.

ueclick commented 3 years ago

try to delete $HOME/.vscode/extensions/prisma.prisma-${version}/ and reinstall prisma extension

carmenberndt commented 3 years ago

@ueclick that's what I did before trying to reproduce this.

NMinhNguyen commented 3 years ago

I tried to reproduce this using WSL 2, with the extension only installed on WSL: Ubuntu-20.04 and VSCode connected to WSL. I unfortunately could not reproduce the issue this way.

Is there any way I can help you with this?

carmenberndt commented 3 years ago

If you can find exact steps (aka a reproduction) that will lead to this issue every time you follow those, this will help a lot. πŸ™

I also asked @martzoukos to reproduce this on WSL, but he could not reproduce this either. (Using https://github.com/prisma/prisma-examples/tree/latest/javascript/rest-nextjs and 2.11.1)

NMinhNguyen commented 3 years ago

If you can find exact steps (aka a reproduction) that will lead to this issue every time you follow those, this will help a lot. πŸ™

I also asked @martzoukos to reproduce this on WSL, but he could not reproduce this either. (Using https://github.com/prisma/prisma-examples/tree/latest/javascript/rest-nextjs and 2.11.1)

Would you be willing to do like a screenshare session on Zoom or something?

martzoukos commented 3 years ago

Hey @NMinhNguyen , that sounds like a good idea. Would you be available for a quick Zoom call in 10 minutes?

NMinhNguyen commented 3 years ago

Hey @NMinhNguyen , that sounds like a good idea. Would you be available for a quick Zoom call in 10 minutes?

Unfortunately not today as I'm in training but how about any time tomorrow?

carmenberndt commented 3 years ago

@NMinhNguyen can you please ping me at berndt@prisma.io so I can set up a meeting for tomorrow?

carmenberndt commented 3 years ago

This issue should be fixed with #640. If you still experience problems when using a Proxy, please comment below, otherwise please create a new issue.