[GH-ISSUE #10] Rust-analyzer / LSP support for native mixin development #1

Open
opened 2026-11-02 15:32:18 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @MuradWafik on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon-mixins/issues/10

I'm starting to develop native Horizon mods using horizon-mixins, and I'm wondering what the intended IDE development experience is.

Currently, mixin helper files are compiled as part of the transformed Horizon source rather than as ordinary Rust modules in the mod's standalone workspace.

This makes IDE support difficult:

  • rust-analyzer may not resolve types and imports that are only available in the target Horizon context.
  • Helpers can produce unresolved symbol or type errors despite being valid after injection.
  • Navigation, go-to-definition, autocomplete and diagnostics are limited when working across the mod and Horizon source.
  • It's difficult to get useful feedback without repeatedly running the mixin staging/checking process.

Are there plans to support rust-analyzer or other LSP tooling for native mixin development?

For example, would it be feasible to provide generated source/workspace files that rust-analyzer can understand, or another workflow that gives IDEs access to the injected context?

I'm not necessarily suggesting that full LSP support needs to be built into horizon-mixins itself. I'd mainly like to understand the project's stance and whether there's an existing recommended workflow or workaround.

Thanks

Originally created by @MuradWafik on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon-mixins/issues/10 I'm starting to develop native Horizon mods using horizon-mixins, and I'm wondering what the intended IDE development experience is. Currently, mixin helper files are compiled as part of the transformed Horizon source rather than as ordinary Rust modules in the mod's standalone workspace. This makes IDE support difficult: - rust-analyzer may not resolve types and imports that are only available in the target Horizon context. - Helpers can produce unresolved symbol or type errors despite being valid after injection. - Navigation, go-to-definition, autocomplete and diagnostics are limited when working across the mod and Horizon source. - It's difficult to get useful feedback without repeatedly running the mixin staging/checking process. **Are there plans to support rust-analyzer or other LSP tooling for native mixin development?** For example, would it be feasible to provide generated source/workspace files that rust-analyzer can understand, or another workflow that gives IDEs access to the injected context? I'm not necessarily suggesting that full LSP support needs to be built into horizon-mixins itself. I'd mainly like to understand the project's stance and whether there's an existing recommended workflow or workaround. Thanks
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon-mixins#1
No description provided.