Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: elixir-tools/next-ls
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.5.4
Choose a base ref
...
head repository: elixir-tools/next-ls
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.5.5
Choose a head ref
  • 2 commits
  • 6 files changed
  • 3 contributors

Commits on Jul 20, 2023

  1. fix: add .gitignore file to .elixir-tools directory (#113)

    Co-authored-by: Mitchell Hanberg <[email protected]>
    lud-wj and mhanberg authored Jul 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    24d9915 View commit details
  2. chore(main): release 0.5.5 (#119)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Jul 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f8a94ec View commit details
Showing with 20 additions and 10 deletions.
  1. +7 −0 CHANGELOG.md
  2. +3 −5 README.md
  3. +1 −1 bin/nextls
  4. +8 −1 lib/next_ls/lsp_supervisor.ex
  5. +0 −2 lib/next_ls/symbol_table.ex
  6. +1 −1 mix.exs
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.5.5](https://github.com/elixir-tools/next-ls/compare/v0.5.4...v0.5.5) (2023-07-20)


### Bug Fixes

* add .gitignore file to .elixir-tools directory ([#113](https://github.com/elixir-tools/next-ls/issues/113)) ([24d9915](https://github.com/elixir-tools/next-ls/commit/24d99158cd616b3d9426e2d21ecfcfcb9d90ec8b))

## [0.5.4](https://github.com/elixir-tools/next-ls/compare/v0.5.3...v0.5.4) (2023-07-13)


8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -46,12 +46,10 @@ Using eglot:

## Installation

The preferred way to use NextLS is through one of the supported editor extensions.
The preferred way to use Next LS is through one of the supported editor extensions.

If you need to install NextLS on it's own, you can download the executable hosted by the GitHub release. The executable is an Elixir script that utilizes `Mix.install/2`.
If you need to install Next LS on it's own, you can download the executable hosted by the GitHub release. The executable is an Elixir script that utilizes `Mix.install/2`.

### Note

NextLS creates an `.elixir-tools` hidden directory in your project.

This should be added to your project's `.gitignore`.
Next LS creates an `.elixir-tools` hidden directory in your project, but it will be automatically ignored by `git`.
2 changes: 1 addition & 1 deletion bin/nextls
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ Logger.configure(level: :none)
Mix.start()
Mix.shell(Mix.Shell.Process)

default_version = "0.5.4" # x-release-please-version
default_version = "0.5.5" # x-release-please-version

Mix.install([{:next_ls, System.get_env("NEXTLS_VERSION", default_version)}])

9 changes: 8 additions & 1 deletion lib/next_ls/lsp_supervisor.ex
Original file line number Diff line number Diff line change
@@ -51,13 +51,20 @@ defmodule NextLS.LSPSupervisor do
raise OptionsError, invalid
end

# FIXME: this directory should be inside the workspace, which will is not determined until
# the LSP has begun initialization
# The symbol table may need to started dynamically, like the extensions and the runtimes
hidden_folder = Path.expand(".elixir-tools")
File.mkdir_p!(hidden_folder)
File.write!(Path.join(hidden_folder, ".gitignore"), "*\n")

children = [
{DynamicSupervisor, name: NextLS.DynamicSupervisor},
{Task.Supervisor, name: NextLS.TaskSupervisor},
{Task.Supervisor, name: :runtime_task_supervisor},
{GenLSP.Buffer, buffer_opts},
{NextLS.DiagnosticCache, name: :diagnostic_cache},
{NextLS.SymbolTable, name: :symbol_table, path: Path.expand(".elixir-tools")},
{NextLS.SymbolTable, name: :symbol_table, path: hidden_folder},
{Registry, name: NextLS.ExtensionRegistry, keys: :duplicate},
{NextLS,
cache: :diagnostic_cache,
2 changes: 0 additions & 2 deletions lib/next_ls/symbol_table.ex
Original file line number Diff line number Diff line change
@@ -39,8 +39,6 @@ defmodule NextLS.SymbolTable do
symbol_table_name = Keyword.get(args, :symbol_table_name, :symbol_table)
reference_table_name = Keyword.get(args, :reference_table_name, :reference_table)

File.mkdir_p!(path)

{:ok, name} =
:dets.open_file(symbol_table_name,
file: Path.join(path, "symbol_table.dets") |> String.to_charlist(),
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ defmodule NextLS.MixProject do
[
app: :next_ls,
description: "The language server for Elixir that just works",
version: "0.5.4",
version: "0.5.5",
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,