codebuilds icon indicating copy to clipboard operation
codebuilds copied to clipboard

cannot save as root

Open louisabraham opened this issue 5 years ago • 3 comments

(moved from https://github.com/microsoft/vscode/issues/92918)

When trying to save a root file and retrying as a super user, I get the following error message:

Failed to save 'FILENAME': options.name must be alphanumeric only (spaces are allowed) and <= 70 characters.

I believe this comes from https://github.com/jorangreef/sudo-prompt

The error would be there:

https://github.com/microsoft/vscode/blob/e1d6bfe8b19eab7e4763f6dfb0e4bb5d1af9bf3f/src/vs/workbench/services/textfile/electron-browser/nativeTextFileService.ts#L289

It looks like this.productService.nameLong, defined in src/vs/platform/product/common/product.ts causes an error.

louisabraham avatar Mar 25 '20 09:03 louisabraham

Anyone has solved it?

TomaszWaszczyk avatar Oct 08 '20 19:10 TomaszWaszczyk

Did any one find solution for this?

AnasMK avatar Nov 08 '20 09:11 AnasMK

I solved this temporarily by changing the folder and content ownership to the user, using this command sudo chown -R usename: folder_name

AnasMK avatar Nov 16 '20 10:11 AnasMK