tlienart / FranklinTemplates.jl

Simple website templates for Franklin.jl
https://tlienart.github.io/FranklinTemplates.jl/
MIT License
77 stars 24 forks source link

Windows 11 ERROR: IOError: chmod("mySite\\.gitignore", 0o644): invalid argument (EINVAL) #157

Open dstorti opened 2 years ago

dstorti commented 2 years ago

I tried creating a sample site as described on franklinjl.org, but when I execute the newsite() command, I get an error related to chmod. I spotted an earlier thread related to this involving a Windows 10 user, so I tried following the suggestions there (activating an environment inside of a dedicated folder and installing Franklin in that environment) but I keep getting the error.

Any suggestions for how to proceed would be appreciated.

tlienart commented 2 years ago

hello, thanks for the report, can you please copy paste the full stacktrace, your Julia version and the result of ] status? I suspect the problem is with https://github.com/tlienart/FranklinTemplates.jl/blob/61d7b9e8db78a0add3b832f6bd984a38636ce731/src/utils.jl#L59 for you.

Following this I might get you to try a dedicated version of FranklinTemplates that has a specific behaviour for Windows.

tlienart commented 2 years ago

PS: would you happen to have different drives or have installed Julia on a dedicated drive (referring to https://github.com/julia-vscode/julia-vscode/issues/646#issuecomment-497384616 due to the EINVAL thing but not sure about this)

dstorti commented 2 years ago

Yes. It was on Google cloud drive. I will try from my own hard drive on Monday. Thanks! --Duane

On July 29, 2022 10:01:51 AM PDT, Thibaut Lienart @.***> wrote:

PS: are you somehow on a non-conventional drive? (the EINVAL thing is a bit odd)

-- Reply to this email directly or view it on GitHub: https://github.com/tlienart/FranklinTemplates.jl/issues/157#issuecomment-1199756611 You are receiving this because you authored the thread.

Message ID: @.***> -- Sent from my Android device with K-9 Mail. Please excuse my brevity.