HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.2k stars 2.9k forks source link

ERROR: cannot change working directory #850

Closed johnERgordon closed 5 years ago

johnERgordon commented 5 years ago

Hi, I have problems getting hugo-academic to work; getting error: "ERROR: cannot change working directory". when running this command: blogdown::new_site(theme = "gcushen/hugo-academic")

Followed the instructions from: https://bookdown.org/yihui/blogdown/other-themes.html

I have a Mac; running R version 3.5.2 (2018-12-20) -- "Eggshell Igloo" and Rstudio Version 1.1.463

Any help is much appreciated.

Yutong-Dai commented 5 years ago

Can confirm. I was trying to upgrade from Version 2.2.0 to the Latest Version 3.2.0 with after updating the hugo from 0.41 to 0.53 at the same time. And I met the same error.

snip20181225_14 snip20181225_15

If I roll back to Version 2.2.0, and use Hugo 0.53 to generate site, I will have errors like snip20181225_16

It seems that, I need to roll back to Hugo 0.41...

gcushen commented 5 years ago

Please refer to the support forums and documentation for help updating Academic, or the Blogdown community for Blogdown/RStudio specific issues. Thanks.

yihui commented 5 years ago

Hi @gcushen, I believe this issue was introduced by f2f3177d789786532d8faae262c24f499ed21ea9: \\ doesn't work with the current latest version of Hugo (0.53). This issue is fairly easy to reproduce. Just run:

# git clone https://github.com/gcushen/hugo-academic.git && cd hugo-academic
cd exampleSite
hugo

I wish you could reopen this issue and investigate it. Thanks a lot!

gcushen commented 5 years ago

The line break issue is unrelated to Academic. Hugo v0.53 has a known bug based on its TOML dependency - see https://github.com/gcushen/hugo-academic/issues/852#issuecomment-450144889

yihui commented 5 years ago

Okay. Just upvoted the bug report. Thank you!