Skip to content

Conversation

@alexfaber2011
Copy link

Summary

Add support for aarch64 Linux systems by including aarch64 in the architecture mapping.

Problem

The plugin currently fails to start on aarch64 Linux systems with the error:

[LLM] Unsupported architecture or OS: aarch64 Linux
[LLM] failed to download llm-ls

This occurs because Linux systems report their architecture as aarch64, while macOS ARM systems report as arm64. The architecture mapping only included arm64, causing Linux aarch64 detection to fail.

Solution

Added aarch64 = "aarch64" to the arch_map in lua/llm/language_server.lua. This allows both:

  • macOS ARM systems (reported as arm64)
  • Linux ARM systems (reported as aarch64)

to correctly map to the same binary: llm-ls-aarch64-{os-suffix}

Testing

Tested on aarch64 Linux environment where the error previously occurred. The plugin now correctly:

  1. Detects the architecture
  2. Downloads the appropriate binary (llm-ls-aarch64-unknown-linux-gnu)
  3. Starts without errors

🤖 Generated with Claude Code

Add aarch64 to architecture mapping to support Linux systems that
report architecture as aarch64 (e.g., ARM-based Linux environments).
macOS reports as arm64, but Linux reports as aarch64 directly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@alexfaber2011
Copy link
Author

duplicate of #111 I just realized, but I'll let ya'll decide what to do with it

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.

1 participant