Asciidoctor Guard cannot detect file changes despite that it is saying Guard is now watching at 'E:/Notes'

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Asciidoctor Guard cannot detect file changes despite that it is saying Guard is now watching at 'E:/Notes'

asciidoctorwriter
This post was updated on .
Hi there. I want to detect asciidoc file changes automatically and make them converted to html file. I followed https://github.com/asciidoctor/guard-asciidoc/blob/master/README.asciidoc guide. There are no error messages after running "bundle exec guard" and when I change and save files on visual studio code, guard cannot detect the changes and update html file.



https://github.com/asciidoctor/guard-asciidoc


Gemfile

source 'https://rubygems.org'

gem 'wdm', '>= 0.1.0' if Gem.win_platform?
gem 'guard'
gem 'guard-shell'
gem 'asciidoctor'

Guardfile
guard :asciidoctor


Output

E:\Notes>bundle install
Using asciidoctor 2.0.10
Using bundler 2.0.2
Using coderay 1.1.2
Using ffi 1.11.1 (x64-mingw32)
Using formatador 0.2.5
Using rb-fsevent 0.10.3
Using rb-inotify 0.10.0
Using ruby_dep 1.5.0
Using listen 3.1.5
Using lumberjack 1.0.13
Using nenv 0.3.0
Using shellany 0.0.1
Using notiffany 0.1.1
Using method_source 0.9.2
Using pry 0.12.2
Using thor 0.20.3
Using guard 2.15.0
Using guard-compat 1.2.1
Using guard-shell 0.7.1
Using wdm 0.1.1
Bundle complete! 4 Gemfile dependencies, 20 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

E:\Notes>bundle exec guard
17:24:13 - INFO - Run 'gem install win32console' to use color on Windows
[1] guard(main)>  Guard is now watching at 'E:/Notes'


I also tried the following guide and have similar output:
https://asciidoctor.org/docs/editing-asciidoc-with-live-preview/#using-bundler

Note; I do not forget the refresh the html page.
Note: I am pretty sure asciidoctor file is changed I also checked with notepad.

How should I fix it? Maybe I misunderstand the how the guard works.