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
Improve error/warning messages #510
Comments
|
Hello! I recently had a related and very confusing experience with blogdown and wanted to pop in and express my support for something like what @apreshill described above:
Having more readable and actionable messages would be incredibly helpful. For my issue I had overlooked the error/warning messages when I went back to update a blog post with some text and links. When my post was rendered, the embedded xaringan slides embedded were oversized and my first thought was that the xaringanExtra package maybe had a bug, so I reached out to @gadenbuie. Garrick was kind enough to help me identify the issue had to do with a JavaScript file used by The language in this message is also a bit passive which didn't help me grasp that there would/could be consequences of not following the recommendation I know the blogdown team is working hard to create a sort of handy pre-flight checklist of functions to help users catch these things before their site breaks Lastly, I think more readable/actionable messages would help make the implicit processes a little more explicit which is a great educational bonus. I know it would help me learn more about what's going on behind the scenes and feel more confident about exploring new-to-me features in blogdown |
|
@spcanelon I've been focusing on the improvement of these messages for several days (in the new |
|
Hi @yihui, I appreciate you dedicating time and effort to improving these messages! |
|
@spcanelon I just merged the PR #534 to address this issue. You can install the development version via remotes::install_github('rstudio/blogdown')and see if messages from |
|
Hi @yihui...let me just say: wow. Thanks so much to you, @apreshill, and @cderv for all of your hard work on this! This is what the message looked like before: And now after PR #534, I see this wonderful, readable, and actionable message for config.toml when I run I can understand exactly what's being checked, I'm able to follow along with what's going on behind the scenes with each step, and I understand what I need to do next. What a difference! These messages are so much more helpful and clear -- I am so impressed! Also, the fact that config.toml was also automatically opened for me was a nice bonus. It helped save me the time it would take to locate the file in my directory.
Thanks again! |
Well, in theory, I could go even further by opening xfun::rstudio_type('"\\\\.knit\\\\.md$", "\\\\.utf8\\\\.md$"')but I don't want people to feel the big brother is watching you too closely... Anyway, I'm very glad that you have found the new |
After running into many error/warning messages with
v0.21.42, I think we can improve these to make the user experience better and make the message more readable and actionable cc @cdervFor example, I got this error:
The printing and phrasing of this messages (in addition to the volume of messages that get printed to my console when I serve the site) makes it hard to understand what is being checked, compared, and what I should do to make the warning go away. It would be nice if the printed message were more user-friendly and formatted nicely in the console, like usethis messages that use cli and crayon. Something like this:
Similarly:
And for Hugo installations, I see:
It would be great if it looked more like:
Also, this message always prints twice for me:
This is also quite long, I wonder if we could wrap in an argument to
serve_sitelikeverbosethat defaults toFALSE?:By filing an issue to this repo, I promise that
xfun::session_info('blogdown'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/blogdown').The text was updated successfully, but these errors were encountered: