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

cmd/cover: tool cover -html draws invisible file chooser #26554

Open
sblackstone opened this Issue Jul 23, 2018 · 2 comments

Comments

Projects
None yet
5 participants
@sblackstone

sblackstone commented Jul 23, 2018

What version of Go are you using (go version)?

go version go1.10.3 darwin/amd64

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/sblackstone/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/sblackstone/code/furious/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.10.3/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.10.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/vv/1cv4dp094z5bvysrmzqmzjd00000gn/T/go-build060803460=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

go test ./... -coverprofile=cover.out && go tool cover -html=cover.out

What did you expect to see?

There is a visible select box for choosing which file to look at.

What did you see instead?

A missing-but-clickable file chooser in the profile... (See screenshot w/ HTML)

image

@ALTree ALTree changed the title from go tool cover -html draws invisible file chooser... to cmd/cover: tool cover -html draws invisible file chooser Jul 23, 2018

@bcmills bcmills added this to the Go1.12 milestone Jul 24, 2018

@dsymonds

This comment has been minimized.

Member

dsymonds commented Jul 26, 2018

I cannot reproduce this close to head, but I also can't see how this can happen from cmd/cover's side. The HTML it generates for the <select> is quite simple.

Is it possible you have some Chrome extension hiding it? Can you try opening that coverage.html file in an incognito window to check?

@ianlancetaylor

This comment has been minimized.

Contributor

ianlancetaylor commented Dec 7, 2018

@sblackstone See questions above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment