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

'Run test' after Github Copilot generates tests hangs window #3665

Open
tcrasset opened this issue Jan 16, 2025 · 1 comment
Open

'Run test' after Github Copilot generates tests hangs window #3665

tcrasset opened this issue Jan 16, 2025 · 1 comment
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@tcrasset
Copy link

What version of Go, VS Code & VS Code Go extension are you using?

Version Information
  • Run go version to get version of Go from the VS Code integrated terminal.
    • go version go1.23.2 linux/amd64
  • Run gopls -v version to get version of Gopls from the VS Code integrated terminal.
➜ gopls -v version
Build info
----------
golang.org/x/tools/gopls v0.16.2
    golang.org/x/tools/[email protected] h1:K1z03MlikHfaMTtG01cUeL5FAOTJnITuNe0TWOcg8tM=
    github.com/BurntSushi/[email protected] h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=
    github.com/google/[email protected] h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
    golang.org/x/exp/[email protected] h1:2O2DON6y3XMJiQRAS1UWU+54aec2uopH3x7MAiqGW6Y=
    golang.org/x/[email protected] h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0=
    golang.org/x/[email protected] h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ=
    golang.org/x/[email protected] h1:Wm3cG5X6sZ0RSVRc/H1/sciC4AT6HAKgLCSH2lbpR/c=
    golang.org/x/[email protected] h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4=
    golang.org/x/[email protected] h1:6bJEg2w2kUHWlfdJaESYsmNfI1LKAZQi6zCa7LUn7eI=
    golang.org/x/[email protected] h1:SP0mPeg2PmGCu03V+61EcQiOjmpri2XijexKdzv8Z1I=
    honnef.co/go/[email protected] h1:9MDAWxMoSnB6QoSqiVr7P5mtkT9pOc1kSxchzPCnqJs=
    mvdan.cc/[email protected] h1:G3QvahNDmpD+Aek/bNOLrFR2XC6ZAdo62dZu65gmwGo=
    mvdan.cc/xurls/[email protected] h1:lyBNOm8Wo71UknhUs4QTFUNNMyxy2JEIaKKo0RWOh+8=
go: go1.23.2
  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders.
➜ code -v
1.96.2
fabdb6a30b49f79a7aba0f2ad9df9b399473380f
x64
  • Check your installed extensions to get the version of the VS Code Go extension
    • 0.44.0
  • Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) > Go: Locate Configured Go Tools command.
# Tools Configuration


## Environment

GOBIN: undefined
toolsGopath: 
gopath: /home/tom/go
GOROOT: /usr/local/go
PATH: /home/tom/google-cloud-sdk/bin:/home/tom/.asdf/shims:/home/tom/.asdf/bin:/home/tom/google-cloud-sdk/bin:/home/tom/bin:/home/tom/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/tom/.local/bin://home/tom/.asdf/shims:/home/tom/Android/Sdk/cmdline-tools/latest/bin:/opt/android-studio/bin:/home/tom/google-cloud-sdk/bin:/home/tom/Android/Sdk/emulator:/home/tom/Android/Sdk/platform-tools:/home/tom/.pulumi/bin:/usr/local/go/bin:/opt/apache-maven-3.9.4/bin:/opt/act/bin:/opt/bfg/bin:/home/tom/go/bin:/opt/

## Tools

	go:	/usr/local/go/bin/go: go version go1.23.2 linux/amd64

	gopls:	/home/tom/go/bin/gopls	(version: v0.16.2 built with go: go1.23.2)
	gotests:	/home/tom/go/bin/gotests	(version: v1.6.0 built with go: go1.23.2)
	gomodifytags:	/home/tom/go/bin/gomodifytags	(version: v1.17.0 built with go: go1.23.2)
	impl:	/home/tom/go/bin/impl	(version: v1.4.0 built with go: go1.23.2)
	goplay:	/home/tom/go/bin/goplay	(version: v1.0.0 built with go: go1.23.2)
	dlv:	/home/tom/go/bin/dlv	(version: v1.23.1 built with go: go1.23.2)
	staticcheck:	/home/tom/go/bin/staticcheck	(version: v0.5.1 built with go: go1.23.2)

## Go env

Workspace Folder (seaweedfs): /home/tom/Documents/dev/seaweedfs

	GO111MODULE=''
	GOARCH='amd64'
	GOBIN=''
	GOCACHE='/home/tom/.cache/go-build'
	GOENV='/home/tom/.config/go/env'
	GOEXE=''
	GOEXPERIMENT=''
	GOFLAGS=''
	GOHOSTARCH='amd64'
	GOHOSTOS='linux'
	GOINSECURE=''
	GOMODCACHE='/home/tom/go/pkg/mod'
	GONOPROXY=''
	GONOSUMDB=''
	GOOS='linux'
	GOPATH='/home/tom/go'
	GOPRIVATE=''
	GOPROXY='https://proxy.golang.org,direct'
	GOROOT='/usr/local/go'
	GOSUMDB='sum.golang.org'
	GOTMPDIR=''
	GOTOOLCHAIN='auto'
	GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
	GOVCS=''
	GOVERSION='go1.23.2'
	GODEBUG=''
	GOTELEMETRY='local'
	GOTELEMETRYDIR='/home/tom/.config/go/telemetry'
	GCCGO='gccgo'
	GOAMD64='v1'
	AR='ar'
	CC='gcc'
	CXX='g++'
	CGO_ENABLED='1'
	GOMOD='/home/tom/Documents/dev/seaweedfs/go.mod'
	GOWORK=''
	CGO_CFLAGS='-O2 -g'
	CGO_CPPFLAGS=''
	CGO_CXXFLAGS='-O2 -g'
	CGO_FFLAGS='-O2 -g'
	CGO_LDFLAGS='-O2 -g'
	PKG_CONFIG='pkg-config'
	GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build1729916710=/tmp/go-build -gno-record-gcc-switches'
	

Share the Go related settings you have added/edited

Run Preferences: Open Settings (JSON) command to open your settings.json file.
Share all the settings with the go. or ["go"] or gopls prefixes.

    "gopls": {
        "ui.semanticTokens": true
    },

Describe the bug

When asking Github Copilot to create a test, after it generates a test case that compiles, if I click on 'Run test' above the test definition, VSCode asks me if I want to save the file created by AI, and the whole window hangs.

See attached video below, and the debug logs with code --verbose --log 'debug'

less-output.txt

Steps to reproduce the behavior:

  1. Make sure that the default action when saving a file generated by Github Copilot is to ask before saving (not sure if it matters really)
  2. Have Github Copilot generate a test, and wait for the Go extension to collect test the
  3. Click on 'Run test' that appears above the test definition
  4. VsCode asks to save the file, but nothing can be clicked, the page hangs

Screenshots or recordings

If applicable, add screenshots or recordings to help explain your problem.

Screencast.from.2025-01-16.10-33-56.mp4
@gopherbot gopherbot added this to the Untriaged milestone Jan 16, 2025
@findleyr
Copy link
Member

Hi, can you look in your process explorer to see which processes (if any) are consuming CPU?

What happens if you save the file before clicking on 'Run Test'?

@findleyr findleyr added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants