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

Listen 1.0.0's new API seems to have broken something #309

Closed
twome opened this Issue Apr 22, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@twome
Copy link

twome commented Apr 22, 2013

Identical content compiled fine last time I was working; bundle update'd this morning and this happened:

C:\svns\publicredesign>bundle exec nanoc watch
Watcher started; compiling the entire site...
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
done in 5s 339ms
Watching for changes...
[Listen warning]:
Listen::MultiListener is deprecated, please use Listen::Listener instead.
[Listen warning]:
Listen::MultiListener is deprecated, please use Listen::Listener instead.

Captain! We've been hit!

Message:

ArgumentError: The path '' is not a directory!

Compilation stack:

  (empty)

Stack trace:

  0. C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.0.0/lib/listen/directory_record.rb:59:in `initialize'
  1. C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.0.0/lib/listen/listener.rb:246:in `new'
  2. C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.0.0/lib/listen/listener.rb:246:in `block in initialize_directories_and_directories_records'
  3. C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.0.0/lib/listen/listener.rb:246:in `map'
  4. C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.0.0/lib/listen/listener.rb:246:in `initialize_directories_and_directories_records'
  5. C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.0.0/lib/listen/listener.rb:31:in `initialize'
  6. C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.0.0/lib/listen/multi_listener.rb:11:in
`initialize'
  7. C:/Ruby193/lib/ruby/gems/1.9.1/gems/nanoc-3.6.2/lib/nanoc/cli/commands/watch.rb:84:in `new'
  8. C:/Ruby193/lib/ruby/gems/1.9.1/gems/nanoc-3.6.2/lib/nanoc/cli/commands/watch.rb:84:in `run'
  9. C:/Ruby193/lib/ruby/gems/1.9.1/gems/nanoc-3.6.2/lib/nanoc/cli/command_runner.rb:14:in `block in call'
  ... 15 more lines omitted. See full crash log for details.

If you believe this is a bug in nanoc, please do report it at
-> https://github.com/nanoc/nanoc/issues/new <-

A detailed crash log has been written to ./crash.log.

C:\svns\publicredesign>

Gemfile.locks and crash.log: https://gist.github.com/twome/8fc2cffb492fbdeefc30

@ddfreyne

This comment has been minimized.

Copy link
Member

ddfreyne commented Apr 22, 2013

Yep, I've noticed it too. I'll fix!

The watch command will soon be deprecated in favour of the new guard-nanoc. I recommend switching already!

@ddfreyne

This comment has been minimized.

Copy link
Member

ddfreyne commented Apr 24, 2013

Fixed in 7e51e91!

(This code is hard to test. If anybody can write a proper test, let me know!)

@ddfreyne ddfreyne closed this Apr 24, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.