Skip to content

Make launcher easier wrappable for different install locations #467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 12, 2021

Conversation

NobbZ
Copy link
Member

@NobbZ NobbZ commented Feb 1, 2021

This makes the elixir-ls scripts check the $ELS_INSTALL_PREFIX
variable to know where the LSP got installed.

This change makes it easier for external packagers to install ExLS to
locations appropriate to their packaging system, as then all they need
to do is to provide a small wrapper script that adjusts the
aforementioned variable in the environment.

The launcher will fall back to its default behaviour if the variable
is unset/empty in the environment.

  • Change the launcher script to accept the new variable
  • document its existence and usage in the README

@NobbZ NobbZ marked this pull request as draft February 1, 2021 10:24
@lukaszsamson
Copy link
Collaborator

We'd probably need a similar change in apps/elixir_ls_utils/priv/debugger.sh

@NobbZ
Copy link
Member Author

NobbZ commented Feb 2, 2021

Indeed!

I hope I will be able to take core for that and docs later today.

@NobbZ NobbZ marked this pull request as ready for review February 2, 2021 22:14
@NobbZ
Copy link
Member Author

NobbZ commented Feb 2, 2021

I added some small documentation now, and also added the environment
variable to the debugger script.

@NobbZ
Copy link
Member Author

NobbZ commented Feb 2, 2021

Not sure why tests are failing…

@axelson
Copy link
Member

axelson commented Feb 9, 2021

Not sure why tests are failing…

Yeah, the tests are flaky at the moment. It's something I'm trying to work on off-and-on #478 is an attempt in that direction although it may not fix this particular error.

@NobbZ
Copy link
Member Author

NobbZ commented Feb 11, 2021

So then I remove the WIP tag and consider this "ready to merge".

Copy link
Member

@axelson axelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! ❤️

@axelson axelson merged commit f9ae150 into elixir-lsp:master Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants