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

Middleman hangs forever #33

Open
meowsus opened this issue Jul 18, 2018 · 1 comment
Open

Middleman hangs forever #33

meowsus opened this issue Jul 18, 2018 · 1 comment

Comments

@meowsus
Copy link

meowsus commented Jul 18, 2018

On an app that looks like this:

$ ls -R source/

source:
access-articles-in-javascript.html.md
add-content.html.md
add-a-party-snail.html.md
 ... 115 more .html.md files ...

source/images:
3-variants-1-option.png
3-variants-3-options.png
3-years-primary-image.png
 ... 118 more .png files ...

source/javascripts:
jquery.js
lunr.js
site.js

source/layouts:
layout.erb

source/release_notes:
release-3-0-0.html.md
release-3-0-10.html.md
release-3-0-11.html.md
 ... 80 more .html.md files ...

source/stylesheets:
highlighting.css.scss
site.css.scss

having activate :autoprefixer outside of the configure :build block causes bundle exec middleman server to never resolve a page request. It will sit there and hang for many, many hours, at least. I stopped the request before it resolved since it looked as if it would never do so.

Having the activate method within the build configuration block remedies the situation.

Nabbed this trick from middleman/middleman#2148

@bostonaholic
Copy link

I am also having this issue. Moving the activate :autoprefixer block inside the configure :build block seems to work for me.

vixus0 pushed a commit to alphagov/tech-docs-gem that referenced this issue Oct 24, 2018
There is currently an issue with middleman-autoprefixer which causes
middleman to hang: middleman/middleman-autoprefixer#33

When this happens, middleman no longer responds to requests and does not
refresh on source changes.

Moving the `activate :autoprefixer` command into the `context.configure :build` block seems to fix this and middleman behaves normally.
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