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

x/tools/cmd/present: -base switch results in "can't evaluate field" #21549

Closed
kaihendry opened this issue Aug 22, 2017 · 8 comments
Closed

x/tools/cmd/present: -base switch results in "can't evaluate field" #21549

kaihendry opened this issue Aug 22, 2017 · 8 comments
Milestone

Comments

@kaihendry
Copy link

@kaihendry kaihendry commented Aug 22, 2017

I want to modify present's default style sheet. AFAICT I need to override the base path.

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

go version go1.9rc2 linux/amd64

Does this issue reproduce with the latest release?

yes

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

http://ix.io/zkH

What did you do?

git clone https://github.com/golang/tools.git
cd tools/cmd/present
go build
curl -O https://s.natalian.org/2017-08-22/test.slide
./present -base .
curl http://127.0.0.1:3999/test.slide

What did you expect to see?

test.slide render using locally available static/ & template/ dirs.

What did you see instead?

2017/08/22 12:07:16 template: slides.tmpl:58:19: executing "root" at <$s.HTMLAttributes>: can't evaluate field HTMLAttributes in type present.Section
2017/08/22 12:07:16 http: multiple response.WriteHeader calls
@gopherbot gopherbot added this to the Unreleased milestone Aug 22, 2017
@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Aug 25, 2017

CC @campoy

@blainsmith
Copy link
Contributor

@blainsmith blainsmith commented Sep 3, 2017

I am experiencing the same thing, but using the default styles.

@schaki
Copy link

@schaki schaki commented Sep 6, 2017

I'm getting the same error on go version go1.9 darwin/amd64, and without any options passed in. Seems to be working correctly on go1.8.3

@abuschmann
Copy link

@abuschmann abuschmann commented Sep 14, 2017

I'm getting the same error message running go1.8.3 linux/amd64 on Fedora 26:

/usr/bin/go get golang.org/x/tools/cmd/present
/usr/bin/present

Regards

@abuschmann
Copy link

@abuschmann abuschmann commented Sep 14, 2017

It works, if I install go1.9.linux-amd64.tar.gz from https://golang.org/dl/ instead of using go and present as distributed by fedora.

@myself659
Copy link

@myself659 myself659 commented Sep 19, 2017

the same as above with the go version go1.8 windows/amd64

@jonaz
Copy link

@jonaz jonaz commented Sep 19, 2017

This happened to me when i had newer templates checked out and an older version of present tool installed. I just removed the present command go get -u the latest present command and then it worked. I have go 1.9 installed with arch linux packages.

@kaihendry
Copy link
Author

@kaihendry kaihendry commented Dec 14, 2017

I just retried and it's working now. 😁 Must have been some mismatch with the templates.

@kaihendry kaihendry closed this Dec 14, 2017
@golang golang locked and limited conversation to collaborators Dec 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants
You can’t perform that action at this time.