Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
chfw opened this Issue · 2 comments

2 participants

@chfw

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 rymai closed this in 7f12d20
@rymai
Owner

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.

@rymai
Owner

Version 1.1.2 released, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.