Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected "Library" directory in home directory #118

Closed
Tracked by #492
dibarbet opened this issue Jun 12, 2023 · 5 comments
Closed
Tracked by #492

Unexpected "Library" directory in home directory #118

dibarbet opened this issue Jun 12, 2023 · 5 comments
Assignees
Labels
area-telemetry bug Something isn't working linux Linux triaged The issue has been triaged
Milestone

Comments

@dibarbet
Copy link
Member

Describe the Issue

Transferred from dotnet/vscode-csharp#5781

Environment data

dotnet --info output:

.NET SDK:
 Version:   8.0.100-preview.6.23305.3
 Commit:    d092ea07f8

Runtime Environment:
 OS Name:     arch
 OS Version:
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /usr/share/dotnet/sdk/8.0.100-preview.6.23305.3/

.NET workloads installed:
There are no installed workloads to display.

Host:
  Version:      8.0.0-preview.6.23304.2
  Architecture: x64
  Commit:       2bf8f1aa83

.NET SDKs installed:
  6.0.403 [/usr/share/dotnet/sdk]
  7.0.100 [/usr/share/dotnet/sdk]
  8.0.100-preview.4.23260.5 [/usr/share/dotnet/sdk]
  8.0.100-preview.6.23305.3 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.11 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.0-preview.4.23260.4 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.0-preview.6.23302.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.11 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.0-preview.4.23259.5 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.0-preview.6.23304.2 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

VS Code version:

Version: 1.78.2
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:47:05.613Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 6.3.3-arch1-1
Sandboxed: No

C# Extension version:

C#
v2.0.206
Pre-Release

OmniSharp log

N/A

Steps to reproduce

When I switched to the new C# extension, "Library" directory with Library/Application Support/Microsoft Visual Studio/prpbg.dat appears in my home directory. When deleted, it reappears every time a project is opened. This doesn't happen with OmniSharp.

Expected behavior

This extension should not make a mess in home directory, there is an XDG standard for configs, caches, local storages etc., see https://wiki.archlinux.org/title/XDG_Base_Directory.

Actual behavior

Follow the Linux standard and do not store those data in home in a non-hidden directory.

Additional context

OS: Arch Linux x86_64
Kernel: 6.3.3-arch1-1

Steps To Reproduce

No response

Expected Behavior

No response

Environment Information

No response

@dibarbet
Copy link
Member Author

dibarbet commented Jun 12, 2023

This file is created by something in devkit - with devkit disabled the file does not get created. I can repro on MacOS as well

@smitpatel
Copy link

Source of the file is VS Telemetry API.

@jonathanjyi
Copy link

jonathanjyi commented Jun 19, 2023

We know what's going on and why. Will need to make design decision on next steps. @kvenkatrajan could you assign this to me please?

@ManickaP
Copy link
Member

Small addition, it seems like .ServiceHub directory is created in home as well.

@jonathanjyi jonathanjyi added the triaged The issue has been triaged label Jul 5, 2023
@webreidi webreidi added the linux Linux label Aug 17, 2023
@webreidi webreidi added this to the GA milestone Aug 17, 2023
@jonathanjyi
Copy link

This issue has been patched and will release with the next prerelease version of C# Dev Kit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-telemetry bug Something isn't working linux Linux triaged The issue has been triaged
Projects
None yet
Development

No branches or pull requests

6 participants