Skip to content

High CPU usage with 0.12.0 #788

@Defman21

Description

@Defman21

Environment

  • Elixir & Erlang versions (elixir --version):
Erlang/OTP 25 [erts-13.0.4] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Elixir 1.14.1 (compiled with Erlang/OTP 25)
  • Elixir Language Server version: 0.12.0
  • Operating system: MacOS 13.0.1
  • Editor or IDE name: VSCode
  • Editor Plugin/LSP Client name and version: Elixir-LS 0.12.0

Current behavior

VSCode starts to feel sluggish, my CPU (MacBook Pro, M1) is at 90C all the time and I receive many unnecessary completions, e.g., for the Application token:

image

Expected behavior

Here's how it looks with Elixir LS 0.11.0:

image

My CPU is not melting and I don't receive unnecessary completions.

Note

For testing this, I compiled both v0.12.0 and v0.11.0 and replaced the bundled elixir-ls in the VSCode extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions