Emacs Tips
Tim Macdonald edited this page Nov 16, 2020
·
1 revision
When editing a file, modern versions of Emacs create a hidden "lock file"
in the same directory. These files prevent multiple Emacsen from editing the same file, and use the original filename
prepended with a .#
. The lockfiles confuse the frontend build, resulting in errors like this one:
$ yarn build-hot
<snip>
[Error: ENOENT: no such file or directory, stat '<snip>/metabase/frontend/src/metabase/dashboard/components/.#Dashboard.jsx'] {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '<snip>/frontend/src/metabase/dashboard/components/.#Dashboard.jsx'
}
error Command failed with exit code 1.
The simplest way to fix it is to disable lock file creation:
(setq create-lockfiles nil)
- Backend
- Metabase Developer Reference
- Product Management
- QA and Testing
- Writing A Driver
- Driver Notices
- REST API Notices
- Writing style guide for documentation and blog posts (WIP)