question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

preact watch fails with emacs lock files / dead symbolic links

See original GitHub issue

Do you want to request a feature or report a bug?

bug

What is the current behaviour?

  • $ preact watch
  • I can access 127.0.0.1:8080 and use the application ✔️
  • After changing a file “file.xyz” in my editor (emacs), a state file is created: “.#file.xyz”
  • the preact process crashes:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! project@0.0.0 start:development: `npm run -s dev`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the project@0.0.0 start:development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2020-05-24T17_29_55_141Z-debug.log
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Extract from npm error log:

10 verbose lifecycle solidarity@0.0.0~start:development: CWD: /home/user/code/project
11 silly lifecycle solidarity@0.0.0~start:development: Args: [ '-c', 'npm run -s dev' ]
12 silly lifecycle solidarity@0.0.0~start:development: Returned: code: 1  signal: null
13 info lifecycle solidarity@0.0.0~start:development: Failed to exec start:development script
14 verbose stack Error: project@0.0.0 start:development: `npm run -s dev`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
14 verbose stack     at EventEmitter.emit (events.js:315:20)
14 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
14 verbose stack     at ChildProcess.emit (events.js:315:20)
14 verbose stack     at maybeClose (internal/child_process.js:1051:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
15 verbose pkgid solidarity@0.0.0
16 verbose cwd /home/user/code/project
17 verbose Linux 5.6.11-arch1-1
18 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "start:development"
19 verbose node v14.3.0
20 verbose npm  v6.14.5
21 error code ELIFECYCLE
22 error errno 1

Please paste the results of preact info here.

Environment Info:
  System:
    OS: Linux 5.6 Arch Linux
    CPU: (4) x64 Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
  Binaries:
    Node: 14.3.0 - /usr/bin/node
    Yarn: 1.22.4 - /usr/bin/yarn
    npm: 6.14.5 - /usr/bin/npm
  Browsers:
    Firefox: 76.0.1
  npmPackages:
    preact: ^10.4.4 => 10.4.4 
    preact-cli: ^3.0.0-rc.10 => 3.0.0-rc.10 
    preact-render-to-string: ^5.1.4 => 5.1.8 
    preact-router: ^3.2.1 => 3.2.1 
  npmGlobalPackages:
    preact-cli: 3.0.0-rc.10

** Note ** This happend after upgrading from 2.? to 3.0.0.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
zaloxcommented, Jun 10, 2020

I encountered the same bug and manually selected version 1.6.1 in my package-lock.json file and was able to move on with my day.

Here is the entry for watchpack 1.6.1.

"watchpack": {
  "version": "1.6.1",
  "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.1.tgz",
  "integrity": "sha512-+IF9hfUFOrYOOaKyfaI7h7dquUIOgyEMoQMLA7OP5FxegKA2+XdXThAZ9TU2kucfhDH7rfMHs1oPYziVGWRnZA==",
   "dev": true,
  "requires": {
    "chokidar": "^2.1.8",
   "graceful-fs": "^4.1.2",
   "neo-async": "^2.5.0"
 }
}
`
0reactions
mguentnercommented, Nov 10, 2020

@developit the problem still happens with preact, 3.0.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does emacs create temporary symbolic links for modified ...
In particular, I'm trying to prevent Emacs from creating these links because they cause the directory timestamp to be modified, which causes our...
Read more >
Untitled
Lkw richtig beladen, Downline ministries alumni, Hmi mt4414t, Dcs-222k, Search for words in excel files, Phono catego gs, Motorsport industry stats, ...
Read more >
Mudit's TILs — Making variables buffer local by default in Emacs
To achieve this, in my emacs init file, I first instructed flycheck to add css-stylelint checker to typescript-mode and js-mode .
Read more >
EMACSPEAK The Complete Audio Desktop - T. V. Raman
(defadvice shr-tag-table-1 (around emacspeak pre act comp) "Cache ... My Emacs init-file is a symlink to the byte-compiled version of the
Read more >
bing.txt - FTP Directory Listing
... 5116818 park 5105050 code 5105050 san 5105050 college 5046613 day 5035006 en 5023426 one 4988845 pictures 4977371 map 4977371 file 4954502 world...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found