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

Fix crash on boot due to precedence bug and stdio log #444

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

zachallaun
Copy link
Collaborator

The checks in activate_version_manager.sh need explicit { } to prevent _detect_rtx from always running. This would cause the script to exit with an error spuriously, which would trigger an error message that was being written to stdio. Because we use stdio as our transport, that would cause the LS client to crash.

This fixes the crash reported in #440. However, it will still run the server using asdf if both asdf and rtx are installed with the correct versions of Elixir.

@zachallaun zachallaun requested a review from scohen October 24, 2023 18:09
@zachallaun zachallaun merged commit 564ce27 into main Oct 24, 2023
@zachallaun zachallaun deleted the za-shell-script-fixes branch October 24, 2023 18:22
zachallaun added a commit that referenced this pull request Oct 24, 2023
The checks in `activate_version_manager.sh` need explicit `{ }` to prevent `_detect_rtx` from always running. This would cause the script to exit with an error spuriously, which would trigger an error message that was being written to stdio. Because we use stdio as our transport, that would cause the LS client to crash.

This fixes the crash reported in #440. However, it will still run the server using asdf if both asdf and rtx are installed with the correct versions of Elixir.
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.

2 participants