These are chat archives for brunch/brunch

28th
Aug 2015
Matthew Aho
@ahomatthew
Aug 28 2015 16:17
Yo
Posted a new issue, but I feel like maybe this is already a known issue, brunch/brunch#1012 wondering if anyone had any workarounds for it
I linked the related ticket in the issue
Mauro Oviedo
@moviedo
Aug 28 2015 16:33
@ahomatthew
yeah i have this issue
you need to change a config param
watcher: {
    usePolling: true
  },
you need to use polling
Matthew Aho
@ahomatthew
Aug 28 2015 16:34
yeah, i mention that in the comment -- was just wondering if there is a way to not do that
Mauro Oviedo
@moviedo
Aug 28 2015 16:34
I’ve found no way around it besides that
Matthew Aho
@ahomatthew
Aug 28 2015 16:34
half the developers use vagrant the other have use ubuntu natively
and unfortunately, inspecting process to find the environment isn't helpful to toggle that option, since, according to the process, they are both running linux
Elan Shanker
@es128
Aug 28 2015 17:40
you may be interested in paulmillr/chokidar#242
Mauro Oviedo
@moviedo
Aug 28 2015 18:40
i agree, automatic fall back would be very helpful
Matthew Aho
@ahomatthew
Aug 28 2015 18:41
thanks @es128
That is more or less what I was thinking about implementing
Elan Shanker
@es128
Aug 28 2015 18:42
going to post in that thread about a potentially more reliable idea for solving that problem
Matthew Aho
@ahomatthew
Aug 28 2015 18:54
your idea is quite ingenious @es128
Elan Shanker
@es128
Aug 28 2015 18:54
PR welcome :)
haha, but actually I’m hoping to pick up the pace again on my open source activity - personal backlog of stuff I want to resolve is getting annoyingly long
Matthew Aho
@ahomatthew
Aug 28 2015 18:57
If I get some time this weekend I can try and take a stab at it, TBH I haven't looked at the code yet
Elan Shanker
@es128
Aug 28 2015 18:58
yeah, this is probably a tricky one - not the best thing to tackle as an intro to chokidar
Matthew Aho
@ahomatthew
Aug 28 2015 18:58
We use grunt, so my current work around is passing an environment to brunch by way of grunt that overrides the watcher: usePolling: to False
Elan Shanker
@es128
Aug 28 2015 18:58
there’s other bugs in the issue tracker I’d love help with though :)
gotcha
Matthew Aho
@ahomatthew
Aug 28 2015 18:59
Not ideal, but works
Elan Shanker
@es128
Aug 28 2015 18:59
so you mean the browsersync plugin for grunt?
grunt’s own watcher is always in polling mode, which isn’t so good but it avoids this particular problem
Matthew Aho
@ahomatthew
Aug 28 2015 19:00
No, I use grunt for running a few things
So i just use the exec module to run brunch
Grunt modules were wayyyyy too slow for compiling 'n such
Elan Shanker
@es128
Aug 28 2015 19:00
but so what are you doing for fs watching?
Matthew Aho
@ahomatthew
Aug 28 2015 19:01
Sorry, I don't understand the question. Brunch is watching my static folder, some developers use Vagrant and then we have a Docker container which is actually running our stack
Elan Shanker
@es128
Aug 28 2015 19:02
so you’re using brunch watch, just kicking it off from a grunt task?
Matthew Aho
@ahomatthew
Aug 28 2015 19:02
yes
Elan Shanker
@es128
Aug 28 2015 19:02
ok cool
Matthew Aho
@ahomatthew
Aug 28 2015 19:02
using the exec module
and with concurrent
concurrent -> <task> -> exec -> <brunch watch>
(shrug)