-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
Bumping the docify version and using relative paths is needed for the monorepo to find the test files in the new workspace. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@sam0x17 could you please check the Ci output here? I dont get why it tries to search for PS: It reproduces with |
So the weird thing here is we are embedding stuff from TLDR: paths for |
ok so looking into this further, no idea why it is trying to look in fuzzer, so will get to the bottom of that |
update: so the main barrier here is that because docify injects within a So the first natural thing to try would be "ok, what if we just make it an attribute" so like: /// something
#[docify::embed("some/file.rs")
/// something else
The problem with this is attributes actually cannot discover what their index is within an items underlying list of attributes, since the internal So Yandros (@danielhenrymantilla), who is a macro wizard and rustc maintainer, suggested what I think is a much better syntax and one that would also probably solve this issue: #[docify::docify]
/// some comments some comments
/// @embed("examples/samples.rs", MyCoolStruct)
/// another example:
/// @embed("src/something.rs", MyThing)
/// some closing comments
pub struct Foo; This is the moral equivalent of switching to an outer macro pattern, but for attributes. The Now we could just match exactly what the markdown parsing already does which is to use the rather verbose: # this is markdown
<!-- docify::embed!("something.rs", Something) --> However the So I may experiment with implementing this syntax if other debugging options don't yield anything. All of that said, @ggwpez provided me with some additional debugging information and I think I have enough info to try to directly fix this (false positive on So going to try to directly fix this first |
Going to try with a tweaked version of docify now |
OK I've identified the issue. It's actually quite simple. The code that looks for the crate_root looks for Cargo.toml files where [[bin]]
name = "pallet-paged-list" So my assumption is bad and what I should be doing is real TOML parsing here. So will add that. |
note: this now bumps us to docify 0.2.1 which includes the fix for the above 👍🏻 |
bot merge |
Bumping the docify version and using relative paths is needed for the monorepo to find the test files in the new workspace.