Skip to content

Buf language server constantly crashingΒ #478

@mfairley

Description

@mfairley

I'm constantly getting this crash in VsCode

goroutine 69 [running]:
github.com/bufbuild/protocompile/experimental/report.(*File).LineOffsets(...)
	github.com/bufbuild/protocompile@v0.14.2-0.20251017200126-6da99d83224e/experimental/report/span.go:352
github.com/bufbuild/protocompile/experimental/report.(*File).inverseLocation(0x140002ba1e0, 0x0, 0x0, 0x1)
	github.com/bufbuild/protocompile@v0.14.2-0.20251017200126-6da99d83224e/experimental/report/span.go:407 +0x23c
github.com/bufbuild/protocompile/experimental/report.(*File).InverseLocation(0x14a3b3068?, 0x0, 0x0, 0x14000f10590?)
	github.com/bufbuild/protocompile@v0.14.2-0.20251017200126-6da99d83224e/experimental/report/span.go:313 +0x50
github.com/bufbuild/buf/private/buf/buflsp.(*file).appendLintErrors(0x14000320008, {0x10167c87b, 0xc}, {0x14a3b3068, 0x140013602a0})
	github.com/bufbuild/buf/private/buf/buflsp/file.go:1111 +0x2b8
github.com/bufbuild/buf/private/buf/buflsp.(*file).RunBreaking(0x14000320008, {0x1020aa648, 0x14001016010})
	github.com/bufbuild/buf/private/buf/buflsp/file.go:1083 +0x488
github.com/bufbuild/buf/private/buf/buflsp.(*file).RunChecks.func1({0x1020aa648, 0x14001016010})
	github.com/bufbuild/buf/private/buf/buflsp/file.go:918 +0x190
github.com/bufbuild/buf/private/buf/buflsp.(*file).RunChecks.func2()
	github.com/bufbuild/buf/private/buf/buflsp/file.go:926 +0x64
created by github.com/bufbuild/buf/private/buf/buflsp.(*file).RunChecks in goroutine 49
	github.com/bufbuild/buf/private/buf/buflsp/file.go:922 +0x10c
[Error - 7:23:05 PM] The Buf Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 7:23:05 PM] Server process exited with code 2.

buf version 1.59.0
extension version: 0.8.1

Version: 1.105.1 (Universal)
Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084
Date: 2025-10-14T22:33:36.618Z
Electron: 37.6.0
ElectronBuildId: 12502201
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions