Closed myronmarston closed 12 years ago
Does this always happen? I can't reproduce it with your repo. Note that the yard server --reload
command does not delete elements that you remove from code between reloads, so sometimes you will see methods in the docs that you had previously removed or renamed. This is a design flaw in the server, but the server reload feature is just meant for quickly adding docs, not changing code, so it works well for that use case. If you do end up deleting/moving things, you can quickly delete the .yardoc db and restart the server when you make these kinds of changes. If you delete the .yardoc and restart, does it happen again?
I deleted the .yardoc folder and that fixed it. Sorry about the noise :(.
No problem. This is also something we should doc better!
I've got repro steps for this now:
cd vcr
git checkout 7e790d655a4eaf673d742eed10208702f4ee7109
rm -rf .yardoc
rm -rf doc
yard server --reload
Browse to the doc page for the VCR module and you'll get the error. The very next commit fixes the issue. Apparently the extra comments (that I didn't mean to add and commit) cause the issue; I removed them when I noticed them, not realizing it was related to the error I was getting, so when you tried to repro the error it didn't occur anymore.
This isn't really a problem for me anymore (since the problematic comments have been removed) but it seems like a bug in YARD, so I reopened the issue.
Thanks for managing to reproduce this. Just a minor issue with rendering, it seems. Fixed!
Cool, thanks for the quick fix!
You can see the problem when you go here.
Locally, when I run
yard server --reload
, it crashes as well, and I get this backtrace:It works fine for the other classes/modules in my project, and it used to work fine for this module. I'm not sure which doc comments broke it, but you can see what the current comments are here.
Any ideas how to fix or work around this?