Open thm76 opened 3 weeks ago
Seriously where do i accept these terms.
It will ask to accept the terms when you try to send the first message.
Gotcha. Got it to work. It is important to note that it only works in the assistant pane. Using the assistant anywhere else (inline, etc) gives an error.
It won't let me select the model in the first place, so I can't send a message (the "Send" button is disabled).
After clicking on the model in the dropdown I'm back to what the first screenshot shows, with "No LLM provider selected"
I see the following in the log right after I try to select a model:
Caused by: 0: failed to persist temporary file: Cross-device link (os error 18) 1: Cross-device link (os error 18) 2024-08-22T19:51:53.052829Z [ERROR] Failed to write settings to file "/Users/ext/xxx/.config/zed/settings.json"
I'm going to add the accept-terms form to the configuration page too, but I think the problem you're seeing, @thm76, is related by different: is it possible that your Zed config is a symlink or lives on a different drive or something like that?
I'm going to add the accept-terms form to the configuration page too, but I think the problem you're seeing, @thm76, is related by different: is it possible that your Zed config is a symlink or lives on a different drive or something like that?
My home folder is on a different volume from Zed Preview.app
In #16736 I'm adding the accept-tos thing to the configuration view, but I don't think that will fix the problem that you can't select the model.
The problem is that we can't write the settings file (in which we want to write the selected model):
2024-08-21T20:15:36.48047Z [ERROR] Failed to write settings to file "/Users/xxx/.config/zed/settings.json"
Caused by:
0: failed to persist temporary file: Cross-device link (os error 18)
1: Cross-device link (os error 18)
2024-08-21T20:16:03.295359Z [ERROR] Failed to write settings to file "/Users/xxx/.config/zed/settings.json"
Caused by:
0: failed to persist temporary file: Cross-device link (os error 18)
1: Cross-device link (os error 18)
I am having a (probably) related issue:
My settings.json is indeed a symlink because I like to maintain in in sync through nix home-manager.
Trying to switch the llm from the UI, (both alt-M or with the mouse) does not change the selected model...but if a restart the editor it seems it does.
I discovered the following:
I was tailing logs while doing this and haven't seen anything related.
Two things caught my attention:
I am having a (probably) related issue:
My settings.json is indeed a symlink because I like to maintain in in sync through nix home-manager.
Does that mean it's on a different disk volume? Because I too have my settings.json
symlinked (~/.config/zed/settings.json
points to ~/.dotfiles/zed_settings.json
) and everything you described works.
It is the same volume, but because of the home manager way I found to make a symlink out of the store it seems that it is a symlink of a symlink:
❯ file .config/zed/settings.json
.config/zed/settings.json: symbolic link to /nix/store/cxh2i1kdjxfhnnzvcidyxnqprcwk038x-home-manager-files/.config/zed/settings.json
~
❯ file /nix/store/cxh2i1kdjxfhnnzvcidyxnqprcwk038x-home-manager-files/.config/zed/settings.json
/nix/store/cxh2i1kdjxfhnnzvcidyxnqprcwk038x-home-manager-files/.config/zed/settings.json: symbolic link to /nix/store/98bh5mivyh8sckhw96virbdpkpvm4q5f-hm_settings.json
~
❯ file /nix/store/98bh5mivyh8sckhw96virbdpkpvm4q5f-hm_settings.json
/nix/store/98bh5mivyh8sckhw96virbdpkpvm4q5f-hm_settings.json: symbolic link to /home/diegodorado/Code/nix-config/zed/settings.json
~
❯ file /home/diegodorado/Code/nix-config/zed/settings.json
/home/diegodorado/Code/nix-config/zed/settings.json: ASCII text
I may spend some time to see if I can remove that nested symlink if a single symlink worked for you @mrnugget
Thank you! That's good debugging information.
@mrnugget thanks for the assistance. Turns out that nested symlink was causing the issue... that was because I symlinked the settings.json and keymap.json alone... I switched to symlinking the whole folder and gitignore conversations and locks and now it works as intended
@diegodorado great! thanks for letting me know!
@thm76 does symlinking play a role in your setup? It didn't sound like it does, but I want to be sure.
@mrnugget There are no symlinks in my setup. My /
is mounted from a different volume from /home
- I think that might be the issue..
This comes up in the log in v0.153.3:
2024-09-12T08:19:33.679273+10:00 [ERROR] Failed to write settings to file "/Users/ext/xxx/.config/zed/settings.json"
Caused by: 0: failed to persist temporary file: Cross-device link (os error 18) 1: Cross-device link (os error 18)
Running it as administrator fixed it in my case
Check for existing issues
Describe the bug / provide steps to reproduce it
When I open the assistant tab there is no model selected.
I select "Claude 3.5 Sonnet Zed" from the dropdown but nothing changes - it still says "No model selected"
If I "Open configuration" the message under "Zed" says "You must accept the terms of service to use this provider" but it's not clear where and how I can view and accept the terms.
Environment
Zed: v0.150.0 (Zed Preview) OS: macOS 15.0.0 Memory: 16 GiB Architecture: x86_64
If applicable, add mockups / screenshots to help explain present your vision of the feature
Initial assistant tab:
Available options:
After selecting the first options nothing changes and the assistant tab looks the same as before (1st screenshot)
If applicable, attach your Zed.log file to this issue.
Zed.log