Guard-haml looks for .#file.haml instead of file.haml. #26

Closed
chfw opened this Issue Apr 10, 2014 · 2 comments

Comments

Projects
None yet
2 participants

chfw commented Apr 10, 2014

I am new to Guard-haml. I just installed it to execute haml conversion for me but it fails strangely. I had this configuration:

guard :haml, output: 'src/templates', input: 'src/haml' do
watch %r{^src/haml/[a-zA-Z]+.haml}
end

First of all, I used emacs to edit files. Once I edit and save a haml file. Guard reports:

18:00:59 - ERROR - HAML compilation of src/haml/.#index.haml failed!

[#] Error: No such file or directory - src/haml/.#index.haml

18:01:00 - INFO - Successfully compiled haml to html!

[#] # src/haml/index.haml -> src/templates/index.html

18:01:00 - INFO - Successfully compiled haml to html!

[#] # src/haml/index.haml -> src/templates/index.html

18:01:00 - ERROR - HAML compilation of src/haml/.#index.haml failed!

[#] Error: No such file or directory - src//haml/.#index.haml

I checked src/templates/index.html and found my changes were not translated at all, meaning the report was false. Nothing was done actually.

And the strange thing is: "src/templates" was originally added svn. After executing guard-haml, my directory "src/haml" was not recognized by svn anymore..

Any comments?

C

rymai closed this in 7f12d20 May 1, 2014

Owner

rymai commented May 1, 2014

Hi, that's because the watchers generated automatically when the :input option is specified where not strict enough about the filename format (it allowed any chars... instead of just \w, - and _), I've fixed this.

Owner

rymai commented May 1, 2014

Version 1.1.2 released, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment