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

TabNine can't work on Apple Silicon M1 #267

Closed
Du-Yao opened this issue Dec 16, 2020 · 2 comments
Closed

TabNine can't work on Apple Silicon M1 #267

Du-Yao opened this issue Dec 16, 2020 · 2 comments

Comments

@Du-Yao
Copy link

Du-Yao commented Dec 16, 2020

please complete the following information:

  • OS version: Mac Big Sur 11.1
  • Editor version [e.g. 1.45.0-insider]:1.53.0-insider
  • Programming language: [e.g. js, ts, c++]python
  • TabNine extension version:3.1.18

If the issue is related to TabNine failure, please provide log files:

Type TabNine::config in your editor, the logs are located at the bottom of the page

Editor console logs:
Not anything.

Help -> Toggle Developer Tools

Issue Details:
TabNine was installed in MacBook pro with Apple Silicon M1, but it didn't work.
There was no error logs and no reflections just like TabNine was not exist.

@talcodota
Copy link
Contributor

This issue is reproduced in all of Tabnine IDEs, therefore is more suitable for the general Tabnine repo.
New issue created here:
codota/TabNine#308

@smoothdvd
Copy link

smoothdvd commented Dec 28, 2020

@Du-Yao @talcodota This is because of there is no arm64 version of TabNine binary now. But in macOS Big Sur, we can let it runs under Rosetta 2!

Add following lines in source code src/binary/paths.ts or in installed extension code(~/.vscode-exploration/extensions/tabnine.tabnine-vscode-version/out/binary/paths.js):

In getArch() function

    if (process.arch === "arm64") {
        return "arm64"
    }

and then duplicate x86_64-apple-darwin folder in 'binaries/$version' and rename it to arm64-apple-darwin.

Restart the VSCode Exploration then TabNine works again (under Rosetta 2 )!

Screen Shot 2020-12-28 at 11 37 05 AM

Detail: Make Tabnine Great Again on Apple M1 Chip

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

3 participants