Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buf beta lsp Panic and Exit #3581

Open
micheam opened this issue Jan 12, 2025 · 0 comments · May be fixed by #3582
Open

buf beta lsp Panic and Exit #3581

micheam opened this issue Jan 12, 2025 · 0 comments · May be fixed by #3582
Labels
Bug Something isn't working

Comments

@micheam
Copy link

micheam commented Jan 12, 2025

GitHub repository with your minimal reproducible example (do not leave this field blank or fill out this field with "github.com/bufbuild/buf" or we will automatically close your issue, see the instructions above!)

https://github.com/micheam/getting-started-with-connect-go

Commands

$ buf --version
1.49.1-dev
$ cat greet/v1/greet.proto 
syntax = "proto3";

package greet.v1;

option go_package = "example/gen/greet/v1;greetv1";

message GreetRequest {
  string name = 1;
}

message GreetResponse {
  string greeting = 1;
}

service GreetService {
  rpc Greet(GreetRequest) returns (GreetResponse) {}
}
$ vim greet/v1/greet.proto
# Then, launch :LspStatus

Output

buf: exited

Expected Output

buf: running

Anything else?

Checking the logs of the lsp client (vim-lsp),
I found that buf beta lsp was panicking and exiting.

DEBUG	responding	{\"method\": \"initialize\", \"params\": {\"capabilities\":{\"textDocumentSync\":{\"openClose\":true,\"change\":1,\"save\":{}},\"hoverProvider\":true,\"definitionProvider\":{\"workDoneProgress\":true},\"documentFormattingProvider\":true,\"semanticTokensProvider\":{\"workDoneProgress\":true,\"legend\":{\"tokenTypes\":[\"type\",\"struct\",\"variable\",\"enum\",\"enumMember\",\"interface\",\"method\",\"decorator\"],\"tokenModifiers\":[]},\"full\":true}},\"serverInfo\":{\"name\":\"buf-lsp\",\"version\":\"(devel)\"}}}
DEBUG	github.com/bufbuild/buf/private/buf/buflsp.(*lsp).newHandler.AsyncHandler.func3.2	{\"duration\": \"1.753083ms\", \"method\": \"initialize\", \"params\": {\"rootUri\":\"file:///Users/micheam/Work/buf.build/getting-started-with-connect-go\",\"initializationOptions\":{},\"capabilities\":{\"workspace\":{\"workspaceFolders\":false,\"configuration\":true,\"symbol\":{\"dynamicRegistration\":false},\"applyEdit\":true},\"window\":{\"workDoneProgress\":false},\"textDocument\":{\"callHierarchy\":{\"dynamicRegistration\":false},\"rename\":{\"prepareSupport\":true,\"dynamicRegistration\":false,\"prepareSupportDefaultBehavior\":1},\"codeAction\":{\"isPreferredSupport\":true,\"disabledSupport\":true,\"codeActionLiteralSupport\":{\"codeActionKind\":{\"valueSet\":[\"\",\"quickfix\",\"refactor\",\"refactor.extract\",\"refactor.inline\",\"refactor.rewrite\",\"source\",\"source.organizeImports\"]}},\"dynamicRegistration\":false},\"completion\":{\"completionItem\":{\"snippetSupport\":false,\"resolveSupport\":{\"properties\":[\"additionalTextEdits\"]},\"documentationFormat\":[\"markdown\",\"plaintext\"]},\"dynamicRegistration\":false,\"completionItemKind\":{\"valueSet\":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,1,2,3,4,5,6,7,8,9]}},\"formatting\":{\"dynamicRegistration\":false},\"codeLens\":{\"dynamicRegistration\":false},\"inlayHint\":{\"dynamicRegistration\":false},\"hover\":{\"dynamicRegistration\":false,\"contentFormat\":[\"markdown\",\"plaintext\"]},\"rangeFormatting\":{\"dynamicRegistration\":false},\"declaration\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"references\":{\"dynamicRegistration\":false},\"typeHierarchy\":{\"dynamicRegistration\":false},\"foldingRange\":{\"rangeLimit\":5000,\"dynamicRegistration\":false,\"lineFoldingOnly\":true},\"documentSymbol\":{\"symbolKind\":{\"valueSet\":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,1,2,3,4,5,6,7,8,9]},\"dynamicRegistration\":false,\"labelSupport\":false,\"hierarchicalDocumentSymbolSupport\":false},\"publishDiagnostics\":{\"relatedInformation\":true},\"synchronization\":{\"dynamicRegistration\":false,\"willSaveWaitUntil\":false,\"willSave\":false,\"didSave\":true},\"documentHighlight\":{\"dynamicRegistration\":false},\"implementation\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"typeDefinition\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"semanticTokens\":{\"serverCancelSupport\":false,\"requests\":{\"full\":false,\"range\":false},\"multilineTokenSupport\":false,\"dynamicRegistration\":false,\"overlappingTokenSupport\":false,\"tokenTypes\":[\"type\",\"class\",\"enum\",\"interface\",\"struct\",\"typeParameter\",\"parameter\",\"variable\",\"property\",\"enumMember\",\"event\",\"function\",\"method\",\"macro\",\"keyword\",\"modifier\",\"comment\",\"string\",\"number\",\"regexp\",\"operator\"],\"tokenModifiers\":[],\"formats\":[\"relative\"]},\"signatureHelp\":{\"dynamicRegistration\":false},\"definition\":{\"dynamicRegistration\":false,\"linkSupport\":true}}},\"rootPath\":\"/Users/micheam/Work/buf.build/getting-started-with-connect-go\",\"clientInfo\":{\"name\":\"vim-lsp\"},\"processId\":53836,\"trace\":\"off\"}}
DEBUG	handling request	{\"method\": \"initialized\", \"params\": {}}
DEBUG	github.com/bufbuild/buf/private/buf/buflsp.(*lsp).newHandler.AsyncHandler.func3.2	{\"duration\": \"28.792µs\", \"method\": \"initialized\", \"params\": {}}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x103cc12d8]

goroutine 11 [running]:
github.com/bufbuild/buf/private/buf/buflsp.(*server).Initialized(0x1400079aeb0?, {0x104764e78?, 0x14000563cc0?}, 0x0?)
	github.com/bufbuild/buf/private/buf/buflsp/server.go:145 +0x38
go.lsp.dev/protocol.serverDispatch({0x104764e78, 0x14000563cc0}, {0x1047b15f8, 0x1400019cbc8}, 0x1400079bee8, {0x12c777190, 0x14000697cb0})
	go.lsp.dev/[email protected]/server.go:88 +0x1160
github.com/bufbuild/buf/private/buf/buflsp.(*lsp).newHandler.ServerHandler.func2({0x104764e78, 0x14000563cc0}, 0x1400079bee8, {0x12c777190, 0x14000697cb0})
	go.lsp.dev/[email protected]/server.go:36 +0x6c
github.com/bufbuild/buf/private/buf/buflsp.(*lsp).newHandler.func1({0x104764e78, 0x14000563cc0}, 0x1400036bd10, {0x12c777190, 0x14000697cb0})
	github.com/bufbuild/buf/private/buf/buflsp/buflsp.go:156 +0x390
github.com/bufbuild/buf/private/buf/buflsp.(*lsp).newHandler.AsyncHandler.func3.2()
	go.lsp.dev/[email protected]/handler.go:114 +0x78
created by github.com/bufbuild/buf/private/buf/buflsp.(*lsp).newHandler.AsyncHandler.func3 in goroutine 9
	go.lsp.dev/[email protected]/handler.go:112 +0x164
The full log is here.
日  1/12 22:55:55 2025:["lsp#register_server","server registered","buf"]
日  1/12 22:55:55 2025:["s:on_text_document_did_open()",1,"proto","/Users/micheam/Work/buf.build/getting-started-with-connect-go","file:///Users/micheam/Work/buf.build/getting-started-with-connect-go/greet/v1/greet.proto"]
日  1/12 22:55:55 2025:["Starting server","buf",["buf","beta","lsp","--debug","--timeout=0","--log-format=text"]]
日  1/12 22:55:55 2025:[{"response":{"data":{"__data__":"vim-lsp","lsp_id":1,"server_name":"buf"},"message":"started lsp server successfully"}}]
日  1/12 22:55:55 2025:["--->",1,"buf",{"method":"initialize","params":{"rootUri":"file:///Users/micheam/Work/buf.build/getting-started-with-connect-go","initializationOptions":{},"capabilities":{"workspace":{"workspaceFolders":false,"configuration":true,"symbol":{"dynamicRegistration":false},"applyEdit":true},"window":{"workDoneProgress":false},"textDocument":{"callHierarchy":{"dynamicRegistration":false},"rename":{"prepareSupport":true,"dynamicRegistration":false,"prepareSupportDefaultBehavior":1},"codeAction":{"isPreferredSupport":true,"disabledSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dynamicRegistration":false},"completion":{"completionItem":{"snippetSupport":false,"resolveSupport":{"properties":["additionalTextEdits"]},"documentationFormat":["markdown","plaintext"]},"dynamicRegistration":false,"completionItemKind":{"valueSet":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,1,2,3,4,5,6,7,8,9]}},"formatting":{"dynamicRegistration":false},"codeLens":{"dynamicRegistration":false},"inlayHint":{"dynamicRegistration":false},"hover":{"dynamicRegistration":false,"contentFormat":["markdown","plaintext"]},"rangeFormatting":{"dynamicRegistration":false},"declaration":{"dynamicRegistration":false,"linkSupport":true},"references":{"dynamicRegistration":false},"typeHierarchy":{"dynamicRegistration":false},"foldingRange":{"rangeLimit":5000,"dynamicRegistration":false,"lineFoldingOnly":true},"documentSymbol":{"symbolKind":{"valueSet":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,1,2,3,4,5,6,7,8,9]},"dynamicRegistration":false,"labelSupport":false,"hierarchicalDocumentSymbolSupport":false},"publishDiagnostics":{"relatedInformation":true},"synchronization":{"dynamicRegistration":false,"willSaveWaitUntil":false,"willSave":false,"didSave":true},"documentHighlight":{"dynamicRegistration":false},"implementation":{"dynamicRegistration":false,"linkSupport":true},"typeDefinition":{"dynamicRegistration":false,"linkSupport":true},"semanticTokens":{"serverCancelSupport":false,"requests":{"full":false,"range":false},"multilineTokenSupport":false,"dynamicRegistration":false,"overlappingTokenSupport":false,"tokenTypes":["type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator"],"tokenModifiers":[],"formats":["relative"]},"signatureHelp":{"dynamicRegistration":false},"definition":{"dynamicRegistration":false,"linkSupport":true}}},"rootPath":"/Users/micheam/Work/buf.build/getting-started-with-connect-go","clientInfo":{"name":"vim-lsp"},"processId":53836,"trace":"off"}}]
日  1/12 22:55:56 2025:["<---(stderr)",1,"buf","WARN\tThis command is in beta. It is unstable and likely to change. To suppress this warning, set BUF_BETA_SUPPRESS_WARNINGS=1\n"]
日  1/12 22:55:56 2025:["<---(stderr)",1,"buf","DEBUG\thandling request\t{\"method\": \"initialize\", \"params\": {\"rootUri\":\"file:///Users/micheam/Work/buf.build/getting-started-with-connect-go\",\"initializationOptions\":{},\"capabilities\":{\"workspace\":{\"workspaceFolders\":false,\"configuration\":true,\"symbol\":{\"dynamicRegistration\":false},\"applyEdit\":true},\"window\":{\"workDoneProgress\":false},\"textDocument\":{\"callHierarchy\":{\"dynamicRegistration\":false},\"rename\":{\"prepareSupport\":true,\"dynamicRegistration\":false,\"prepareSupportDefaultBehavior\":1},\"codeAction\":{\"isPreferredSupport\":true,\"disabledSupport\":true,\"codeActionLiteralSupport\":{\"codeActionKind\":{\"valueSet\":[\"\",\"quickfix\",\"refactor\",\"refactor.extract\",\"refactor.inline\",\"refactor.rewrite\",\"source\",\"source.organizeImports\"]}},\"dynamicRegistration\":false},\"completion\":{\"completionItem\":{\"snippetSupport\":false,\"resolveSupport\":{\"properties\":[\"additionalTextEdits\"]},\"documentationFormat\":[\"markdown\",\"plaintext\"]},\"dynamicRegistration\":false,\"completionItemKind\":{\"valueSet\":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,1,2,3,4,5,6,7,8,9]}},\"formatting\":{\"dynamicRegistration\":false},\"codeLens\":{\"dynamicRegistration\":false},\"inlayHint\":{\"dynamicRegistration\":false},\"hover\":{\"dynamicRegistration\":false,\"contentFormat\":[\"markdown\",\"plaintext\"]},\"rangeFormatting\":{\"dynamicRegistration\":false},\"declaration\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"references\":{\"dynamicRegistration\":false},\"typeHierarchy\":{\"dynamicRegistration\":false},\"foldingRange\":{\"rangeLimit\":5000,\"dynamicRegistration\":false,\"lineFoldingOnly\":true},\"documentSymbol\":{\"symbolKind\":{\"valueSet\":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,1,2,3,4,5,6,7,8,9]},\"dynamicRegistration\":false,\"labelSupport\":false,\"hierarchicalDocumentSymbolSupport\":false},\"publishDiagnostics\":{\"relatedInformation\":true},\"synchronization\":{\"dynamicRegistration\":false,\"willSaveWaitUntil\":false,\"willSave\":false,\"didSave\":true},\"documentHighlight\":{\"dynamicRegistration\":false},\"implementation\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"typeDefinition\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"semanticTokens\":{\"serverCancelSupport\":false,\"requests\":{\"full\":false,\"range\":false},\"multilineTokenSupport\":false,\"dynamicRegistration\":false,\"overlappingTokenSupport\":false,\"tokenTypes\":[\"type\",\"class\",\"enum\",\"interface\",\"struct\",\"typeParameter\",\"parameter\",\"variable\",\"property\",\"enumMember\",\"event\",\"function\",\"method\",\"macro\",\"keyword\",\"modifier\",\"comment\",\"string\",\"number\",\"regexp\",\"operator\"],\"tokenModifiers\":[],\"formats\":[\"relative\"]},\"signatureHelp\":{\"dynamicRegistration\":false},\"definition\":{\"dynamicRegistration\":false,\"linkSupport\":true}}},\"rootPath\":\"/Users/micheam/Work/buf.build/getting-started-with-connect-go\",\"clientInfo\":{\"name\":\"vim-lsp\"},\"processId\":53836,\"trace\":\"off\"}}\n"]
日  1/12 22:55:56 2025:["<---",1,"buf",{"response":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"hoverProvider":true,"documentFormattingProvider":true,"definitionProvider":{"workDoneProgress":true},"textDocumentSync":{"save":{},"change":1,"openClose":true},"semanticTokensProvider":{"legend":{"tokenTypes":["type","struct","variable","enum","enumMember","interface","method","decorator"],"tokenModifiers":[]},"workDoneProgress":true,"full":true}},"serverInfo":{"version":"(devel)","name":"buf-lsp"}}},"request":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"rootUri":"file:///Users/micheam/Work/buf.build/getting-started-with-connect-go","initializationOptions":{},"capabilities":{"workspace":{"workspaceFolders":false,"configuration":true,"symbol":{"dynamicRegistration":false},"applyEdit":true},"window":{"workDoneProgress":false},"textDocument":{"callHierarchy":{"dynamicRegistration":false},"rename":{"prepareSupport":true,"dynamicRegistration":false,"prepareSupportDefaultBehavior":1},"codeAction":{"isPreferredSupport":true,"disabledSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dynamicRegistration":false},"completion":{"completionItem":{"snippetSupport":false,"resolveSupport":{"properties":["additionalTextEdits"]},"documentationFormat":["markdown","plaintext"]},"dynamicRegistration":false,"completionItemKind":{"valueSet":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,1,2,3,4,5,6,7,8,9]}},"formatting":{"dynamicRegistration":false},"codeLens":{"dynamicRegistration":false},"inlayHint":{"dynamicRegistration":false},"hover":{"dynamicRegistration":false,"contentFormat":["markdown","plaintext"]},"rangeFormatting":{"dynamicRegistration":false},"declaration":{"dynamicRegistration":false,"linkSupport":true},"references":{"dynamicRegistration":false},"typeHierarchy":{"dynamicRegistration":false},"foldingRange":{"rangeLimit":5000,"dynamicRegistration":false,"lineFoldingOnly":true},"documentSymbol":{"symbolKind":{"valueSet":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,1,2,3,4,5,6,7,8,9]},"dynamicRegistration":false,"labelSupport":false,"hierarchicalDocumentSymbolSupport":false},"publishDiagnostics":{"relatedInformation":true},"synchronization":{"dynamicRegistration":false,"willSaveWaitUntil":false,"willSave":false,"didSave":true},"documentHighlight":{"dynamicRegistration":false},"implementation":{"dynamicRegistration":false,"linkSupport":true},"typeDefinition":{"dynamicRegistration":false,"linkSupport":true},"semanticTokens":{"serverCancelSupport":false,"requests":{"full":false,"range":false},"multilineTokenSupport":false,"dynamicRegistration":false,"overlappingTokenSupport":false,"tokenTypes":["type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator"],"tokenModifiers":[],"formats":["relative"]},"signatureHelp":{"dynamicRegistration":false},"definition":{"dynamicRegistration":false,"linkSupport":true}}},"rootPath":"/Users/micheam/Work/buf.build/getting-started-with-connect-go","clientInfo":{"name":"vim-lsp"},"processId":53836,"trace":"off"}}}]
日  1/12 22:55:56 2025:["--->",1,"buf",{"method":"initialized","params":{}}]
日  1/12 22:55:56 2025:["--->",1,"buf",{"method":"workspace/didChangeConfiguration","params":{"settings":{}}}]
日  1/12 22:55:56 2025:[{"response":{"data":{"__data__":"vim-lsp","server_name":"buf"},"message":"configuration sent"}}]
日  1/12 22:55:56 2025:["s:update_file_content()",1]
日  1/12 22:55:56 2025:["--->",1,"buf",{"method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///Users/micheam/Work/buf.build/getting-started-with-connect-go/greet/v1/greet.proto","version":1,"languageId":"proto","text":"syntax = \"proto3\";\n\npackage greet.v1;\n\noption go_package = \"example/gen/greet/v1;greetv1\";\n\nmessage GreetRequest {\n  string name = 1;\n}\n\nmessage GreetResponse {\n  string greeting = 1;\n}\n\nservice GreetService {\n  rpc Greet(GreetRequest) returns (GreetResponse) {}\n}\n"}}}]
日  1/12 22:55:56 2025:["s:on_stdout client option on_notification() error","Vim(call):E631: ch_sendraw(): Write failed","function <SNR>184_out_cb[1]..<SNR>182_on_stdout[67]..<SNR>153_on_notification[16]..<SNR>153_handle_initialize[25]..<SNR>183_callback[1]..<SNR>183_next[9]..<lambda>80[1]..<SNR>153_ensure_conf[14]..<SNR>183_callback[1]..<SNR>183_next[9]..<lambda>81[1]..<SNR>153_ensure_open[29]..<SNR>153_send_notification[7]..lsp#client#send_notification[10]..<SNR>182_lsp_send[34]..lsp#utils#job#send[2]..<SNR>184_job_send, line 18"]
日  1/12 22:55:56 2025:["<---(stderr)",1,"buf","DEBUG\tresponding\t{\"method\": \"initialize\", \"params\": {\"capabilities\":{\"textDocumentSync\":{\"openClose\":true,\"change\":1,\"save\":{}},\"hoverProvider\":true,\"definitionProvider\":{\"workDoneProgress\":true},\"documentFormattingProvider\":true,\"semanticTokensProvider\":{\"workDoneProgress\":true,\"legend\":{\"tokenTypes\":[\"type\",\"struct\",\"variable\",\"enum\",\"enumMember\",\"interface\",\"method\",\"decorator\"],\"tokenModifiers\":[]},\"full\":true}},\"serverInfo\":{\"name\":\"buf-lsp\",\"version\":\"(devel)\"}}}\nDEBUG\tgithub.com/bufbuild/buf/private/buf/buflsp.(*lsp).newHandler.AsyncHandler.func3.2\t{\"duration\": \"1.753083ms\", \"method\": \"initialize\", \"params\": {\"rootUri\":\"file:///Users/micheam/Work/buf.build/getting-started-with-connect-go\",\"initializationOptions\":{},\"capabilities\":{\"workspace\":{\"workspaceFolders\":false,\"configuration\":true,\"symbol\":{\"dynamicRegistration\":false},\"applyEdit\":true},\"window\":{\"workDoneProgress\":false},\"textDocument\":{\"callHierarchy\":{\"dynamicRegistration\":false},\"rename\":{\"prepareSupport\":true,\"dynamicRegistration\":false,\"prepareSupportDefaultBehavior\":1},\"codeAction\":{\"isPreferredSupport\":true,\"disabledSupport\":true,\"codeActionLiteralSupport\":{\"codeActionKind\":{\"valueSet\":[\"\",\"quickfix\",\"refactor\",\"refactor.extract\",\"refactor.inline\",\"refactor.rewrite\",\"source\",\"source.organizeImports\"]}},\"dynamicRegistration\":false},\"completion\":{\"completionItem\":{\"snippetSupport\":false,\"resolveSupport\":{\"properties\":[\"additionalTextEdits\"]},\"documentationFormat\":[\"markdown\",\"plaintext\"]},\"dynamicRegistration\":false,\"completionItemKind\":{\"valueSet\":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,1,2,3,4,5,6,7,8,9]}},\"formatting\":{\"dynamicRegistration\":false},\"codeLens\":{\"dynamicRegistration\":false},\"inlayHint\":{\"dynamicRegistration\":false},\"hover\":{\"dynamicRegistration\":false,\"contentFormat\":[\"markdown\",\"plaintext\"]},\"rangeFormatting\":{\"dynamicRegistration\":false},\"declaration\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"references\":{\"dynamicRegistration\":false},\"typeHierarchy\":{\"dynamicRegistration\":false},\"foldingRange\":{\"rangeLimit\":5000,\"dynamicRegistration\":false,\"lineFoldingOnly\":true},\"documentSymbol\":{\"symbolKind\":{\"valueSet\":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,1,2,3,4,5,6,7,8,9]},\"dynamicRegistration\":false,\"labelSupport\":false,\"hierarchicalDocumentSymbolSupport\":false},\"publishDiagnostics\":{\"relatedInformation\":true},\"synchronization\":{\"dynamicRegistration\":false,\"willSaveWaitUntil\":false,\"willSave\":false,\"didSave\":true},\"documentHighlight\":{\"dynamicRegistration\":false},\"implementation\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"typeDefinition\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"semanticTokens\":{\"serverCancelSupport\":false,\"requests\":{\"full\":false,\"range\":false},\"multilineTokenSupport\":false,\"dynamicRegistration\":false,\"overlappingTokenSupport\":false,\"tokenTypes\":[\"type\",\"class\",\"enum\",\"interface\",\"struct\",\"typeParameter\",\"parameter\",\"variable\",\"property\",\"enumMember\",\"event\",\"function\",\"method\",\"macro\",\"keyword\",\"modifier\",\"comment\",\"string\",\"number\",\"regexp\",\"operator\"],\"tokenModifiers\":[],\"formats\":[\"relative\"]},\"signatureHelp\":{\"dynamicRegistration\":false},\"definition\":{\"dynamicRegistration\":false,\"linkSupport\":true}}},\"rootPath\":\"/Users/micheam/Work/buf.build/getting-started-with-connect-go\",\"clientInfo\":{\"name\":\"vim-lsp\"},\"processId\":53836,\"trace\":\"off\"}}\nDEBUG\thandling request\t{\"method\": \"initialized\", \"params\": {}}\nDEBUG\tgithub.com/bufbuild/buf/private/buf/buflsp.(*lsp).newHandler.AsyncHandler.func3.2\t{\"duration\": \"28.792µs\", \"method\": \"initialized\", \"params\": {}}\npanic: runtime error: invalid memory address or nil pointer dereference\n[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x103cc12d8]\n\ngoroutine 11 [running]:\ngithub.com/bufbuild/buf/private/buf/buflsp.(*server).Initialized(0x1400079aeb0?, {0x104764e78?, 0x14000563cc0?}, 0x0?)\n\tgithub.com/bufbuild/buf/private/buf/buflsp/server.go:145 +0x38\ngo.lsp.dev/protocol.serverDispatch({0x104764e78, 0x14000563cc0}, {0x1047b15f8, 0x1400019cbc8}, 0x1400079bee8, {0x12c777190, 0x14000697cb0})\n\tgo.lsp.dev/[email protected]/server.go:88 +0x1160\ngithub.com/bufbuild/buf/private/buf/buflsp.(*lsp).newHandler.ServerHandler.func2({0x104764e78, 0x14000563cc0}, 0x1400079bee8, {0x12c777190, 0x14000697cb0})\n\tgo.lsp.dev/[email protected]/server.go:36 +0x6c\ngithub.com/bufbuild/buf/private/buf/buflsp.(*lsp).newHandler.func1({0x104764e78, 0x14000563cc0}, 0x1400036bd10, {0x12c777190, 0x14000697cb0})\n\tgithub.com/bufbuild/buf/private/buf/buflsp/buflsp.go:156 +0x390\ngithub.com/bufbuild/buf/private/buf/buflsp.(*lsp).newHandler.AsyncHandler.func3.2()\n\tgo.lsp.dev/[email protected]/handler.go:114 +0x78\ncreated by github.com/bufbuild/buf/private/buf/buflsp.(*lsp).newHandler.AsyncHandler.func3 in goroutine 9\n\tgo.lsp.dev/[email protected]/handler.go:112 +0x164\n"]
日  1/12 22:55:56 2025:["s:on_exit",1,"buf","exited",2]
@micheam micheam added the Bug Something isn't working label Jan 12, 2025
micheam added a commit to micheam/buf that referenced this issue Jan 12, 2025
micheam added a commit to micheam/buf that referenced this issue Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant