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

Stopped working today all of a sudden. Getting the attached error now #19

Closed
saikatdas0790 opened this issue Feb 2, 2023 · 4 comments
Closed

Comments

@saikatdas0790
Copy link

image

I'm on the latest unstable NixOS. Happy to share any other details you need

@yy0931
Copy link
Owner

yy0931 commented Feb 2, 2023

It appears to be a bug (or feature?) in NixOS (NixOS/nixpkgs#42117), and I'm unsure of how to resolve it as I'm not familiar with NixOS. This extension does nothing other than calling sudo, but if there are any fixes needed for NixOS please let me know.

@yy0931
Copy link
Owner

yy0931 commented Feb 2, 2023

I have read the GitHub issue and perhaps we can circumvent the security wrapper by calling /usr/bin/sudo instead of just sudo?

Can you try this version? It calls /usr/bin/sudo instead of sudo (which you can verify by unzipping the .vsix file in the zip).
save-as-root-1.5.1-nixos.zip

Edit: To install it you can drag and drop the .vsix file in the zip on the list of installed extensions (ctrl+shift+x) in a VSCode window while connecting to the remote machine.

@saikatdas0790
Copy link
Author

saikatdas0790 commented Feb 3, 2023

Hey @yy0931

I have more insight into this. Seems sudo calls inside VSCode's terminal is failing, which is causing this to fail. This screenshot is from the integrated terminal.

image

Let me report it with the VSCode repo. I'll keep you posted. We'll let this issue remain open in the meantime?

@saikatdas0790
Copy link
Author

So, the latest version seems to have fixed it. All good now. Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants