mac 迁移至 M1(Apple Silicon) 后,vscode 中的 TabNine 无法工作 (TabNine in vscode does not work after mac migration to M1 (Apple Silicon))
使用迁移助理,将系统迁移 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
解决办法
- 从 vscode 卸载 tabnine 插件
- 删除 tabnine 二进制文件
rm-rf ~/Library/Application\ Support/Code/User/globalStorage/tabnine.tabnine-vscode/
- 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
- Uninstall the tabnine plugin from vscode
- Delete the tabnine binary
rm-rf ~/Library/Application\ Support/Code/User/globalStorage/tabnine.tabnine-vscode/
- Reinstall the tabnine plugin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

上一篇: 异步 与 其他并发模型
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论