shiyanhui / hero

A handy, fast and powerful go template engine.
https://shiyanhui.github.io/hero
Other
1.56k stars 98 forks source link

watcher error #40

Open TuralAsgar opened 6 years ago

TuralAsgar commented 6 years ago

I am using PHPStorm. I open watcher in another git shell. After making first change to the file it displays

Parsing... Generating... Executing goimports... Executing go vet... Parsing... 2017/09/19 16:30:26 open F:\gocode\src\github.com\tural-esger\engossip\template_layout.html: The process cannot access the file because it is being used by another process.

or it displays

Parsing... Generating... Executing goimports... Executing go vet... Parsing... 2017/09/19 16:32:02 CreateFile F:\gocode\src\github.com\tural-esger\engossip\template_layout.html: The system cannot find the file specified.

shiyanhui commented 6 years ago

This issue is caused by not filtering file's extension. Please update hero and test again. Thanks :)

TuralAsgar commented 6 years ago

And now after updating, first I get $ hero -watch Parsing... Generating... Executing goimports... Executing go vet... Parsing... 2017/09/20 14:29:54 CreateFile F:\gocode\src\github.com\tural-esger\engossip\template_layout.html_jbold: The system cannot find the file specified.

after I try again $ hero -watch Parsing... Generating... Executing goimports... Executing go vet... Parsing... 2017/09/20 14:31:52 dependency F:\gocode\src\github.com\tural-esger\engossip\template_layout.html not parsed

Also when I tried with _navbar.html first I got $ hero -watch Parsing... Generating... Executing goimports... Executing go vet... Parsing... 2017/09/20 14:33:14 CreateFile F:\gocode\src\github.com\tural-esger\engossip\template_navbar.html_jbtmp: The system cannot find the file specified.

Then I got $ hero -watch Parsing... Generating... Executing goimports... Executing go vet... Parsing... 2017/09/20 14:36:02 CreateFile F:\gocode\src\github.com\tural-esger\engossip\template_navbar.html_jbold: The system cannot find the file specified.