updated: elixir language server, replaced with expert (#783)

This commit is contained in:
Lenz Gschwendtner authored and GitHub committed 2025-12-11 15:57:13 +07:00
1 parent fb01cc38f7
commit 2ec96089f6
11 files changed
+210 -200

No files matched your search

+6 -13
View File
@@ -1,12 +1,5 @@
import platform
def _test_nextls_available() -> str:
"""Test if Next LS is available and return error reason if not."""
# Check if we're on Windows (Next LS doesn't support Windows)
if platform.system() == "Windows":
return "Next LS does not support Windows"
def _test_expert_available() -> str:
"""Test if Expert is available and return error reason if not."""
# Try to import and check Elixir availability
try:
from solidlsp.language_servers.elixir_tools.elixir_tools import ElixirTools
@@ -16,13 +9,13 @@ def _test_nextls_available() -> str:
if not elixir_version:
return "Elixir is not installed or not in PATH"
return "" # No error, Next LS should be available
return "" # No error, Expert should be available
except ImportError as e:
return f"Failed to import ElixirTools: {e}"
except Exception as e:
return f"Error checking Next LS availability: {e}"
return f"Error checking Expert availability: {e}"
NEXTLS_UNAVAILABLE_REASON = _test_nextls_available()
NEXTLS_UNAVAILABLE = bool(NEXTLS_UNAVAILABLE_REASON)
EXPERT_UNAVAILABLE_REASON = _test_expert_available()
EXPERT_UNAVAILABLE = bool(EXPERT_UNAVAILABLE_REASON)