create-elm-app icon indicating copy to clipboard operation
create-elm-app copied to clipboard

elm-app start fails when Emacs creates lock file

Open kephas opened this issue 4 years ago β€’ 3 comments

Is this a bug report?

Yes

Environment

  1. node -v: v10.20.1
  2. npm -v: 6.11.3
  3. npm ls create-elm-app -g (if you haven’t ejected):
/home/pierre/.local/share/npm/lib
└── [email protected]
  1. Operating system: Linux 5.5.0-2-amd64 #1 SMP Debian 5.5.17-1 (2020-04-15) x86_64 GNU/Linux

Steps to Reproduce

  1. elm-app start
  2. modify Elm file with Emacs without saving

Expected Behavior

Nothing should happen as the actual Elm file has not been modified.

Actual Behavior

elm-app stops with the following error:

/home/pierre/.local/share/npm/lib/node_modules/create-elm-app/scripts/start.js:11
  throw err;
  ^

Error: ENOENT: no such file or directory, stat '/home/pierre/Development/elm-lambda-playground/src/Lambda/.#Parser.elm

(Emacs's lockfile is a symlink pointing to a non-existant filename)

Reproducible Demo

https://github.com/kephas/elm-lambda-playground

kephas avatar May 29 '20 14:05 kephas

I'm having the same issue. Temporarily switching to vscode.

tonyea avatar Jul 01 '20 21:07 tonyea

I configured Emacs to stop creating the lock files.

kephas avatar Jul 10 '20 02:07 kephas

ReactJS's server fails the same way if encounters an Emacs lock file.

As @kephas suggested, you can tell Emacs to avoid creating lock files for your Elm project. Here's how: https://stackoverflow.com/a/62571200/73603

woochica avatar Oct 14 '20 09:10 woochica