Skip to content
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

"no applicable method for 'xml_find_first'" error with empty Markdown file #80

Open
tobyhodges opened this issue Feb 15, 2024 · 0 comments
Labels
implementation discussion on implementation items {sandpaper} user interface package

Comments

@tobyhodges
Copy link
Member

I stumbled into a cryptic error from {sandpaper} when trying to build a repository that included a Mardown file with no content:

Error in UseMethod("xml_find_first") : 
  no applicable method for 'xml_find_first' applied to an object of class "xml_document"

The error still occurs if the Markdown file includes YAML front matter, but no Markdown content. See a minimal example reproducing the error.

This probably should be an error, but it would be great if the error message was more informative e.g. stating the name of the file where the problem was encountered or even saying that the problem is that the page has no content. It took me a long time to work out what the problem was when I first encountered it.

@froggleston froggleston added implementation discussion on implementation items {sandpaper} user interface package labels Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
implementation discussion on implementation items {sandpaper} user interface package
Projects
None yet
Development

No branches or pull requests

2 participants