From 3031ff01c521128db0c484ad2c4190ad9f495f44 Mon Sep 17 00:00:00 2001 From: Elle Imhoff Date: Fri, 9 Jun 2023 15:47:42 -0500 Subject: [PATCH] Exclude .elixir_ls directory when configuring new Projects Fixes #3174 If the `.elixir_ls` directory is included the `.beam` it produces can interfere with normal `StubIndex` creation. --- CHANGELOG.md | 3 +++ resources/META-INF/changelog.html | 5 +++++ src/org/elixir_lang/mix/Project.kt | 2 ++ 3 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ddfffbfd1..be9de9505 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,9 @@ * Don't include `null` target usage types when finding usage type across all targets. * [#3262](https://github.com/KronicDeth/intellij-elixir/pull/3262) - [@KronicDeth](https://github.com/KronicDeth) * Skip bare Aliases when resolving Types. +* [#3263](https://github.com/KronicDeth/intellij-elixir/pull/3263) - [@KronicDeth](https://github.com/KronicDeth) + * Exclude `.elixir_ls` directory when configuring new `Project`s. + If the `.elixir_ls` directory is included the `.beam` it produces can interfere with normal `StubIndex`. ## v15.0.1 diff --git a/resources/META-INF/changelog.html b/resources/META-INF/changelog.html index 9825fd4f6..44c78d106 100644 --- a/resources/META-INF/changelog.html +++ b/resources/META-INF/changelog.html @@ -24,6 +24,11 @@

v15.0.2

  • Don't include null target usage types when finding usage type across all targets.
  • Skip bare Aliases when resolving Types.
  • +
  • +

    Exclude .elixir_ls directory when configuring new Projects.

    +

    If the .elixir_ls directory is included the .beam it produces can interfere + with normal StubIndex.

    +
  • diff --git a/src/org/elixir_lang/mix/Project.kt b/src/org/elixir_lang/mix/Project.kt index 427e346ce..72329dd9e 100644 --- a/src/org/elixir_lang/mix/Project.kt +++ b/src/org/elixir_lang/mix/Project.kt @@ -129,6 +129,8 @@ object Project { addSourceDirToContent(content, root, "spec", true) addSourceDirToContent(content, root, "test", true) + // Directory added by Elixir Language Server + excludeDirFromContent(content, root, ".elixir_ls") // Weird symlink phoenix and phoenix_html make to themselves in deps excludeDirFromContent(content, root, "assets/node_modules/phoenix") excludeDirFromContent(content, root, "assets/node_modules/phoenix_html")