mac 迁移至 M1(Apple Silicon) 后,vscode 中的 TabNine 无法工作 (TabNine in vscode does not work after mac migration to M1 (Apple Silicon))

发布于 2024-02-02 05:41:56 字数 1867 浏览 65 评论 0

使用迁移助理,将系统迁移 M1 芯片的电脑后,即使卸载重装 tabnine 仍无法运行。

原因

卸载 vscode 的 tabnine 插件,并不会移除其二进制文件,重装插件后仍使用旧的二进制文件,导致 tabnine 无法运行。
打开 vscode 开发人员工具,可以看到警告信息:

Binary child process error: spawn /Users/xxx/Library/Application Support/Code/User/globalStorage/tabnine.tabnine-vscode/binaries/3.7.20/aarch64-apple-darwin/TabNine EACCES

解决办法

  1. 从 vscode 卸载 tabnine 插件
  2. 删除 tabnine 二进制文件 rm-rf ~/Library/Application\ Support/Code/User/globalStorage/tabnine.tabnine-vscode/
  3. vscode 重装 tabnine 插件

After using Migration Assistant to migrate the system to a computer with M1 chip, tabnine does not work even after uninstallation and reinstallation.

Reason:

Uninstalling the tabnine plugin for vscode does not remove its binaries, and reinstalling the plugin still uses the old binaries, causing tabnine to not work.
Open the vscode developer tools and you can see the warning message.

Binary child process error: spawn /Users/xxx/Library/Application Support/Code/User/globalStorage/tabnine.tabnine-vscode/binaries/3.7.20/aarch64-apple-darwin/TabNine EACCES

Workaround

  1. Uninstall the tabnine plugin from vscode
  2. Delete the tabnine binary rm-rf ~/Library/Application\ Support/Code/User/globalStorage/tabnine.tabnine-vscode/
  3. Reinstall the tabnine plugin

codota/TabNine#308

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

关于作者

扭转时空

暂无简介

文章
评论
27 人气
更多

推荐作者

櫻之舞

文章 0 评论 0

弥枳

文章 0 评论 0

m2429

文章 0 评论 0

野却迷人

文章 0 评论 0

我怀念的。

文章 0 评论 0

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文