c6af9e284a
Tests / catch-all (windows-latest) (push) Has been cancelled
Tests / jvm (macos-latest) (push) Has been cancelled
Tests / jvm (ubuntu-latest) (push) Has been cancelled
Tests / jvm (windows-latest) (push) Has been cancelled
Tests / native (macos-latest) (push) Has been cancelled
Tests / native (ubuntu-latest) (push) Has been cancelled
Tests / native (windows-latest) (push) Has been cancelled
Tests / niche (ubuntu-latest) (push) Has been cancelled
Tests / other-langs (macos-latest) (push) Has been cancelled
Tests / other-langs (ubuntu-latest) (push) Has been cancelled
Tests / other-langs (windows-latest) (push) Has been cancelled
Tests / catch-all (macos-latest) (push) Has been cancelled
Tests / catch-all (ubuntu-latest) (push) Has been cancelled
Docs Build / build (push) Has been cancelled
Docs Build / deploy (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Codespell / Check for spelling errors (push) Has been cancelled
Build and Push Docker Images / build-and-push (push) Has been cancelled
22 lines
774 B
Python
22 lines
774 B
Python
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
|
|
|
|
# Check if Elixir is installed
|
|
elixir_version = ElixirTools._get_elixir_version()
|
|
if not elixir_version:
|
|
return "Elixir is not installed or not in PATH"
|
|
|
|
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 Expert availability: {e}"
|
|
|
|
|
|
EXPERT_UNAVAILABLE_REASON = _test_expert_available()
|
|
EXPERT_UNAVAILABLE = bool(EXPERT_UNAVAILABLE_REASON)
|