lspcontainers.nvim icon indicating copy to clipboard operation
lspcontainers.nvim copied to clipboard

Mount /tmp as tmpfs inside containers

Open WhyNotHugo opened this issue 6 months ago • 0 comments

tsserver attempts to execute realpath("/tmp") at start-up, but fails because this directory is missing:

[ERROR][2025-04-05 13:37:29] .../vim/lsp/rpc.lua:770	"rpc"	"/usr/bin/docker"	"stderr"	"node:internal/fs/promises:1169\n  return await PromisePrototypeThen(\n         ^\n\nError: ENOENT: no such file or directory, realpath '/tmp'\n    at async Object.realpath (node:internal/fs/promises:1169:10)\n    at async file:///usr/local/lib/node_modules/typescript-language-server/lib/cli.mjs:17916:30 {\n  errno: -2,\n  code: 'ENOENT',\n  syscall: 'realpath',\n  path: '/tmp'\n}\n\nNode.js v20.15.1\n"

Mount /tmp as tmpfs inside containers, so that they may all use a temporary directory in the usual fashion.

WhyNotHugo avatar Apr 05 '25 11:04 WhyNotHugo