Skip to content

x/tools/gopls/internal/cmd: TestFormat failures #75391

@gopherbot

Description

@gopherbot
#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/cmd" && test == "TestFormat"

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestFormat
=== PAUSE TestFormat
=== CONT  TestFormat
    integration_test.go:439: gopls format a.go: exited with code 2, want success: true (gopls format a.go: exit=2 stdout=<<>> stderr=<<fatal error: runtime: cannot allocate memory
        
        runtime stack:
        runtime.throw({0x7ff7013c5c93?, 0xffffffffffffee00?})
        	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1094 +0x34 fp=0xea48bff850 sp=0xea48bff820 pc=0x7ff700629e34
        runtime.persistentalloc1(0x1200, 0x0?, 0x7ff702040620)
        	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/malloc.go:1969 +0x28c fp=0xea48bff8b0 sp=0xea48bff850 pc=0x7ff7005c948c
...
        runtime.goexit({})
        	C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_arm64.s:1268 +0x4 fp=0x400026ffd0 sp=0x400026ffd0 pc=0x7ff700632794
        created by golang.org/x/tools/internal/gocommand.runCmdContext in goroutine 1
        	C:/Users/swarming/.swarming/w/ir/x/w/targetrepo1099957337/internal/gocommand/invoke.go:377 +0x238
        >>)
    integration_test.go:441: format: got <<>>, want <<package a
        
        func f() {}
        >>
--- FAIL: TestFormat (8.98s)

watchflakes

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions