fiv

fiv

I really like the Zed editor but recently code completion just stopped working. I still get syntax highlighting just no code completion. Is anybody having the same issue or know what the problem might be.

Showing Posts 1 to 10

LostKobrakai

LostKobrakai

The first step should always be looking at the lsp logs, which you can open via the command palette in zed.

fiv

fiv OP

Not exactly sure what I’m looking for in Logs but this is what my logs look like. I wonder if this line is the problem

server "elixir-ls": failed to spawn command. path: "/Users/jamesavery/Library/Application 
2024-07-25T18:12:24.636696Z [INFO] starting language server "elixir-ls", path: "/Users/jamesavery/Dev/otp_apps/delta", id: 5
2024-07-25T18:12:24.753174Z [INFO] starting language server. binary path: "/Users/jamesavery/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.22.1/language_server.sh", working directory: "/Users/jamesavery/Dev/otp_apps/delta", args: []
2024-07-25T18:12:24.753329Z [ERROR] failed to start language server "elixir-ls": failed to spawn command. path: "/Users/jamesavery/Library/Application Support/Zed/extensions/work/elixir/elixir-ls-v0.22.1/language_server.sh", working directory: "/Users/jamesavery/Dev/otp_apps/delta", args: []
2024-07-25T18:12:24.753386Z [ERROR] server stderr: Some("")
2024-07-25T18:12:24.753434Z [ERROR] Hit 4 reinstallation attempts for "elixir-ls"
2024-07-25T19:40:44.760385Z [INFO] Initializing default prettier with plugins {}
2024-07-25T19:40:44.762037Z [INFO] starting language servers for Elixir: elixir-ls
2024-07-25T19:40:44.762262Z [INFO] starting language servers for Elixir: elixir-ls
2024-07-25T19:40:44.762322Z [INFO] starting language servers for Elixir: elixir-ls
2024-07-25T19:40:44.819125Z [INFO] Initializing default prettier with plugins {}
2024-07-25T19:40:44.819226Z [INFO] starting language servers for Elixir: elixir-ls
2024-07-25T19:40:44.820365Z [INFO] Initializing default prettier with plugins {}
2024-07-25T19:40:44.820426Z [INFO] starting language servers for Elixir: elixir-ls
2024-07-25T19:40:44.820646Z [INFO] Initializing default prettier with plugins {}
2024-07-25T19:40:44.820701Z [INFO] starting language servers for Elixir: elixir-ls
2024-07-25T19:40:44.820832Z [INFO] Initializing default prettier with plugins {}
2024-07-25T19:40:44.820881Z [INFO] starting language servers for Elixir: elixir-ls
anderkonzen

anderkonzen

I was getting this error too, but I did not know when it started on my mac (maybe a zed update?).

I tried to uninstall zed, compared releases of elixir-ls, etc, but I finally made it work by making the elixir-ls scripts that zed downloads to be executable. Comparing the version between VSCode and zed, I noticed that the elixir-ls release files were not marked as executable:

By running chmod +x ... things started to work again.

larshei

larshei

Nice, that solved it for me.

Also, I added the following overall config for Elixir, maybe it is useful for someone :slight_smile:

Selects the language server and configures format on save.

Most of it was taken from the zed manual

{
  "languages": {
    "Elixir": {
      "show_inline_completions": true,
      "language_servers": ["elixir-ls"],
      "format_on_save": {
        "external": {
          "command": "mix",
          "arguments": ["format", "--stdin-filename", "{buffer_path}", "-"]
        }
      }
    }
  }
}
soyjeansoy

soyjeansoy

this worked on my problem :pray:t5:

jam

jam

I ran into this as well. Fwiw, I had to add this to my settings.json

"lsp": {
    "elixir-ls": {},
    ...
}
larshei

larshei

Just ran across this, might be helpful for someone:
Zed has builtin tailwind support, which can be enabled as well.

Adjust to config as follows:

-     "language_servers": ["elixir-ls"],
+     "language_servers": ["elixir-ls", "tailwindcss-language-server"],

theagilecoder

theagilecoder

I have just installed Zed with the elixir official extension. It should work by default right in the .heex files ?

Code completion works for me in .ex file but doesn’t in .heex

If I create a regular .html file in zed, then the HTML autocomplete works as expected.

katafrakt

katafrakt

To be honest I’m not sure what you expect here. There is no Elixir code in the screenshot where the code completion could happen. Could you elaborate?

theagilecoder

theagilecoder

Providing more details:

In heex files I dont get autocomplete of HTML tags. For ex. if I type ```<div>``` then the div autoclosing tags should be autogenerated like in .html files in zed.

In .html files its working as expected.

Zed claims HEEX support in its elixir support is on by default. Elixir | Elixir

Where Next? Top

Trending in Questions Top

katta
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
apz
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews