Comments (12)
@wgliang I think you're missing the point of the comment:
goreporter -p undertest -r json
[Apollo]2017/04/12 14:03:44 The template path is not specified,and will use the default template[./templates/template.html]
[Apollo]2017/04/12 14:03:44 open ./templates/template.html: no such file or directory
is the same error as
goreporter -p undertest -r html
[Apollo]2017/04/12 14:05:26 The template path is not specified,and will use the default template[./templates/template.html]
[Apollo]2017/04/12 14:05:26 open ./templates/template.html: no such file or directory
I tried using -t /go/src/github.com/wgliang/goreporter/templates/template.html
, but it fails when generating the output in html:
html/template:skylar-apollo: ends in a non-text context: {stateCSS delimNone urlPartNone jsCtxRegexp attrNone elementStyle <nil>}
What I would like is some documentation on what this template file is suppose to include. And more examples than the existing broken one.
from goreporter.
Template in the github.com/wgliang/goreporter/templates/template.html.
from goreporter.
Thanks. But the README indicates it's optional, which is evidently not correct. And it would be nice if it would default to that one if none is specified.
from goreporter.
{-t templatePathIfHtml} means if you want a html you must specify it.
Thank you for your suggestion, I will reconsider the current method
from goreporter.
{-t templatePathIfHtml} means if you want a html you must specify it.
Not sure I understand. If I don't specify it, it just fails with an error (see above).
from goreporter.
you can run it:
./goreporter -p ../goreporter -r html -t ./templates/template.html OR ./goreporter -p ../goreporter -t ./templates/template.html
from goreporter.
Thank you for your suggestion,and it will default to that one if none is specified.
from goreporter.
from goreporter.
I updated to latest and am now getting the same error.
$ goreporter -p ./myproject
[Apollo]2017/04/12 10:29:03 The template path is not specified,and will use the default template[./templates/template.html]
[Apollo]2017/04/12 10:29:03 open ./templates/template.html: The system cannot find the path specified.
It seems to want me to know where to find its magic template file.
from goreporter.
Can not find the template file. The template file in github.com/wgliang/goreporter/template/template.html.
Now,unless you specify a valid template, otherwise it will use the default template file, I have written into the program, you can safely try again.
Thank you very much for your attention and pointing out my mistakes.
from goreporter.
working for me now, thanks
from goreporter.
@jeff-knurek This problem has also been fixed due to the previous increase in style errors.
See in fix style
from goreporter.
Related Issues (20)
- goreporter mac os cannot find err HOT 2
- Compile error with go1.11 HOT 2
- How to generate report in pdf? HOT 1
- stuck while generate report HOT 5
- Unit test coverage displays 0% HOT 7
- unit test coverage is always 0% , even log shows that Linter:UnitTest over
- panic: no signature for call of opt
- dead code not work
- Can I support the exclusion of the directory ?
- go_fmt statistics are incorrect
- build github.com/360EntSecGroup-Skylar/goreporter: cannot load golang.org/x/tools/go/gcimporter15 HOT 2
- Does it provide an average final grade or Score? HOT 2
- Is this project maintained at all? HOT 2
- -e 选项无效?
- Constants - Uppercase reported as error
- how to run or build goreporter? HOT 2
- How to run under gomod HOT 1
- go get failed HOT 1
- 不支持go.mod吗? HOT 5
- 运行报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goreporter.