preaction / Statocles

Static website CMS
http://preaction.me/statocles
Other
84 stars 33 forks source link

"statocles daemon" can't serve my site on Windows 10 #521

Open dertuxmalwieder opened 7 years ago

dertuxmalwieder commented 7 years ago

More Windows bugs? As you wish! Same setup as last time...

I fired up a shell and installed Statocles:

cpan> notest install Statocles

That worked. What followed, not so much....

> cd C:\Users\(some folder here)\Statocles\Simplex
> statocles create www.example.com
(...)
> cd www.example.com
> statocles blog post "This is a test post."
New post at: C:/Users/(some folder here)/Statocles/Simplex/www.example.com/blog/2016/10/31/this-is-a-test-post/index.markdown
> statocles build

(That worked.)

> statocles daemon
remove_tree failed for C:\Users\(some folder here)\Statocles\Simplex\www.example.com\.statocles\build\theme\css: cannot remove directory: Directory not empty at C:/Perl64/perl/site/lib/Statocles/Site.pm line 486.

Oh my.

mohawk2 commented 6 years ago

@dertuxmalwieder This was addressed recently (that behaviour was causing test failures on install on Windows). For those tests, the test code now makes the files not-read-only before call to remove_tree. The problem is that the themes are in read-only files, which Path::Tiny::remove_tree refuses to delete.

@dagolden Is this actually a bug in Path::Tiny, or an expected behaviour?