slate icon indicating copy to clipboard operation
slate copied to clipboard

serious issues with local setup

Open mikkokotila opened this issue 6 years ago • 6 comments

Operating system: Mac Os X Browser version(s): latest Chrome and Safari both Ruby version (run ruby -v): ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]


During few hours of working with the manuals, every now and then the system stops responding. This seems to have to do with syntax issue as before "hanging" there are first some breakdowns to style. So a typical scenario would be where one makes a mistake with syntax and then fixes it, but instead of going back to the previous state, the system stops responding.

To the extent this happens, is quite significant, and something imagine would be well beyond the acceptable functioning of middleman / other parts of the stack you are building on top of.

mikkokotila avatar Aug 29 '17 12:08 mikkokotila

I've seen this as well but I am not sure if it is caused by Middleman or what. The only way to get out of this stuck state where I can't Control+C to shut down the middleman server is by killing the middleman process and restarting again http://aniruddhabarapatre.com/how-to-kill-process-and-free-port.html

I am on ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]. Mac OS 10.12.6, Chrome 60.0.3112.113

samanthagmccormick avatar Sep 01 '17 23:09 samanthagmccormick

Don't know if it is related to yours but on my Mac it it gets stuck 80% of the time but not always when I enable rubyracer in the Gemfile for faster rendering. Without it its slowish but never stucks.

AXGKl avatar Nov 08 '17 11:11 AXGKl

Ok, got it running now fast, i.e. with therubyracer:

  • I was using mermaid.min.css and mermaid.js, put those away from middleman to a static server
  • The same for fontawesome, but here I ran into cors issues and getting that simple header in turned into an unsolvable mess for me as a python guy -nothing worked as explained e.g. this https://github.com/cyu/rack-cors. grrr.
  • But then I found this and it worked neatly I must admit :-)
  • Also I switched off minification in config.rb:
 # If you're having trouble with Middleman hanging, commenting
 # out the following two lines has been known to help
 # activate :minify_css
 # activate :minify_javascript

Now slate works like a charm, with next to instant refreshing.

AXGKl avatar Nov 08 '17 14:11 AXGKl

Grr, this is such a frustrating issue, since it's a hard issue to debug for me, and probably just has to do with general Ruby library instability? And Middleman doing some fancy things with reloading Ruby files even though it's a single Ruby process. Not really sure how to fix beyond just saying to follow these tips you've all posted above.

Maybe we should just switch everything over to Node for the next major release? Hmm.

lord avatar Nov 23 '17 18:11 lord

Maybe we should just switch everything over to Node for the next major release? Hmm.

👍 You're welcome to take anything from Shins if you're serious...

MikeRalphson avatar Nov 23 '17 18:11 MikeRalphson

Please see the discussion around the Slate v3 Technology Preview.

MikeRalphson avatar Jun 23 '20 10:06 MikeRalphson