-
-
Notifications
You must be signed in to change notification settings - Fork 403
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
Custom layout - ArgumentError: No such template for default/fulldoc/html #1490
Comments
Thanks for notifying. This has been corrected and a new version (0.9.30) is being pushed right now. |
Thank you! |
floehopper
added a commit
to freerange/mocha
that referenced
this issue
Apr 9, 2023
This reverts commit 12f1eef. The problem I reported in lsegal/yard#1490 was fixed in this commit [1] and released in v0.9.30. That means we no longer need to pin the version of yard. Fixes #609. [1]: lsegal/yard@7d05c7f
floehopper
added a commit
to freerange/mocha
that referenced
this issue
Apr 9, 2023
This reverts commit 12f1eef. The problem I reported in lsegal/yard#1490 was fixed in this commit [1] and released in v0.9.31. That means we no longer need to pin the version of yard. Fixes #609. [1]: lsegal/yard@7d05c7f
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The release of v0.9.29 seems to have broken some code in Mocha which I use to add Google Analytics to the Yard template. I see the following exception when generating docs:
This problem does not occur with v0.9.28. I've had a quick look through the changes between v0.9.28 and v0.9.29, but I can't see anything obvious that might've introduced the problem.
Steps to reproduce
I'm afraid I haven't yet had time to reduce this to the simplest case, but the following steps shouldn't be too hard to use to reproduce the problem.
MOCHA_GENERATE_DOCS=1 bundle install
MOCHA_GENERATE_DOCS=1 GOOGLE_ANALYTICS_WEB_PROPERTY_ID=dummy rake yardoc
ArgumentError
exception describe above.The
yardoc
Rake task uses.yardopts
. In particular thetemplate-path
option is set to point to theyard-templates
directory which contains a couple of files:default/layout/html/setup.rb
&default/layout/html/google_analytics.erb
.Actual Output
Expected Output
I expect the docs to be generated successfully without any exceptions.
Environment details:
ruby -v
): v2.7.6 (ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [arm64-darwin21]
) & v3.2.0 (ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin22]
)yard -v
): yard 0.9.29I have read the Contributing Guide.
The text was updated successfully, but these errors were encountered: