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

elm-app start fails when Emacs creates lock file #468

Open
kephas opened this issue May 29, 2020 · 3 comments
Open

elm-app start fails when Emacs creates lock file #468

kephas opened this issue May 29, 2020 · 3 comments

Comments

@kephas
Copy link

kephas commented May 29, 2020

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 Reworked eject to use async prompt with promises #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

@tonyea
Copy link

tonyea commented Jul 1, 2020

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

@kephas
Copy link
Author

kephas commented Jul 10, 2020

I configured Emacs to stop creating the lock files.

@woochica
Copy link

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

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

3 participants