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

Supermaven stuck in "Supermaven initializing" and not downloading binary #15653

Open
1 task done
90aca opened this issue Aug 1, 2024 · 20 comments
Open
1 task done

Supermaven stuck in "Supermaven initializing" and not downloading binary #15653

90aca opened this issue Aug 1, 2024 · 20 comments
Labels
ai Improvement related to Assistant, Copilot, or other AI features bug [core label] inline completion Umbrella label for Copilot, Supermaven, etc. completions supermaven

Comments

@90aca
Copy link

90aca commented Aug 1, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

When installing a fresh version of Zed Preview and enabling "supermaven"

{
  "features": {
    "inline_completion_provider": "supermaven"
  },
  "vim_mode": true,
  "ui_font_size": 15,
  "buffer_font_size": 14,
  "theme": {
    "mode": "system",
    "light": "One Light",
    "dark": "One Dark"
  }
}

The status stays on "Supermaven initializing" and it won't download the required binaries sm-agent binary.

My ~/.supermaven/config.json is also present and I'm on the paid plan:
{"api_key":"XXX","api_key_obtained_at":"XXX","link_id":"XXX","machine_id":"XXX"}

There is no Zed Log information about supermaven and why it might fail whatsoever.

Environment

Zed: v0.147.1 (Zed Preview)
OS: macOS 15.0.0
Memory: 16 GiB
Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

image

If applicable, attach your Zed.log file to this issue.

Zed.log
@90aca 90aca added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Aug 1, 2024
@notpeter notpeter added supermaven ai Improvement related to Assistant, Copilot, or other AI features inline completion Umbrella label for Copilot, Supermaven, etc. completions and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Aug 1, 2024
@DenisBessa
Copy link

I was able to solve it deleting the folder ~/Library/Application Support/Zed, uninstalling Zed and reinstalling it.

It took some time to Zed to download the Sueprmaven binary, so I think it's a good idea to wait for a few minutes before trying. You can check the download in the ~/Library/Application Support/Zed\supermaven folder.

I'm on macOS Sonoma.

@ray-pH
Copy link

ray-pH commented Aug 5, 2024

I was able to solve it deleting the folder ~/Library/Application Support/Zed, uninstalling Zed and reinstalling it.

It took some time to Zed to download the Sueprmaven binary, so I think it's a good idea to wait for a few minutes before trying. You can check the download in the ~/Library/Application Support/Zed\supermaven folder.

I'm on macOS Sonoma.

Did a similar thing on Debian Linux, and it worked.
I don't reinstall zed, I just deleted ~/.local/share/zed/supermaven
And then restart zed, and it will download ~/.local/share/zed/supermaven/sm-agent-26

Even the status message is working
image

@chrisvander
Copy link

Some recent update fixed it for me.

@monarcode
Copy link

any one got this working?

i already added

"features": { "inline_completion_provider": "supermaven" },

to my config, but nothing happened, i don't get any new icon or any initializing message

Please help

@90aca
Copy link
Author

90aca commented Aug 21, 2024

closing since it's working for me now.

@90aca 90aca closed this as completed Aug 21, 2024
@monarcode
Copy link

It's really not working for me

@90aca
Copy link
Author

90aca commented Aug 21, 2024

It's really not working for me

What OS are you using and did you delete the Supermaven folder? ~/Library/Application Support/Zed\supermaven

@bfulop
Copy link

bfulop commented Aug 22, 2024

On my side it works ONCE if I delete both ~/Library/Application Support/Zed/supermaven and ~/.supermaven folders.

After each restart of Zed however, the Supermaven plugin is again stuck on initializing and have delete again all the folders.

@omegaatt36
Copy link

在 Debian Linux 上做了類似的事情,並且成功了。 我沒有重新安裝zed,我只是刪除了 ~/.local/share/zed/supermaven 然後重新啟動zed,就會下載了 ~/.local/share/zed/supermaven/sm-agent-26

甚至狀態訊息也能正常運作 影像

I found I shoud add excutable permission to sm-agent-26 😮
chmod u+x ~/.local/share/zed/supermaven

@aretrace
Copy link

@90aca could you reopen, it does not work properly
only solution is @bfulop so far...

@agent-Y
Copy link

agent-Y commented Sep 26, 2024

In my case, this issue was resolved with the latest update. macOS Sequoia Developer Beta

@90aca 90aca reopened this Sep 26, 2024
@kualta
Copy link

kualta commented Oct 14, 2024

none of the solutions in this thread has worked for me nixos 24.05, zed 0.155.2

@quinncomendant
Copy link

quinncomendant commented Oct 16, 2024

I can get stuck in “Supermaven initializing” in a reproducible way:

  1. Set up Supermaven and log in, so it's working normally.
  2. Comment out this line in settings.json: //"inline_completion_provider": "supermaven".
  3. Restart zed. Now, Supermaven is disabled.
  4. Try to re-enable Supermaven by uncommenting the line from above.
  5. Restart zed. Supermaven is now stuck in “Supermaven initializing”.

To get Supermaven working again:

  1. Make sure settings.json has uncommented "inline_completion_provider": "supermaven".
  2. Quit zed
  3. Delete these files:
  • ~/.supermaven/config.json
  • ~/Library/Application Support/Zed/supermaven/sm-agent-26 (or similar filename, I presume the 26 is a version number that might change).
  1. Start zed, and log in to Supermaven again.

@dekarpaulvictor
Copy link

@omegaatt36 's solution is the only thing that worked for me. I'm on Arch Linux. It appears the 'supermaven' folder isn't created with sufficient permissions for 'sm-agent-26' to get downloaded into it.

@github-actions github-actions bot added admin read Pending admin review triage Maintainer needs to classify the issue labels Nov 5, 2024
@notpeter notpeter removed the triage Maintainer needs to classify the issue label Nov 5, 2024
@notpeter notpeter removed the admin read Pending admin review label Nov 5, 2024
@glassworks-projects
Copy link

@quinncomendant 's solution works for one reboot, and then if I quit and restart Zed, I get stuck again.

MacOS Sequoia 15.1.1, Apple Silicon (M4 Pro), Zed 0.166.1

@ErickMSDev
Copy link

The problem that occurs on Macs is that the Supermaven configuration file is marked as “downloaded from the internet”, that means the config.json file is marked with the special attribute “com.apple.provenance”. You can check it with this command in the terminal:
xattr -l /Users/YOUR_USER/.supermaven/config.json

It is solved by removing the attribute from the terminal and restarting Zed:
xattr -d com.apple.provenance /Users/YOUR_USER/.supermaven/config.json

@junque1r4
Copy link

Closing zed and deleting:

~/.local/share/zed/supermaven/sm-agent-26 and ~/.supermaven/config.json worked for me in Arch.

@glassworks-projects
Copy link

The problem that occurs on Macs is that the Supermaven configuration file is marked as “downloaded from the internet”, that means the config.json file is marked with the special attribute “com.apple.provenance”. You can check it with this command in the terminal: xattr -l /Users/YOUR_USER/.supermaven/config.json

It is solved by removing the attribute from the terminal and restarting Zed: xattr -d com.apple.provenance /Users/YOUR_USER/.supermaven/config.json

~ xattr -l .supermaven/config.json
com.apple.provenance:
➜  ~ xattr -d com.apple.provenance .supermaven/config.json
➜  ~ xattr -l .supermaven/config.json
com.apple.provenance:

In my case looks like this key has no value and so deleting it does nothing. Also does not solve the issue for me.

@Tekipeps
Copy link

在 Debian Linux 上做了類似的事情,並且成功了。 我沒有重新安裝zed,我只是刪除了 ~/.local/share/zed/supermaven 然後重新啟動zed,就會下載了 ~/.local/share/zed/supermaven/sm-agent-26
甚至狀態訊息也能正常運作 影像

I found I shoud add excutable permission to sm-agent-26 😮 chmod u+x ~/.local/share/zed/supermaven

Bingo!

In my case, I had to to this, then connect to a VPN (USA) and restart zed before it could download the sm-agent-26 binary

@Tekipeps
Copy link

在 Debian Linux 上做了類似的事情,並且成功了。 我沒有重新安裝zed,我只是刪除了 ~/.local/share/zed/supermaven 然後重新啟動zed,就會下載了 ~/.local/share/zed/supermaven/sm-agent-26
甚至狀態訊息也能正常運作 影像

I found I shoud add excutable permission to sm-agent-26 😮 chmod u+x ~/.local/share/zed/supermaven

Bingo!

In my case, I had to to this, then connect to a VPN (USA) and restart zed before it could download the sm-agent-26 binary

I think the issue here is related to IP somewhat. For some reason I cannot access supermaven website without connecting to a VPN in my country (Nigeria). Same thing with all vercel hosted sites. I am assumming this made supermaven not able to download the binary from supermaven's servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai Improvement related to Assistant, Copilot, or other AI features bug [core label] inline completion Umbrella label for Copilot, Supermaven, etc. completions supermaven
Projects
None yet
Development

No branches or pull requests