Skip to content

Latest commit

 

History

History
481 lines (410 loc) · 41.1 KB

CHANGELOG.md

File metadata and controls

481 lines (410 loc) · 41.1 KB

Unreleased

No changes yet

v0.7.2

We've identified several long-standing performance bottlenecks in Lexical. Among them:

  1. A bottleneck that affects Lexical when it receives a large number of document updates. The bottleneck would cause the server process's Task Queue (the thing that delegates incoming LS requests to the process that handles them) to crash, and the server would become unusable after. Additionally, Lexical would build your code while the document updates were occurring, which would further slow things down. Both issues are now fixed, and Lexical waits until you stop making changes before it tries to compile your project.
  2. We calculated the completion context once per completion item returned, which would be slow when a large number of completions were returned (like when you type Enum.). Since the context is static to your cursor, we only need to calculate it once.
  3. Only call mix deps.compile for older versions of elixir that change the directory when compiling.
  4. Incorporated Jose's new mix format task that doesn't require us to be inside of the given mix project. This means that formatting no longer uses the build lock. Formatting times have gone down from 400ms in the worst case to 10ms.

In addition, we've improved diagnostic reporting in config files.

What's Changed

v0.7

We're releasing 0.7 so we can support Elixir 1.17 and Erlang 27. However, those users on Erlang 27 will experience large increases in the amount of memory Lexical takes up due to this bug. When that bug is fixed, we'll push out another release that will detect the newer version of Erlang and things should go back to normal.

Other than supporting the newer versions of Erlang and Elixir, we've added the following features:

Features

  • Organize aliases code action. When invoked, will alphabetize and flatten all your existing aliases in a module. It will also put all aliases in the same place in a module.
  • Remove unused alias code action
  • Add alias code action: Type a module, invoke the code action and see a list of modules to alias, select one, and it's added to your module's other aliases.
  • Improved script handling: Now lexical won't execute scripts when editing them. Thanks, @zachallaun!
  • We now show typespecs for struct field completions. Thanks @kirillrogovoy

What's Changed

  • Completion: Use existing specs to infer function signatures and vice-versa by @zachallaun lexical-lsp#802
  • Don't evaluate top-level code in exs fils by @zachallaun lexical-lsp#798
  • Completion: Don't insert impl attribute if it's already present by @zachallaun lexical-lsp#801
  • Completion: Use existing specs to infer function signatures and vice-versa by @zachallaun lexical-lsp#802
  • Organize Aliases by @scohen lexical-lsp#725
  • Remove unused aliases by @scohen
  • Refactor: Pass env into completion in remote control by @scohen in lexical-lsp#733
  • Refactor: Increased type detail by @scohen in lexical-lsp#734
  • Fix: Edge case for module loading by @scohen in lexical-lsp#738
  • Improved store error handling by @scohen in lexical-lsp#737
  • Complete callables without parens if present in locals_without_parens by @zachallaun in lexical-lsp#739
  • Indexed delegated functions by @scohen in lexical-lsp#729
  • Fix: Crash when typing english by @scohen in lexical-lsp#742
  • Fix go to definition behavior for same-name, same-arity functions by directing to the first function by @scottming in lexical-lsp#746
  • Completion: show type spec for struct fields by @kirillrogovoy in lexical-lsp#751
  • Code Action: Add alias by @scohen in lexical-lsp#740
  • Fixed: Go to definitions crashes on modules defined via a macro by @scohen in lexical-lsp#753
  • Increased plugin timeouts by @scohen in lexical-lsp#757
  • Code Action: Remove unused aliases by @scohen in lexical-lsp#748
  • Reorder test macro completions by @zachallaun in lexical-lsp#769
  • Added struct definition detection for ecto schemas by @scohen in lexical-lsp#758
  • Sorted bang functions after non-bang variants by @scohen in lexical-lsp#770

v0.6.1

Small bugfix release. We found an issue regarding unicode conversion, and although it's existed for a while and no one complained, we felt that it was more likely to happen now that we have workspace symbols.

  • Fix conversion of UTF-8 positions to UTF-16 code units by @zachallaun in lexical-lsp#719
  • Fix Entity.resolve not correctly resolving local function capture calls @scottming in lexical-lsp#721

v0.6.0 24 April, 2024

After multiple people asked, both document and workspace symbols have been implemented. Both make heavy use of our indexing infrastructure, which provides extremely fast and accurate results.

We've also fixed a number of small inconsistencies and crashes in the indexer, making it more robust and accurate. I especially want to call out the fix that @lukad made, that improved indexing performance by 3600x on his large codebase. When you update to this release, we strongly recommend re-indexing your project's source code by opening the project's mix.exs file and running the Rebuild <your project>'s code search index code action.

In addition, we've improved support for completions in phoenix controllers, stopped completions inside strings and have changed how we sort completions. The new sorting scheme is a big improvement for usability, and sorts things by how "close" they are to what you're working on. Give it a shot, we think you'll like it.

I'd like to thank all our new contributors, and especially our core team of @scottming, @zachallaun, @moosieus and @blond. You've all gone above and beyond.

What's Changed

Full Changelog: https://github.com/lexical-lsp/lexical/compare/v0.5.2...v0.6.0

v0.5.2 29 February, 2024

This is a bugfix release that fixes the following:

  • Updated credo by @scohen in #617
  • Update nix hash with new deps by @hauleth in #618
  • Prepare scripts for updating Nix hash by non-Nix users by @hauleth in #619
  • Update the installation documentation for the supported Elixir version by @scottming in #624
  • Fixed unused variable code action by @scohen in #628

v0.5.1 22 February, 2024

This is a bugfix release that fixes an issue where lexical wouldn't start on MacOS if you're using the default bash, and not using one of the supported version managers (asdf, rtx or mise)

v0.5.0 21 February, 2024

Admittedly, it's been a long while since the last release, but we've laid the groundwork for some exciting new features.

Since November, we've built out our search and indexing infrastructure that allows lexical to find interesting bits of your source code and highlight them for you later. We went through five separate backends before settling on one that is super duper fast, memory efficient(ish) and is written in pure elixir.

Presently, we're using this to power our newest features, find references and go to definition. We've implemented both for modules, module attributes and functions. You'll notice that when lexical starts, it will index your project's source code. This is a one-time operation that should be quick, indexing lexical's and its dependencies 193,000 lines of source code takes around 10 seconds. This means that indexing is on by default, and there's no way to turn it off any more. We've crossed the rubicon, folks, and there's no turning back.

Other good news, because of the indexing infrastructure, we no longer have to do a full build when lexical starts for the first time. This means the startup time has dramatically improved. On the lexical project, it has dropped from 12 seconds to 2.

I'd like to thank @scottming @zachallaun and @Blond11516 for ensuring that the current state of the code is where it is today. Also, thank you @hauleth for taking care of the nix flake.

And we've made a ton of bug fixes and usability improvements since 0.4.1 as well. Some highlights include:

  • Support for elixir version 1.16
  • Handled renaming of rtx to mise
  • Multiple improvements to the hover popup
  • Improved ease of writing new code actions
  • Undefined variables diagnostics error for HEEx templates
  • Code action: Suggested function names
  • Completions for typespecs
  • Improved nix flake

What's Changed

v0.4.1 08 November, 2023

This is a small bugfix release for 0.4.0

It contains the following fixes:

  • Fix: Stutter when completing some items inside strings (:erl would complete to :erlerlang)
  • Fix: Undefined variable names in HEEX templates
  • Fix: Erlang remote calls in pipelines did not have their first parameter removed during completion
  • Feature: Function names in completions are ordered by name and then arity

v0.4.0 24 October, 2023

Welcome to Lexical v0.4.0

The main thrust of v0.4 is hover support and quality of life improvements. Now, when you hover over a module or function, you'll see relevant documentation, types and parameters. We've also spent a lot of time working on completions in #410, which makes them more consistent, fixes some bugs in certain language clients (like eglot adding an extra @ when completing module attributes), and greatly improves their feel in vscode.

Additionally, quite a few of the changes in this PR were about laying the groundwork for our indexing infrastructure, which will debut in the next version. But fear not, this version has indexing disabled.

I want to thank @zachallaun and @scottming for all their hard work on this release. They've made lexical faster, more friendly and have removed a bunch of bugs!

Highlights include:

  • Document hover for functions and modules
  • Improved boot scripts
  • Automatically updating nix flake. Thanks, @hauleth
  • Helix editor integration. Thanks @philipgiuliani
  • .heex integration
  • Massively improved completions (Check out the PR, it's too big to summarize)

Bugs fixed:

  • Longstanding unicode completion / editing bugs slain. Unicode works perfectly now.

What's Changed

  • Suggest a module name for defmodule completion by @scohen in lexical-lsp#338
  • Add Vanilla Emacs with eglot instruction by @dalugm in lexical-lsp#343
  • Add elixir boot script to support having spaces in the package path by @Blond11516 in lexical-lsp#345
  • Centralize general-use AST modules in common by @zachallaun in lexical-lsp#342
  • Allow release workflow to update existing releases by @Blond11516 in lexical-lsp#346
  • Fixed bug in path namespacing by @scohen in lexical-lsp#350
  • Convert utf8->latin1 before decoding JSON-RPC payloads by @zachallaun in lexical-lsp#353
  • Add support for textDocument/hover (for modules) by @zachallaun in lexical-lsp#331
  • Fix markdown formatting for supported versions by @reisub in lexical-lsp#355
  • Indexing features for modules by @scohen in lexical-lsp#347
  • Refactor: Moved Dispatch from server to remote_control by @scohen in lexical-lsp#357
  • Moved dispatch to :gen_event by @scohen in lexical-lsp#358
  • Integrated indexing into language server by @scohen in lexical-lsp#359
  • Fixed index store test failure by @scohen in lexical-lsp#365
  • Add current_project/1 helper function by @scottming in lexical-lsp#360
  • Position refactor by @scohen in lexical-lsp#364
  • Added logos to project and readme by @scohen in lexical-lsp#366
  • Aliases was confused by nested non-module blocks by @scohen in lexical-lsp#368
  • Better typespecs by @scohen in lexical-lsp#367
  • Add Helix installation instructions by @philipgiuliani in lexical-lsp#376
  • Generate correct typespec for LSP messages by @zachallaun in lexical-lsp#380
  • Async indexing by @zachallaun in lexical-lsp#371
  • Enabled warnings-as-errors on umbrella by @scohen in lexical-lsp#383
  • Improved hover support: Structs, qualified calls and types, more info for modules by @zachallaun in lexical-lsp#356
  • Explicitly implement protocol in completion modules by @zachallaun in lexical-lsp#386
  • Refactor client capability tracking by @zachallaun in lexical-lsp#385
  • Support for HEEx compilation by @scottming in lexical-lsp#323
  • Made aliases better handle the aliases special form by @scohen in lexical-lsp#393
  • Fix the eex compiled flaky test by @scottming in lexical-lsp#394
  • Enhanced ets / removed cub and mnesia backends. by @scohen in lexical-lsp#392
  • Disabled indexing by @scohen in lexical-lsp#399
  • Fix Field parsing error for zed editor by @scottming in lexical-lsp#396
  • Fix the struct KeyError diagnostics by @scottming in lexical-lsp#397
  • Always return Completion.List with is_incomplete: true by @zachallaun in lexical-lsp#398
  • Detect version manager the same way in all scripts by @zachallaun in lexical-lsp#390
  • Respond with nil instead of an error when formatting fails by @zachallaun in lexical-lsp#411
  • Fixup README word repeating by @solar05 in lexical-lsp#414
  • Made display name calculation relocatable by @scohen in lexical-lsp#415
  • Move entity module to remote_control app by @scottming in lexical-lsp#406
  • Reorder the startup order of the children of Server.Project.Supervisor by @scottming in lexical-lsp#407
  • Refactor completions to always use text edits by @zachallaun in lexical-lsp#409
  • Fix spec for Lexical.Ast.cursor_path/2 by @zachallaun in lexical-lsp#418
  • Fix path_at/2 to allow path to branches if they're innermost by @zachallaun in lexical-lsp#419
  • Improve completions by @zachallaun in lexical-lsp#410
  • Improved memory performance while indexing by @scohen in lexical-lsp#421
  • chore: update Nix definition by @hauleth in lexical-lsp#417
  • Make the operational behavior of the ancestors of structures and modules more consistent by @scottming in lexical-lsp#408
  • Refactor shell scripts and add Docker-based integration tests by @zachallaun in lexical-lsp#395

Full Changelog: https://github.com/lexical-lsp/lexical/compare/v0.3.0...v0.4.0

What's Changed

  • Suggest a module name for defmodule completion by @scohen in lexical-lsp#338
  • Add Vanilla Emacs with eglot instruction by @dalugm in lexical-lsp#343
  • Add elixir boot script to support having spaces in the package path by @Blond11516 in lexical-lsp#345
  • Centralize general-use AST modules in common by @zachallaun in lexical-lsp#342
  • Allow release workflow to update existing releases by @Blond11516 in lexical-lsp#346
  • Fixed bug in path namespacing by @scohen in lexical-lsp#350
  • Convert utf8->latin1 before decoding JSON-RPC payloads by @zachallaun in lexical-lsp#353
  • Add support for textDocument/hover (for modules) by @zachallaun in lexical-lsp#331
  • Fix markdown formatting for supported versions by @reisub in lexical-lsp#355
  • Indexing features for modules by @scohen in lexical-lsp#347
  • Refactor: Moved Dispatch from server to remote_control by @scohen in lexical-lsp#357
  • Moved dispatch to :gen_event by @scohen in lexical-lsp#358
  • Integrated indexing into language server by @scohen in lexical-lsp#359
  • Fixed index store test failure by @scohen in lexical-lsp#365
  • Add current_project/1 helper function by @scottming in lexical-lsp#360
  • Position refactor by @scohen in lexical-lsp#364
  • Added logos to project and readme by @scohen in lexical-lsp#366
  • Aliases was confused by nested non-module blocks by @scohen in lexical-lsp#368
  • Better typespecs by @scohen in lexical-lsp#367
  • Add Helix installation instructions by @philipgiuliani in lexical-lsp#376
  • Generate correct typespec for LSP messages by @zachallaun in lexical-lsp#380
  • Async indexing by @zachallaun in lexical-lsp#371
  • Enabled warnings-as-errors on umbrella by @scohen in lexical-lsp#383
  • Improved hover support: Structs, qualified calls and types, more info for modules by @zachallaun in lexical-lsp#356
  • Explicitly implement protocol in completion modules by @zachallaun in lexical-lsp#386
  • Refactor client capability tracking by @zachallaun in lexical-lsp#385
  • Support for HEEx compilation by @scottming in lexical-lsp#323
  • Made aliases better handle the aliases special form by @scohen in lexical-lsp#393
  • Fix the eex compiled flaky test by @scottming in lexical-lsp#394
  • Enhanced ets / removed cub and mnesia backends. by @scohen in lexical-lsp#392
  • Disabled indexing by @scohen in lexical-lsp#399
  • Fix Field parsing error for zed editor by @scottming in lexical-lsp#396
  • Fix the struct KeyError diagnostics by @scottming in lexical-lsp#397
  • Always return Completion.List with is_incomplete: true by @zachallaun in lexical-lsp#398
  • Detect version manager the same way in all scripts by @zachallaun in lexical-lsp#390
  • Respond with nil instead of an error when formatting fails by @zachallaun in lexical-lsp#411
  • Fixup README word repeating by @solar05 in lexical-lsp#414
  • Made display name calculation relocatable by @scohen in lexical-lsp#415
  • Move entity module to remote_control app by @scottming in lexical-lsp#406
  • Reorder the startup order of the children of Server.Project.Supervisor by @scottming in lexical-lsp#407
  • Refactor completions to always use text edits by @zachallaun in lexical-lsp#409
  • Fix spec for Lexical.Ast.cursor_path/2 by @zachallaun in lexical-lsp#418
  • Fix path_at/2 to allow path to branches if they're innermost by @zachallaun in lexical-lsp#419
  • Improve completions by @zachallaun in lexical-lsp#410
  • Improved memory performance while indexing by @scohen in lexical-lsp#421
  • chore: update Nix definition by @hauleth in lexical-lsp#417
  • Make the operational behavior of the ancestors of structures and modules more consistent by @scottming in lexical-lsp#408
  • Refactor shell scripts and add Docker-based integration tests by @zachallaun in lexical-lsp#395

Full Changelog: https://github.com/lexical-lsp/lexical/compare/v0.3.3...v0.4.0

v0.3.3 05 September, 2023

Fixed Unicode handling.

Unicode was likely broken under the last several releases; Unicode in documents would result in incorrect errors popping up. This has been fixed, and was due to incorrect decoding in the standard input handler.

Full Changelog: https://github.com/lexical-lsp/lexical/compare/v0.3.2...v0.3.3

v0.3.2 29 August, 2023

0.3.2 fixes a bug where packaging would not produce namespaced artifacts if the lexical directory was inside a subdirectory that had one of its dependencies as a path element.

For example, packaging would fail if lexical was in /path/to/home/language_servers/lexical.

Full Changelog: https://github.com/lexical-lsp/lexical/compare/v0.3.1...v0.3.2

v0.3.1 24 August, 2023

This is a bugfix release. Packaging generated in v0.3.0 would not start in directories that contain spaces, and this is the default for vscode under macOS. This release has a new launching mechanism that should allow us to use a lot less bash scripting.

v0.3.0 23 August, 2023

What's Changed

Full Changelog: https://github.com/lexical-lsp/lexical/compare/v0.2.2...v0.3.0

v0.2.2 21 July, 2023

What's Changed

Full Changelog: https://github.com/lexical-lsp/lexical/compare/v0.2.1...v0.2.2

v0.2.1 21 July, 2023

This release bumps versions of our apps, and contains no improvements or fixes.

v0.2.0 21 July, 2023

What's Changed

Full Changelog: https://github.com/lexical-lsp/lexical/compare/4367692...v0.2.0