Skip to content
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

Make wrapper script more robust... more robustly #473

Merged
merged 2 commits into from
Mar 5, 2021

Conversation

jtrees
Copy link
Contributor

@jtrees jtrees commented Feb 2, 2021

This makes a setup possible in which a symlink points to the file (e.g. /usr/local/bin/elixir-ls -> /opt/elixir-ls/language_server.sh).

It's a rehash of a previous PR (#445) that was reverted since it broke setups where the language server was installed in a path containing spaces (e.g. /opt/Elixir Language Server/). This variant takes that possibility into account.

Hopefully, this fixes #470.

@lukaszsamson
Copy link
Collaborator

We would need a similar change in debugger.sh
This PR currently conflicts with #467

@jtrees
Copy link
Contributor Author

jtrees commented Feb 7, 2021

Hmmm... Are you still interested in this change? #467 offers an alternative to solve this issue. The specific use-case of using a symlink (as addressed in this PR) still wouldn't work but alternatively the language_server.sh could be moved to a different location (as long as $ELS_INSTALL_PREFIX is set).

@axelson
Copy link
Member

axelson commented Feb 15, 2021

@jtrees I think it would be nice to include, although I'm not sure how common using a symlink like this is. But I would generally expect a symlink to work so it would be nice to support it.

jtrees and others added 2 commits February 22, 2021 21:55
This makes a setup possible in which a symlink points to the file
(e.g. /usr/local/bin/elixir-ls -> /opt/elixir-ls/language_server.sh).

It's a rehash of a previous commit that was reverted since it broke
setups where the language server was installed in a path containing
spaces (e.g. /opt/Elixir Language Server/). This variant takes that
possibility into account.
I'm not really sure what could lead this to happen. Maybe some weird
directory permissions with the read bit on and the exec bit off...

Still good to be careful though.

Co-authored-by: Łukasz Samson <[email protected]>
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 for fixing this up 👍

@axelson axelson merged commit e10d4b2 into elixir-lsp:master Mar 5, 2021
axelson added a commit to axelson/elixir-ls that referenced this pull request Mar 5, 2021
axelson added a commit that referenced this pull request Mar 28, 2021
* Add changelog test to verify that the changelog is correctly linked

* Update changelog

* Add #497

* Specify that the fuzzy completion is only for functions

* Fix formatting

* update changelog for #505

* Update changelog for #501, #473, and #504

* Update changelog for #507 and vscode #176

* Update changelog for #511

* Update changelog for #492
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.

Latest changes to language_server.sh break startup on macOS
3 participants