Package Details: elixir-ls 0.20.0-1

Git Clone URL: https://aur.archlinux.org/elixir-ls.git (read-only, click to copy)
Package Base: elixir-ls
Description: A frontend-independent Language Server Protocol for Elixir
Upstream URL: https://github.com/elixir-lsp/elixir-ls
Licenses: Apache-2.0
Submitter: KokaKiwi
Maintainer: KokaKiwi
Last Packager: KokaKiwi
Votes: 6
Popularity: 0.018943
First Submitted: 2019-08-31 11:56 (UTC)
Last Updated: 2024-02-21 20:12 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

kainlite commented on 2024-02-20 03:21 (UTC)

if you are facing this error:

unknown command: escript. Perhaps you have to reshim?|

you probably have asdf installed, the solution is to export the PATH without the asdf binaries in the build section of the package so it uses the system-wide installed version

byronalley commented on 2023-12-27 21:01 (UTC)

The old release has been deprecated in favour of release2 and I found it wouldn't compile for me with elixir 1.16 / otp 26.2 without changing line 36 accordingly:

mix elixir_ls.release2 -o "$pkgdir"/usr/lib/$pkgname

YrGVyFszGuSBeVLK commented on 2023-10-13 01:44 (UTC) (edited on 2023-10-13 01:47 (UTC) by YrGVyFszGuSBeVLK)

unknown command: escript. Perhaps you have to reshim? ==> ERROR: A failure occurred in build().

rubin55 commented on 2023-06-20 18:22 (UTC)

Hey It would be great if you can update to v0.15.0 which came out yesterday! I also sent a message to demize asking if he can upgrade elixir in extras to v1.15.0. Thanks for the great package!

S13ntist commented on 2021-01-02 11:48 (UTC)

Hi, For this to build in a clean chroot you need to fetch the rebar / hex deps first as well as add git to the makedepends, patch inlined below:

diff --git a/PKGBUILD b/PKGBUILD
index 53e9fd8..7d07d20 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,6 +8,7 @@ url='https://github.com/elixir-lsp/elixir-ls'
 license=('Apache')
 arch=('any')
 depends=('elixir' 'erlang-nox')
+makedepends=('git')
 source=("elixir-ls-${pkgver}.tar.gz::https://github.com/elixir-lsp/elixir-ls/archive/v${pkgver}.tar.gz")
 sha256sums=('6683f79144c14e0156e8a698f134897753ddacbc5ff1e475731bbe2a890c833c')

@@ -16,6 +17,11 @@ build() {

   export MIX_ENV=prod

+  #those deps need to be fetched for deps.get to work non interactively
+  export MIX_HOME="${srcdir}/mix-cache" # destination for hex / rebar
+  mix local.hex --force
+  mix local.rebar --force
+
   mix deps.get
   mix compile
 }