-
-
Notifications
You must be signed in to change notification settings - Fork 383
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Zig Version
0.10.0-dev.3685+dae7aeb33
Zig Language Server Version
Steps to Reproduce
Start zls
in a project. If the zls
binary is installed in a read-only directory, such as /usr/bin
this will crash with a permission denied error.
Expected Behavior
zls
doesn't try to drop any files next to its executable, and instead uses some alternative path such as zig-cache
or /tmp
.
Actual Behavior
zls
tries to create a build_runner.zig
file next to its executable. This often fails, for example when zls is installed in /usr/bin
(tries to create /usr/bin/build_runner.zig
), and needlessly pollutes the filesystem.
This was introduced in 38210d3e9183a77dfe10e0d0f4a79d2999ce3cf7
.
Once we agree on a solution, I'd very much like to implement it. Cheers!
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working