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

pprof: web does not open when using remote ssh #3090

Closed
tekig opened this issue Dec 13, 2023 · 0 comments
Closed

pprof: web does not open when using remote ssh #3090

tekig opened this issue Dec 13, 2023 · 0 comments
Labels
go-test issues related to go test support (test output, test explorer, ...) NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@tekig
Copy link
Contributor

tekig commented Dec 13, 2023

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.20.6 darwin/arm64
  • Run gopls -v version to get version of Gopls from the VS Code integrated terminal.
Build info
----------
golang.org/x/tools/gopls v0.14.2
    golang.org/x/tools/gopls@v0.14.2 h1:sIw6vjZiuQ9S7s0auUUkHlWgsCkKZFWDHmrge8LYsnc=
    github.com/BurntSushi/toml@v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=
    github.com/google/go-cmp@v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
    github.com/sergi/go-diff@v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
    golang.org/x/exp/typeparams@v0.0.0-20221212164502-fae10dda9338 h1:2O2DON6y3XMJiQRAS1UWU+54aec2uopH3x7MAiqGW6Y=
    golang.org/x/mod@v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0=
    golang.org/x/sync@v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ=
    golang.org/x/sys@v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q=
    golang.org/x/telemetry@v0.0.0-20231114163143-69313e640400 h1:brbkEFfGwNGAEkykUOcryE/JiHUMMJouzE0fWWmz/QU=
    golang.org/x/text@v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k=
    golang.org/x/tools@v0.14.1-0.20231114185516-c9d3e7de13fd h1:Oku7E+OCrXHyst1dG1z10etCTxewCHXNFLRlyMPbh3w=
    golang.org/x/vuln@v1.0.1 h1:KUas02EjQK5LTuIx1OylBQdKKZ9jeugs+HiqO5HormU=
    honnef.co/go/tools@v0.4.5 h1:YGD4H+SuIOOqsyoLOpZDWcieM28W47/zRO7f+9V3nvo=
    mvdan.cc/gofumpt@v0.4.0 h1:JVf4NN1mIpHogBj7ABpgOyZc65/UUOkKQFkoURsz4MM=
    mvdan.cc/xurls/v2@v2.4.0 h1:tzxjVAj+wSBmDcF6zBB7/myTy3gX9xvi8Tyr28AuQgc=
go: go1.20.6
  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders.
    • 1.85.0 af28b32d7e553898b2a91af498b1fb666fdebe0c arm64
  • Check your installed extensions to get the version of the VS Code Go extension
  • Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) > Go: Locate Configured Go Tools command.
GOBIN: undefined
toolsGopath: 
gopath: /Users/teki/go
GOROOT: /usr/local/go
PATH: /Users/teki/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c/bin/remote-cli:/Users/teki/go/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin

	go:	/usr/local/go/bin/go: go version go1.20.6 darwin/arm64

	gopls:	/Users/teki/go/bin/gopls	(version: v0.14.2 built with go: go1.20.6)
	gotests:	/Users/teki/go/bin/gotests	(version: v1.6.0 built with go: go1.21.4)
	gomodifytags:	/Users/teki/go/bin/gomodifytags	(version: v1.16.0 built with go: go1.21.4)
	impl:	/Users/teki/go/bin/impl	(version: v1.1.0 built with go: go1.21.4)
	goplay:	/Users/teki/go/bin/goplay	(version: v1.0.0 built with go: go1.21.4)
	dlv:	/Users/teki/go/bin/dlv	(version: v1.21.2 built with go: go1.21.4)
	golangci-lint:	/Users/teki/go/bin/golangci-lint	(version: v1.55.2 built with go: go1.21.4)

go env
Workspace Folder (sum): /Users/teki/go/src/localhost/sum
	GO111MODULE=""
	GOARCH="arm64"
	GOBIN=""
	GOCACHE="/Users/teki/Library/Caches/go-build"
	GOENV="/Users/teki/Library/Application Support/go/env"
	GOEXE=""
	GOEXPERIMENT=""
	GOFLAGS=""
	GOHOSTARCH="arm64"
	GOHOSTOS="darwin"
	GOINSECURE=""
	GOMODCACHE="/Users/teki/go/pkg/mod"
	GONOPROXY=""
	GONOSUMDB=""
	GOOS="darwin"
	GOPATH="/Users/teki/go"
	GOPRIVATE=""
	GOPROXY="https://proxy.golang.org,direct"
	GOROOT="/usr/local/go"
	GOSUMDB="sum.golang.org"
	GOTMPDIR=""
	GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
	GOVCS=""
	GOVERSION="go1.20.6"
	GCCGO="gccgo"
	AR="ar"
	CC="clang"
	CXX="clang++"
	CGO_ENABLED="1"
	GOMOD="/Users/teki/go/src/localhost/sum/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 -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/9h/flzvrcl122q5g6jfn4xxmr640000gn/T/go-build3221815084=/tmp/go-build -gno-record-gcc-switches -fno-common"

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.

{
    "go.formatTool": "gofumpt",
    "go.inlayHints.constantValues": true,
    "go.lintTool": "golangci-lint"
}

Describe the bug

pprof does not display web interface in vs code. Instead of graphs, a white screen is shown.

Steps to reproduce the behavior:

  1. Run vscode using ssh
  2. Open go project
  3. Run any test with any profile
  4. Web view panel opens with a white screen

Screenshots or recordings

image

@gopherbot gopherbot added this to the Untriaged milestone Dec 13, 2023
tekig added a commit to tekig/vscode-go that referenced this issue Dec 13, 2023
starting the pprof server, need forward the port
Fixes golang#3090
@hyangah hyangah modified the milestones: Untriaged, v0.41.0 Dec 14, 2023
@hyangah hyangah added NeedsFix The path to resolution is known, but the work has not been done. go-test issues related to go test support (test output, test explorer, ...) labels Dec 14, 2023
tekig added a commit to tekig/vscode-go that referenced this issue Dec 15, 2023
starting the pprof server, need forward the port
Fixes golang#3090
@hyangah hyangah modified the milestones: v0.41.0, v0.40.1 Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go-test issues related to go test support (test output, test explorer, ...) NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants