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

Crash when accessing raw_path in check #1130

Closed
ddfreyne opened this issue Mar 20, 2017 · 0 comments
Closed

Crash when accessing raw_path in check #1130

ddfreyne opened this issue Mar 20, 2017 · 0 comments

Comments

@ddfreyne
Copy link
Member

@ddfreyne ddfreyne commented Mar 20, 2017

(Summarise the bug in a single line.)

Steps to reproduce

Add this to the Checks file:

check :wat do
  @items.flat_map(&:reps).map(&:raw_path)
end

Run nanoc check wat.

Expected behavior

No crash.

Actual behavior

     FiberError:
       can't yield from root fiber
     # ./lib/nanoc/base/views/item_rep_view.rb:82:in `yield'
     # ./lib/nanoc/base/views/item_rep_view.rb:82:in `raw_path'
     # /private/var/folders/jf/v8gkrcc973l5l6f6561_zqp00000gn/T/nanoc-test20170320-41788-70bjge/Checks:2:in `map'
ddfreyne added a commit that referenced this issue Mar 20, 2017
ddfreyne added a commit that referenced this issue Mar 20, 2017
Use post-compile views in checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant