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

lerna watch not working on arch linux #3953

Open
simlmx opened this issue Feb 6, 2024 · 0 comments
Open

lerna watch not working on arch linux #3953

simlmx opened this issue Feb 6, 2024 · 0 comments

Comments

@simlmx
Copy link

simlmx commented Feb 6, 2024

Current Behavior

pnpm exec lerna watch -- echo \$LERNA_PACKAGE_NAME \$LERNA_FILE_CHANGE

does not do anything when I modify files. Actually sometimes it does it once or twice but then it stops working.

When I look at the nx logs, I see that it registers the file modifications (with an ever growing lag!), but they don't get to lerna.

I have tested this on 2 different OS: Arch Linux and Mac OS. The buggy behavior only happens on Arch Linux, everything works as expected on Mac OS. There is also no "ever growing lag" on Mac OS.

Expected Behavior

lerna properly responds to files changing, even on Arch Linux!

I don't know if this is a regression.

Steps to Reproduce

I have made a minimal repo reproducing the issue: https://github.com/simlmx/repro-lerna-watch
See the instructions in the README.

Failure Logs / Configuration

When I modify a file, I see these nx logs:

[NX Daemon Server] - 2024-02-06T19:27:52.852Z - [WATCHER]: 0 file(s) created or restored, 0 file(s) modified, 2 file(s) deleted
[NX Daemon Server] - 2024-02-06T19:27:52.852Z - [WATCHER]: Processing file changes in outputs
[NX Daemon Server] - 2024-02-06T19:27:52.853Z - Time taken for 'changed-projects' 0.017439999617636204ms

<Here there is a lag that gets longer and longer every time I modify a file>

[NX Daemon Server] - 2024-02-06T19:27:59.259Z - [REQUEST]: Updated workspace context based on watched changes, recomputing project graph...
[NX Daemon Server] - 2024-02-06T19:27:59.259Z - [REQUEST]:
[NX Daemon Server] - 2024-02-06T19:27:59.259Z - [REQUEST]: packages/a/package.json,packages/a/4913
[NX Daemon Server] - 2024-02-06T19:27:59.261Z - Time taken for 'hash changed files from watcher' 0.038179999217391014ms
lerna.json

{
  "$schema": "node_modules/lerna/schemas/lerna-schema.json",
  "version": "0.0.0",
  "npmClient": "pnpm"
}

Environment

Environment info:

 System:
   OS: Linux 6.7 Arch Linux
   CPU: (24) x64 AMD Ryzen 9 7900 12-Core Processor
 Binaries:
   Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
   Yarn: 1.22.21 - ~/.nvm/versions/node/v20.10.0/bin/yarn
   npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
 Utilities:
   Git: 2.43.0 - /usr/bin/git
 npmPackages:
   lerna: ^8.1.2 => 8.1.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant