microsoft / microsoft/vscode-dotnettools

[BUG] Launch fails if extension is installed in readonly filesystem

Open
#448 12 comments 1 reaction 1 assignee View on GitHub

@AArnott is already working on this.

Since Aug 31, 2023.

area-extensionmanagement enhancement
Dominant language
No language data
Stars
321
Forks
54
Avg merge
2d 19h
Merged PRs (30d)
2

Description

Describe the Issue

If the extension is installed in a read-only FS (as happens in NixOS), the launch fails for 2 reasons:

  1. The cache directory is set up in the extension directory (which is read-only);
  2. The extension attempts to chmod the binaries (which are read-only).

I have implemented a fix in the build script for my installation however this would be best solved upstream.

Steps To Reproduce
  1. Install a Linux distro where .NET is installed in a read-only FS (e.g. NixOS)
  2. Install the extension (and patch the binaries if you're on NixOS)
  3. Have the extension fail with "unable to chmod files" and "unable to set up cache directory"
Expected Behavior

Extension detects it is in a read-only FS and makes the appropriate adjustments.

Environment Information
  • OS: NixOS 23.11.20230825.5690c42
  • VSCode Version: 1.81.1
  • Extension Version: 0.4.6

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.