pojiro / teamgenik_pub_samples

2 stars 2 forks source link

`Error: ENOENT: no such file or directory, open '.swp'` #22

Open pojiro opened 1 year ago

pojiro commented 1 year ago

vim で ソースファイルを修正していると server が落ちることがある。

現象が発生するパターンを調査中です。※時間はかけずにやっています。

VERBOSE=1 npx tgweb-server astronomy_club
tailwindcss began to monitor the HTML files for changes.
Web server is listening on port 3000.
Created dist/index.html.
Created dist/articles/quizzes/quiz-01.html.
Created dist/articles/quizzes/quiz-02.html.
Created dist/articles/karuta/karuta-01.html.
Created dist/articles/karuta/karuta-02.html.
Rebuilding tailwind.css. Done in 124ms.
node:fs:600
  handleErrorFromBinding(ctx);
  ^

Error: ENOENT: no such file or directory, open '.swp'
    at Object.openSync (node:fs:600:3)
    at Object.readFileSync (node:fs:468:35)
    at getTemplate (file:///home/pojiro/TomboWorks/customer/coregenik/teamgenik_pub_samples/node_modules/tgweb/lib/tgweb/get_template.mjs:9:21)
    at updateSiteData (file:///home/pojiro/TomboWorks/customer/coregenik/teamgenik_pub_samples/node_modules/tgweb/lib/tgweb/update_site_data.mjs:135:27)
    at Object.create (file:///home/pojiro/TomboWorks/customer/coregenik/teamgenik_pub_samples/node_modules/tgweb/lib/tgweb/create.mjs:21:5)
    at FSWatcher.<anonymous> (file:///home/pojiro/TomboWorks/customer/coregenik/teamgenik_pub_samples/node_modules/tgweb/lib/server.mjs:62:24)
    at FSWatcher.emit (node:events:513:28)
    at FSWatcher.emitWithAll (/home/pojiro/TomboWorks/customer/coregenik/teamgenik_pub_samples/node_modules/chokidar/index.js:540:8)
    at FSWatcher._emit (/home/pojiro/TomboWorks/customer/coregenik/teamgenik_pub_samples/node_modules/chokidar/index.js:632:8)
    at NodeFsHandler._handleFile (/home/pojiro/TomboWorks/customer/coregenik/teamgenik_pub_samples/node_modules/chokidar/lib/nodefs-handler.js:400:14) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '.swp'
}

Node.js v18.12.