Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ElixirLS hangs on formatting files #505

Copy link
Copy link
@datafoo

Description

@datafoo
Issue body actions

I noticed that ElixirLS hangs on "Running Code Actions and Formatters..." during my development workflow. It happens especially when doing a search and replace that affects many files.

Sometimes, even when saving a single file, ElixirLS hangs for 10 seconds or so with the following notifications:

  • Running 'ElixirLS: Elixir support and debugger' Formatter (configure).
  • Saving 'filename': Running Code Actions and Formatters...

E.g.
Image

When affecting several files, there is the same set of notifications for each file. Therefore, clicking Skip of each notifications (with the idea of running a single mix format later on) is not practical solution.

Despite several hours spent on it, I cannot find a way to properly reproduce the issue and provide a repo for testing. But the project size seems to affect this.

  • My project size:
$ find lib -type f -name '*.ex' | wc -l
516

$ find test -type f -name '*.exs' | wc -l
616
  • My config:
$ cat .vscode/settings.json 
{
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": true,
  "prettier.ignorePath": "assets/.prettierignore",
  "eslint.workingDirectories": [{ "mode": "auto" }],
  "[elixir]": {
    "editor.defaultFormatter": "JakeBecker.elixir-ls"
  }
}

$ cat .formatter.exs 
[
  import_deps: [:ecto, :ecto_sql, :phoenix],
  inputs: ["*.{ex,exs}", "{config,lib,test}/**/*.{ex,exs}", "priv/*/seeds.exs"]
]
  • ElixirLS: 0.29.3

  • VSCodium:

    Version: 1.104.16282
    Commit: b18126fb99b60533fc069575d08d72758cd90fed
    Date: 2025-09-18T18:33:00.492Z
    Electron: 37.3.1
    ElectronBuildId: undefined
    Chromium: 138.0.7204.235
    Node.js: 22.18.0
    V8: 13.8.258.31-electron.0
    OS: Linux x64 6.12.50

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.