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

NoMethodError: undefined method `dir?' for File:Class #358

Closed
branquito opened this Issue Nov 27, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@branquito

branquito commented Nov 27, 2013

this is what happens when i try nanoc watch, nanoc compile works fine.

Crashlog created at 2013-11-27 03:14:13 +0100

===== MESSAGE:

NoMethodError: undefined method `dir?' for File:Class

===== COMPILATION STACK:

  (empty)

===== STACK TRACE:

  0. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/nanoc-3.6.6/lib/nanoc/cli/commands/watch.rb:74:in `block in run'
  1. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/nanoc-3.6.6/lib/nanoc/cli/commands/watch.rb:74:in `map'
  2. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/nanoc-3.6.6/lib/nanoc/cli/commands/watch.rb:74:in `run'
  3. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/nanoc-3.6.6/lib/nanoc/cli/command_runner.rb:14:in `block in call'
  4. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/nanoc-3.6.6/lib/nanoc/cli/error_handler.rb:70:in `handle_while'
  5. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/nanoc-3.6.6/lib/nanoc/cli/error_handler.rb:26:in `handle_while'
  6. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/nanoc-3.6.6/lib/nanoc/cli/command_runner.rb:13:in `call'
  7. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/cri-2.4.0/lib/cri/command_dsl.rb:185:in `block in runner'
  8. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/cri-2.4.0/lib/cri/command.rb:296:in `call'
  9. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/cri-2.4.0/lib/cri/command.rb:296:in `run_this'
  10. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/cri-2.4.0/lib/cri/command.rb:249:in `run'
  11. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/cri-2.4.0/lib/cri/command.rb:262:in `run'
  12. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/nanoc-3.6.6/lib/nanoc/cli.rb:52:in `block in run'
  13. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/nanoc-3.6.6/lib/nanoc/cli/error_handler.rb:70:in `handle_while'
  14. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/nanoc-3.6.6/lib/nanoc/cli/error_handler.rb:26:in `handle_while'
  15. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/nanoc-3.6.6/lib/nanoc/cli.rb:50:in `run'
  16. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/nanoc-3.6.6/bin/nanoc:19:in `<top (required)>'
  17. /home/branchito/.rvm/gems/ruby-1.9.3-p392/bin/nanoc:23:in `load'
  18. /home/branchito/.rvm/gems/ruby-1.9.3-p392/bin/nanoc:23:in `<main>'
  19. /home/branchito/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `eval'
  ... 22 more lines omitted. See full crash log for details.

===== VERSION INFORMATION:

nanoc 3.6.6 © 2007-2013 Denis Defreyne.
Running ruby 1.9.3 (2013-02-22) on i686-linux with RubyGems 2.0.7.

===== SYSTEM INFORMATION:

Linux mail.sonikete.com 3.11.5-1-ARCH #1 SMP PREEMPT Mon Oct 14 08:49:01 CEST 2013 i686 GNU/Linux

===== INSTALLED GEMS:

  activesupport 4.0.1
  adsf 1.1.1
  atomic 1.1.14
  bigdecimal 1.2.1
  bourbon 3.1.8
  builder 3.2.2
  bundler 1.3.5
  bundler-unload 1.0.1
  celluloid 0.15.2
  chunky_png 1.2.8
  coderay 1.0.9, 1.1.0
  colored 1.2
  compass 0.12.2
  compass-rgbapng 0.2.1
  cri 2.4.0
  dandelion 0.3.12, 0.3.14
  diff-lcs 1.2.4
  em-websocket 0.5.0
  erubis 2.7.0
  eventmachine 1.0.3
  ffi 1.9.0
  formatador 0.2.4
  foundation 1.0.2
  fssm 0.2.10
  grit 2.5.0
  guard 1.8.2, 2.1.1
  guard-compass 0.0.8, 1.0.0
  guard-livereload 1.4.0
  guard-sass 1.3.2
  haml 4.0.3
  http_parser.rb 0.5.3
  i18n 0.6.5
  io-console 0.4.2
  json 1.8.0
  json_pure 1.8.0
  listen 1.3.0, 2.1.1
  lumberjack 1.0.4
  method_source 0.8.2
  mime-types 1.25
  minitest 2.5.1, 4.7.5, 5.0.6
  multi_json 1.7.9
  nanoc 3.6.6
  neat 1.4.0
  posix-spawn 0.3.6
  pry 0.9.12.2
  pygments.rb 0.5.2
  rack 1.5.2
  rack-protection 1.5.0
  rake 0.9.2.2, 10.0.4, 10.1.0
  rb-fsevent 0.9.3
  rb-inotify 0.9.1
  rb-kqueue 0.2.0
  rdoc 4.0.1
  redcarpet 3.0.0
  rubygems-bundler 1.1.1, 1.2.2
  rubygems-update 2.0.7
  rvm 1.11.3.7, 1.11.3.8
  sass 3.2.10
  sassy-buttons 0.2
  shotgun 0.9
  sinatra 1.4.3
  slop 3.4.6
  susy 1.0.9
  thor 0.18.1
  thread_safe 0.1.3
  tilt 1.4.1
  timers 1.1.0
  tmuxinator 0.6.6
  tzinfo 0.3.38
  yajl-ruby 1.1.0
  zocial 0.0.3
  zurb-foundation 4.3.1, 4.3.2

