Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

chfw opened this issue Apr 10, 2014 · 2 comments

Comments

@chfw
Copy link

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 rymai closed this as completed in 7f12d20 May 1, 2014
@rymai
Copy link
Member

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.

@rymai
Copy link
Member

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants