Closed justinalm closed 9 years ago
Hi, please share your Guardfile, thanks! Also, you can run Guard in debug mode with guard -d
.
It's a known problem with Ruby 1.8.7, you need to add proper Readline support. Ruby 1.8.7 is End-of-Life anyway and will not receive any more security updates, so I suggest to install the latest Ruby 2.0 with either RVM or rbenv.
This is the content of my Guradfile:
guard 'nanoc' do
watch('config.yaml') # Change this to config.yaml if you use the old config file name
watch('Rules')
watch(%r{^(content|layouts|lib)/.*$})
end
I've installed Ruby2.0 with rbenv and and using it now but running guard still doesn't watch the directories.
Here is the debug info when running guard -d:
$ guard -d
13:37:14 - DEBUG - Command execution: emacsclient --eval '1' 2> /dev/null || echo 'N/A'
13:37:15 - INFO - Guard is using TerminalTitle to send notifications.
13:37:15 - DEBUG - Command execution: hash stty
13:37:15 - DEBUG - Guard starts all plugins
13:37:15 - DEBUG - Hook :start_begin executed for Guard::Nanoc
update [0.06s] output/blog/feed.xml
13:37:17 - INFO - Compilation succeeded.
13:37:17 - DEBUG - Hook :start_end executed for Guard::Nanoc
13:37:17 - INFO - Guard is now watching at '/Users/almjustin/github/steamclock/steamclocksw.com'
13:37:17 - DEBUG - Command execution: stty -g 2>/dev/null
13:37:17 - DEBUG - Start interactor
[1] guard(main)>
Thanks. What is the file you're saving? Are you sure it's catch by a watch
definition?
Here is what I have in the Guardfile of my nanoc project. I used to be able to make changes to any file within the content directory and the changes would show in the output directory. Also, I don’t see anything output in the Terminal window when I make changes. I'm not sure if there is something I’m missing in the configuration of the Guardfile.
guard 'nanoc' do
watch('config.yaml') # Change this to config.yaml if you use the old config file name
watch('Rules')
watch(%r{^(content|layouts|lib)/.*$})
end
@justinalm Is this issue still relevant to you? I am not sure what is going on here and I’m not able to reproduce it still.
Will close for now; feel free to open a new issue if this is still a problem.
We have migrated to guard and guard-nanoc, and guard will build the project, but the watch/listen functionality is not working. If we make changes and press return in guard, it will detect the changes and compile them, but it will not do so automatically.
This is my list of installed gems:
Ruby is at ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]