From d6e46dcadb7ae38c110421b10acbb27a0be9dae9 Mon Sep 17 00:00:00 2001 From: ieQu1 <99872536+ieQu1@users.noreply.github.com> Date: Tue, 25 Apr 2023 14:48:34 +0200 Subject: [PATCH] ci: Add a script to generate erlang_ls config --- scripts/gen-erlang-ls-config.sh | 116 ++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100755 scripts/gen-erlang-ls-config.sh diff --git a/scripts/gen-erlang-ls-config.sh b/scripts/gen-erlang-ls-config.sh new file mode 100755 index 000000000..0f5bcdecd --- /dev/null +++ b/scripts/gen-erlang-ls-config.sh @@ -0,0 +1,116 @@ +#!/bin/bash +set -eou pipefail +shopt -s nullglob + +# Our fork of rebar3 copies those directories from apps to +# _build/default/lib rather than just making a symlink. Now erlang_ls +# sees the same module twice and if you're just navigating through the +# call stack you accidentally end up editing files in +# _build/default/lib rather than apps + +usage() { + cat <