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

Update node-watch so recursive watch is enabled on linux #253

Open
laurentpayot opened this issue Oct 4, 2020 · 0 comments
Open

Update node-watch so recursive watch is enabled on linux #253

laurentpayot opened this issue Oct 4, 2020 · 0 comments

Comments

@laurentpayot
Copy link

laurentpayot commented Oct 4, 2020

platform: Linux (Ubuntu 20.04 LTS)
node version: 14.12.0
elm-analyse version: 0.16.5

If I run % elm-analyse -s I get:

Elm Analyser server starting with config:
{
  port: 3000,
  elmFormatPath: 'elm-format',
  format: 'human',
  open: false
}
fs.js:1471
    throw new ERR_FEATURE_UNAVAILABLE_ON_PLATFORM('watch recursively');
    ^

TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
    at Object.watch (fs.js:1471:11)
    at hasNativeRecursive (/home/laurent/projects/myproject/node_modules/node-watch/lib/has-native-recursive.js:82:20)
    at Watcher.watchDirectory (/home/laurent/projects/myproject/node_modules/node-watch/lib/watch.js:301:3)
    at watch (/home/laurent/projects/myproject/node_modules/node-watch/lib/watch.js:403:13)
    at /home/laurent/projects/myproject/node_modules/node-watch/lib/watch.js:365:15
    at Array.map (<anonymous>)
    at watch (/home/laurent/projects/myproject/node_modules/node-watch/lib/watch.js:364:41)
    at Object.run (/home/laurent/projects/myproject/node_modules/elm-analyse/dist/app/server/watcher.js:14:5)
    at /home/laurent/projects/myproject/node_modules/elm-analyse/dist/app/server/app.js:34:27
    at /home/laurent/projects/myproject/node_modules/elm-analyse/dist/app/server/worker.js:30:9 {
  code: 'ERR_FEATURE_UNAVAILABLE_ON_PLATFORM'
}

I fixed this by updating node-watch to the latest version:

cd node_modules/elm-analyse && npm i [email protected]
am-on added a commit to am-on/nixpkgs that referenced this issue May 22, 2024
Couldn't start elm-analyse server (`elm-analyse -s`) with previous
node-watch version. See stil4m/elm-analyse#253
for more details.
florian-sanders-cc pushed a commit to florian-sanders-cc/nixpkgs that referenced this issue Jun 6, 2024
Couldn't start elm-analyse server (`elm-analyse -s`) with previous
node-watch version. See stil4m/elm-analyse#253
for more details.
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

1 participant