Skip to content

How to change my tmp folder? #7078

Open
@Painkillerzzz

Description

@Painkillerzzz

May be a dumb questions but:

I'm on a server and there is a mismatch between my tmp folder (/data2/home/ABC/tmp/) and the one that pylance seems using. I tried reinstalling the extension and changing the system variable $TMPDIR. However I couldn't stop pylance from trying to access a folder that doesn't exist (/home/ABC/tmp/):

2025-03-28 06:49:04.796 [info] Error: ENOENT: no such file or directory, mkdir '/home/ABC/tmp/pyright-1763274-YG5GgYubN5Ny'
at Object.mkdirSync (node:fs:1371:26)
at Object.I.exports.dirSync
at t.RealTempFile._getTmpDir
at t.RealTempFile.tmpdir
at _0x1998bc._setupBackgroundTaskRunner
at _0x1998bc._ensureWorkerStarted
at _0x1998bc._enqueueRequest
at _0x1998bc.notify
at _0x1998bc.setConfigOptions
at _0x3248ca.setConfigOptions
at _0x4f75b7.setOptions
at Function.runWithOptions
at _0x468425.updateOptionsAndRestartService
at _0x4cb949._updateSettingsForWorkspace
at async Promise.all (index 0)

2025-03-28 06:49:04.796 [info] [Error - 6:49:04 AM] Server process exited with code 1.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions