-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
'Retry as sudo' doesnt work #234311
Comments
We changed the solution to only require 1 file, so the execution looks fine. Are there more errors in the full logs? |
No other errors. Here is bigger a snippet from the log beginning with the initial permission denied error:
Full log file: PS: The Apparmor is turned off to cut off any third party interference and the bug was replicated on a fresh Kali install on another computer as well to exclude the possibility of the bug occurring in my specific environment. |
Thanks, this line is relevant:
Curious when you try this again, can you check the contents of this file and if it exists on disk? It would have a different name each time you try, so you need to get it from the logs. |
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
People discussing this issue here: #70403
Given information from the above-mentioned source I was able to debug the problem.
According to the developer the write a file with sudo goes through following process:
After running VSCode with
--verbose
flag I have noticed the target file is not set:[sudo-prompt] running command: "/usr/share/code/bin/code" --file-write "/home/paul0ss/.config/Code/code-elevated-DYqaVPH4"
This is probably the reason why the file write doesnt succeed but also doesnt throw any exception stating that permission was denied.
The text was updated successfully, but these errors were encountered: