Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

--watch is not working on node 0.10/0.12 #152

Closed
voronianski opened this issue Jun 5, 2015 · 22 comments
Closed

--watch is not working on node 0.10/0.12 #152

voronianski opened this issue Jun 5, 2015 · 22 comments
Assignees

Comments

@voronianski
Copy link

Using cssnext version 1.6.0 but --watch option is not working.

cssnext --watch cssnext/index.css public/styles.css --verbose
@MoOx
Copy link
Owner

MoOx commented Jun 5, 2015 via email

@voronianski
Copy link
Author

@MoOx node 0.10.38, npm 1.4.28, OS X 10.10.3, cssnext --watch cssnext/index.css public/styles.css --verbose

@MoOx
Copy link
Owner

MoOx commented Jun 5, 2015 via email

@voronianski
Copy link
Author

@MoOx tried cssnext --verbose --watch cssnext/index.css public/styles.css - no effect.

@MoOx
Copy link
Owner

MoOx commented Jun 5, 2015 via email

@voronianski
Copy link
Author

@MoOx

@import 'highlight.js/styles/github.css';
@import 'basscss';

header {
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 32px;
    text-align: center;
    background-image: linear-gradient(45deg, rgba(255, 85, 0, 0.95), rgba(247, 95, 19, 0.8));
    border-bottom: 1px solid rgba(0,0,0,.1);
    box-shadow: 0 0 1px 1px rgba(0,0,0,0.1);
    z-index: 2;
}

.b2 {
    border-width: 2px;
}

:root {
    --font-family: 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --container-width: 640px;
    --yellow: rgba(255, 220, 0, 0.45);
    --orange: #FC561E;
    --button-line-height: 1;
    --sb-progress-height: 8px;
    --button-big-padding-x: 1.25rem;
    --button-big-padding-y: 1.25rem;
}

@MoOx
Copy link
Owner

MoOx commented Jun 5, 2015

Oh i miss 0.10. Watcher only work for 0.12. Also, you should update npm. V3 is almost out.

@MoOx
Copy link
Owner

MoOx commented Jun 5, 2015

Please tell me if upgrading to node 0.12 (or iojs) change something for you.

@voronianski
Copy link
Author

@MoOx thanks, on latest node version watcher is working 👍

@sdn90
Copy link

sdn90 commented Jun 12, 2015

node 0.12.4
npm 2.10.1
OS X 10.10.3

Not working for me.. Switched to iojs 2.2.1/npm 2.11.0 and it worked.

@voronianski
Copy link
Author

@MoOx same for me.. it stopped working on node 0.12.4..

@voronianski voronianski reopened this Jun 12, 2015
@MoOx
Copy link
Owner

MoOx commented Jun 12, 2015

Hum... All this watcher issue are boring me. I will switch to another watcher module asap.

@voronianski
Copy link
Author

@MoOx please do 👍

@MoOx
Copy link
Owner

MoOx commented Jun 12, 2015

PR is also welcome. @jonathanong told me to use https://github.com/amasad/sane

@MoOx
Copy link
Owner

MoOx commented Jun 17, 2015

Is this working for everyone using iojs ?

@MoOx
Copy link
Owner

MoOx commented Jun 17, 2015

@es128 chokidar is supposed to work on node 10/12 right ?

@MoOx MoOx self-assigned this Jun 17, 2015
@MoOx MoOx changed the title --watch is not working --watch is not working on node 0.10/0.12 Jun 17, 2015
@es128
Copy link

es128 commented Jun 17, 2015

@MoOx yes it works on all mainstream versions of node and io.js. Not enough detail in this thread for me to understand what's going wrong for some users, but it's possible that what's missing is running npm rebuild after any node version change in order to get the native extensions in fsevents recompiled.

That said, chokidar should still work (perhaps with degraded performance) on OS X even when fsevents is not present or otherwise cannot be loaded.

Nonetheless, the first step for anyone saying watching abruptly stopped working or having trouble with specific versions would be to run an npm rebuild.

@jonathanong
Copy link

@MoOx you could also try just making your own watcher. i have https://github.com/fs-utils/file-watch which i don't maintain anymore which worked pretty well. could copy and simplify.

@gr0uch
Copy link

gr0uch commented Jul 3, 2015

Not sure if the problem has been partially fixed but I'm using cssnext v1.8.0, Node v0.12.4, OS X 10.10.3, and --watch seems to work only when there are no @import statements.

@MoOx
Copy link
Owner

MoOx commented Jul 3, 2015

Ok seems related to #123

@MoOx MoOx closed this as completed Jul 3, 2015
@nerijusgood
Copy link

mac, node v0.12.2
"cssnext": "^1.8.2",

cli: cssnext --watch src/app.css build/build.css

with or without imports it does not watch. Paths are correct since it builds without watch.

@MoOx
Copy link
Owner

MoOx commented Jul 30, 2015 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants