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 Slim fails with Ruby 2.0.x #2

Open
rennhak opened this issue Nov 7, 2013 · 3 comments
Open

Guard Slim fails with Ruby 2.0.x #2

rennhak opened this issue Nov 7, 2013 · 3 comments

Comments

@rennhak
Copy link

rennhak commented Nov 7, 2013

Guard-slim fails with > [#] NoMethodError: undefined method set_output_charset' for #Object:0xad3cffc`.

Seems this is maybe a issue due to newer libraries and deprecated methods.

17:33:34 - INFO - Reloading browser: src/views/about.slim
17:33:34 - DEBUG - {:command=>"reload", :path=>"/tmp/project/src/views/about.slim", :liveCSS=>true}
17:33:34 - DEBUG - Hook :run_on_changes_end executed for Guard::LiveReload
17:33:34 - DEBUG - Trying to run Guard::Slim#run_on_modifications with ["src/views/about.slim"]
17:33:34 - DEBUG - Trying to run Guard::Slim#run_on_changes with ["src/views/about.slim"]
17:33:34 - DEBUG - Hook :run_on_change_begin executed for Guard::Slim
17:33:34 - ERROR - Guard::Slim failed to achieve its <run_on_change>, exception was:
> [#] NoMethodError: undefined method `set_output_charset' for #<Object:0xad3cffc>
> [#] (__TEMPLATE__):4:in `block in singleton class'
> [#] (__TEMPLATE__):131071:in `instance_eval'
> [#] (__TEMPLATE__):131071:in `singleton class'
> [#] (__TEMPLATE__):131069:in `__tilt_91578390'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/tilt-1.4.1/lib/tilt/template.rb:170:in `call'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/tilt-1.4.1/lib/tilt/template.rb:170:in `evaluate'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-slim-0.0.1/lib/guard/slim.rb:53:in `render'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-slim-0.0.1/lib/guard/slim.rb:29:in `block in run_on_change'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-slim-0.0.1/lib/guard/slim.rb:28:in `each'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-slim-0.0.1/lib/guard/slim.rb:28:in `run_on_change'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard/runner.rb:99:in `block in run_supervised_task'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard/runner.rb:97:in `catch'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard/runner.rb:97:in `run_supervised_task'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard/runner.rb:144:in `block in run_first_task_found'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard/runner.rb:142:in `each'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard/runner.rb:142:in `run_first_task_found'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard/runner.rb:79:in `block in run_on_changes'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard/runner.rb:175:in `block (3 levels) in scoped_guards'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard/runner.rb:173:in `each'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard/runner.rb:173:in `block (2 levels) in scoped_guards'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard/runner.rb:172:in `catch'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard/runner.rb:172:in `block in scoped_guards'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard/runner.rb:170:in `each'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard/runner.rb:170:in `scoped_guards'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard/runner.rb:72:in `run_on_changes'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard.rb:123:in `block (2 levels) in setup_listener'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard.rb:387:in `block in within_preserved_state'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard.rb:384:in `synchronize'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard.rb:384:in `within_preserved_state'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/guard-1.8.2/lib/guard.rb:122:in `block in setup_listener'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/listen-1.0.3/lib/listen/listener.rb:234:in `call'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/listen-1.0.3/lib/listen/listener.rb:234:in `on_change'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/listen-1.0.3/lib/listen/listener.rb:266:in `block in initialize_adapter'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/listen-1.0.3/lib/listen/adapters/polling.rb:48:in `call'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/listen-1.0.3/lib/listen/adapters/polling.rb:48:in `poll_changed_directories'
> [#] /home/br/.rvm/gems/ruby-2.0.0-rc2@project/gems/listen-1.0.3/lib/listen/adapter.rb:284:in `block in start_poller'
17:33:34 - INFO - Guard::Slim has just been fired


@rennhak
Copy link
Author

rennhak commented Nov 7, 2013

Might also be an issue with Tilt actually.
When running tilt manually on a slim file e.g. template = Tilt.new( filename.slim ) and executing template.render I get the same error.

@rennhak
Copy link
Author

rennhak commented Nov 7, 2013

rtomayko/tilt#218
Possibly a tilt only issue.

@boof
Copy link
Owner

boof commented Nov 8, 2013

I'll try to have a look tomorrow if this is not only a tilt issue. Thanks for looking into this.

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