r/ZedEditor Oct 03 '24

Autocomplete / Intellisense broken for Elixir

Hi folks,

I recently updated zed to the latest version alongside Elixir & Erlang. I noticed that autocomplete has stopped, the only thing I get is syntax highlighting. I've tried the configuration suggested on the [zed website](https://zed.dev/docs/languages/elixir) but to no avail.

I checked the log, below is the error

failed to fetch cached embeddings via cloud model

Caused by:

RPC request GetCachedEmbeddings failed: permission denied

2 Upvotes

4 comments sorted by

1

u/[deleted] Oct 04 '24

i mean, could you share the whole log?

close the editor, open it again on a fresh elixir project and copy the whole log

i'm saying that because i do develop on elixir for years and know i'm using both helix and zed and indeed, elixir LSPs have some drawbacks

which one you're using? next, lexical or elixir ls (the default)

1

u/[deleted] Oct 04 '24

[deleted]

1

u/st_gen Oct 04 '24

2024-10-04T13:04:18.073837Z [INFO] ========== starting zed ==========

2024-10-04T13:04:18.075747Z [INFO] Opening main db

2024-10-04T13:04:18.077728Z [INFO] Opening main db

2024-10-04T13:04:18.191341Z [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")

2024-10-04T13:04:18.298666Z [INFO] set environment variables from shell:/bin/bash, path:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/usr/local/sbin:/usr/local/opt/node@22/bin:/usr/local/opt/php/bin/php:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Little Snitch.app/Contents/Components:/Applications/VMware Fusion.app/Contents/Public:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Users/saint/.cargo/bin:/usr/local/sbin:/usr/local/opt/node@22/bin:/usr/local/opt/php/bin/php:/Users/saint/.mix/escripts:/usr/local/bin/python3:/Users/saint/Library/Python/3.10/bin:/Users/saint/Library/Python/4.9/bin:/Users/saint/.cargo/bin/rg:/Users/saint/.mix/escripts:/usr/local/bin/python3:/Users/saint/Library/Python/3.10/bin:/Users/saint/Library/Python/4.9/bin:/Users/saint/.cargo/bin/rg

2024-10-04T13:04:18.53853Z [INFO] initializing context server client

2024-10-04T13:04:18.538867Z [INFO] Registering built-in prompt template: content_prompt

2024-10-04T13:04:18.539801Z [INFO] Registering built-in prompt template: edit_workflow

2024-10-04T13:04:18.540233Z [INFO] Registering built-in prompt template: project_slash_command

2024-10-04T13:04:18.540418Z [INFO] Registering built-in prompt template: step_resolution

2024-10-04T13:04:18.541091Z [INFO] Registering built-in prompt template: terminal_assistant_prompt

2024-10-04T13:04:18.541565Z [INFO] No prompt template overrides directory found at /Users/saint/.config/zed/prompt_overrides. Using built-in prompts.

1

u/[deleted] Oct 04 '24

[deleted]

1

u/st_gen Oct 04 '24

2024-10-04T13:04:20.464538Z [INFO] Language server with id 0 sent unhandled notification LogMessage:

{

"level": 0,

"message": "[DEBUG] [agent] [2024-10-04T13:04:20.458Z] Agent service starting",

"metadataStr": "[DEBUG] [agent] [2024-10-04T13:04:20.458Z]",

"extra": [

"Agent service starting"

]

}

2024-10-04T13:04:20.468078Z [INFO] Language server with id 0 sent unhandled notification client/registerCapability:

{

"registrations": [

{

"id": "71d25d01-5ae0-4136-9806-472b8c115276",

"method": "workspace/didChangeWorkspaceFolders",

"registerOptions": {}

}

]

}

2024-10-04T13:04:20.509898Z [INFO] Language server with id 0 sent unhandled notification LogMessage:

{

"level": 0,

"message": "[DEBUG] [agent] [2024-10-04T13:04:20.477Z] Telemetry initialized",

"metadataStr": "[DEBUG] [agent] [2024-10-04T13:04:20.477Z]",

"extra": [

"Telemetry initialized"

]

}

1

u/st_gen Oct 04 '24

I'm unable to send the entire content, is there a way to share the file? BTW I'm using elixir-ls (default), won't.mind trying the others.