===== ENVIRONMENT:

BROWSER => "firefox"
COLORTERM => "xfce4-terminal"
CUR_WIDTH => "0"
DBUS_SESSION_BUS_ADDRESS => "unix:abstract=/tmp/dbus-J4cZJzi8wo,guid=2d2b40d083945128ac911ce752946bd3"
DE => "xfce"
DESKTOP_SESSION => "xfce"
DISPLAY => ":0.0"
EDITOR => "vim"
GEM_HOME => "/home/branchito/.rvm/gems/ruby-1.9.3-p392"
GEM_PATH => "/home/branchito/.rvm/gems/ruby-1.9.3-p392:/home/branchito/.rvm/gems/ruby-1.9.3-p392@global"
GLADE_CATALOG_PATH => ":"
GLADE_MODULE_PATH => ":"
GLADE_PIXMAP_PATH => ":"
GNOME_KEYRING_CONTROL => "/run/user/1000/keyring-fzfKNb"
GNOME_KEYRING_PID => "349"
GPG_AGENT_INFO => "/tmp/gpg-R7FWg9/S.gpg-agent:442:1"
HOME => "/home/branchito"
INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH => "0"
INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS => "false"
INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT => "0"
INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH => "0"
INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE => "0"
INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE => "0"
INFINALITY_FT_BRIGHTNESS => "0"
INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH => "0"
INFINALITY_FT_CONTRAST => "0"
INFINALITY_FT_FILTER_PARAMS => "06 25 44 25 06"
INFINALITY_FT_FRINGE_FILTER_STRENGTH => "50"
INFINALITY_FT_GAMMA_CORRECTION => "15 110"
INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE => "0"
INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE => "0"
INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH => "0"
INFINALITY_FT_STEM_ALIGNMENT_STRENGTH => "100"
INFINALITY_FT_STEM_FITTING_STRENGTH => "100"
INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE => "100"
INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS => "true"
INFINALITY_FT_USE_VARIOUS_TWEAKS => "true"
INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH => "15"
IRBRC => "/home/branchito/.rvm/rubies/ruby-1.9.3-p392/.irbrc"
JAVA_HOME => "/usr/lib/jvm/java-7-openjdk/jre"
LANG => "en_US.UTF-8"
LC_COLLATE => "C"
LOGNAME => "branchito"
MAIL => "/var/mail/branchito"
MOZ_PLUGIN_PATH => "/usr/lib/mozilla/plugins"
MY_RUBY_HOME => "/home/branchito/.rvm/rubies/ruby-1.9.3-p392"
PATH => "/home/branchito/local/bin:/usr/local/heroku/bin:/home/branchito/.rvm/gems/ruby-1.9.3-p392/bin:/home/branchito/.rvm/gems/ruby-1.9.3-p392@global/bin:/home/branchito/.rvm/rubies/ruby-1.9.3-p392/bin:/home/branchito/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/branchito/.rvm/bin"
PWD => "/home/branchito/nanoc_learn/myblog"
RUBY_VERSION => "ruby-1.9.3-p392"
SESSION_MANAGER => "local/mail.sonikete.com:@/tmp/.ICE-unix/436,unix/mail.sonikete.com:/tmp/.ICE-unix/436"
SHELL => "/bin/bash"
SHLVL => "4"
SSH_AGENT_PID => "442"
SSH_AUTH_SOCK => "/tmp/gpg-MaNRGZ/S.gpg-agent.ssh"
TERM => "screen-256color"
TMUX => "/tmp/tmux-1000/default,8982,0"
TMUX_PANE => "%2"
USER => "branchito"
WINDOWID => "41943044"
XAUTHORITY => "/home/branchito/.Xauthority"
XDG_CONFIG_DIRS => "/etc/xdg"
XDG_DATA_DIRS => "/usr/local/share:/usr/share"
XDG_MENU_PREFIX => "xfce-"
XDG_RUNTIME_DIR => "/run/user/1000"
XDG_SEAT => "seat0"
XDG_SESSION_ID => "1"
XDG_VTNR => "7"
_ => "/home/branchito/.rvm/gems/ruby-1.9.3-p392/bin/nanoc"
_ORIGINAL_GEM_PATH => "/home/branchito/.rvm/gems/ruby-1.9.3-p392:/home/branchito/.rvm/gems/ruby-1.9.3-p392@global"
__array_start => "0"
_first => "0"
_second => "1"
escape_flag => "1"
rvm_bin_path => "/home/branchito/.rvm/bin"
rvm_debug_clr => "\e[35m"
rvm_error_clr => "\e[31m"
rvm_notify_clr => "\e[32m"
rvm_path => "/home/branchito/.rvm"
rvm_prefix => "/home/branchito"
rvm_reset_clr => "\e(B\e[m"
rvm_version => "1.19.1 (stable)"
rvm_warn_clr => "\e[33m"

