简体   繁体   English

VSCode“将登录信息写入钥匙串失败,错误为'UNIX[没有这样的文件或目录]'。”

[英]VSCode "Writing login information to the keychain failed with error 'UNIX[No such file or directory]'."

After solving this and posting to AskDifferent.... I realized this is probably the case with any OS:在解决这个问题并发布到 AskDifferent 之后......我意识到这可能是任何操作系统的情况:

in my case I was using MacOS High Sierra 10.13.6 with new install of VSCode 1.50.0 (see screenshots below):就我而言,我使用的是 MacOS High Sierra 10.13.6 和新安装的 VSCode 1.50.0(见下面的截图):

Scenario:设想:

  • Attempt to "Sign-in to Sync Settings"尝试“登录以同步设置”

    在此处输入图片说明

  • web/browser-based SSO redirects to Microsoft and/or Github browser login基于 web/浏览器的 SSO 重定向到 Microsoft 和/或 Github 浏览器登录

  • login fails - error message in VSCode:登录失败 - VSCode 中的错误消息:

Error:错误:

Writing login information to the keychain failed with error 'UNIX[No such file or directory]'.

System Details:系统详情:

  • New install of VSCode For Mac: VSCode For Mac 的新安装:
    在此处输入图片说明

  • And MacOS info:和 MacOS 信息:
    ![在此处输入图片说明

This is a keychain error which look similar to some others upon Google search, but I didn't find this exact error... so, adding the solution here...这是一个钥匙串错误,在谷歌搜索中看起来与其他一些类似,但我没有找到这个确切的错误......所以,在这里添加解决方案......

SOLUTION解决方案

  1. Attempt to "Sync Settings" by logging into Microsoft or Github尝试通过登录 Microsoft 或 Github 来“同步设置”
  2. this will fail as OP states... but这将在 OP 状态下失败......但是
  3. close ALL instances/windows of VSCode关闭 VSCode 的所有实例/窗口
  4. RESTART VSCode重启 VSCode
  5. You should be prompted for Apple KeyChain permissions like this image shows:应该会提示您输入 Apple KeyChain 权限,如下图所示: 在此处输入图片说明
  6. Type in your MacOS root password输入您的 MacOS root密码
  7. You will either immediately login without error(s) ... or....您将立即登录而不会出错……或者……
  8. RESTART VSCode AGAIN再次重启 VSCode
  9. "Sync Settings" / login once more “同步设置”/再次登录

On my system all I had to do is :在我的系统上,我所要做的就是:

$ sudo apt install gnome-keyring

So I think on MacOs you can also easily solve this issue by installing a keyring system.所以我认为在 MacO 上你也可以通过安装密钥环系统轻松解决这个问题。 I don't know MacOs though so I couldn't provide a name.我不知道 MacOs,所以我不能提供一个名字。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM