Replies: 3 comments
-
The obvious problem here is a collision between the tag name and some internals of YARD. One way that seems obvious to fix it is to just
I have that fix on my fork right now, but I am a little worried that there's still going to be some weirdness with that and I'm looking into it. I am also trying to ensure that the HTML output is as expected. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the late reply: Can you explain a bit about the use case for I think there is a fix that can be applied here (and the reason for the "will accept PR" tag on this issue), but the fix would probably not be what you're looking for: a warning when passing |
Beta Was this translation helpful? Give feedback.
-
@lsegal No worries at all! I appreciate all you do! Yes, the I have found that this commit fixes it but I'm not exactly sure why. I just tackled the symptom without fully understanding the problem. We've been generating docs and serving them on a I can put up a PR for that and if any issues come up we can go from there. |
Beta Was this translation helpful? Give feedback.
-
Steps to reproduce
POC can also be found at: https://github.com/Skipants/yard-poc/tree/master/error-converting-class-to-string
standard_object.rb
containing a class with a comment:yard doc --tag owner standard_object.rb
Actual Output
This errors with
[error]: Exception occurred while generating 'Base.html'
Full debug:
Expected Output
Expecting regular output as if run without a custom tag:
Environment details:
ruby -v
):ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
yard -v
):yard 0.9.28
I have read the Contributing Guide. ✅
Beta Was this translation helpful? Give feedback.
All reactions