===== LOAD PATHS:

  0. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/nanoc-3.6.6/lib
  1. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/bundler-unload-1.0.1/lib
  2. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/rubygems-bundler-1.2.2/lib
  3. /home/branchito/.rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib
  4. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/colored-1.2/lib
  5. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/cri-2.4.0/lib
  6. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/nanoc-3.6.6/lib
  7. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/timers-1.1.0/lib
  8. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/celluloid-0.15.2/lib
  9. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/rb-fsevent-0.9.3/lib
  10. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/ffi-1.9.0/lib
  11. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/ffi-1.9.0/ext/ffi_c
  12. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/rb-inotify-0.9.1/lib
  13. /home/branchito/.rvm/gems/ruby-1.9.3-p392/gems/listen-2.1.1/lib
  14. /home/branchito/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1
  15. /home/branchito/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/i686-linux
  16. /home/branchito/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby
  17. /home/branchito/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/vendor_ruby/1.9.1
  18. /home/branchito/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/vendor_ruby/1.9.1/i686-linux
  19. /home/branchito/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/vendor_ruby
  20. /home/branchito/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1
  21. /home/branchito/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/i686-linux
@ddfreyne

This comment has been minimized.

Show comment
Hide comment
@ddfreyne

ddfreyne Nov 27, 2013

Member

Seems like there was an incompatibility introduced, because File.dir? does indeed not exist (but File.directory? does).

I’ll fix this bug, but please note that both watch and autocompile are deprecated in favour of the new guard-nanoc. I greatly recommend you use guard-nanoc, as it is better maintained, faster and stabler.

Member

ddfreyne commented Nov 27, 2013

Seems like there was an incompatibility introduced, because File.dir? does indeed not exist (but File.directory? does).

I’ll fix this bug, but please note that both watch and autocompile are deprecated in favour of the new guard-nanoc. I greatly recommend you use guard-nanoc, as it is better maintained, faster and stabler.

@branquito

This comment has been minimized.

Show comment
Hide comment
@branquito

branquito Nov 27, 2013

Ok.. thank you!

branquito commented Nov 27, 2013

Ok.. thank you!

@ddfreyne

This comment has been minimized.

Show comment
Hide comment
@ddfreyne

ddfreyne Nov 27, 2013

Member

This is resolved in ad39ef3 and will be part of the 3.6.7 release.

Member

ddfreyne commented Nov 27, 2013

This is resolved in ad39ef3 and will be part of the 3.6.7 release.

@ddfreyne ddfreyne closed this Nov 27, 2013

sideshowcoder added a commit to sideshowcoder/docs-ng that referenced this issue Jan 27, 2014

use guard-nanoc since nanoc watch is deprecated
There is an error when running nanoc watch, which is explained in
nanoc/nanoc#358 but since nanoc watch is
deprecated it probably makes sense to switch to guard-nanoc for file
watching.

sideshowcoder added a commit to couchbaselabs/docs-ng that referenced this issue Feb 28, 2014

use guard-nanoc since nanoc watch is deprecated
There is an error when running nanoc watch, which is explained in
nanoc/nanoc#358 but since nanoc watch is
deprecated it probably makes sense to switch to guard-nanoc for file
watching.

sideshowcoder added a commit to couchbaselabs/docs-ng that referenced this issue Mar 3, 2014

use guard-nanoc since nanoc watch is deprecated
There is an error when running nanoc watch, which is explained in
nanoc/nanoc#358 but since nanoc watch is
deprecated it probably makes sense to switch to guard-nanoc for file
watching.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment