Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lua-lsp/analyze.lua
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,8 @@ local function try_luacheck(document)
if luacheck then
local reports
if Config._useNativeLuacheck == false then
local tmp_path = "/tmp/check.lua"
local tmpdir = os.getenv("TMPDIR") or os.getenv("TMP") or "/tmp"
local tmp_path = tmpdir .. "/check.lua"
local tmp = assert(io.open(tmp_path, "w"))
tmp:write(document.text)
tmp:close()
Expand Down