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

Windows (MinGW / Git Bash) looks for runtime in an unusual location #7959

Closed
tgross35 opened this issue Aug 16, 2023 · 2 comments
Closed

Windows (MinGW / Git Bash) looks for runtime in an unusual location #7959

tgross35 opened this issue Aug 16, 2023 · 2 comments
Labels
C-bug Category: This is a bug

Comments

@tgross35
Copy link
Contributor

Summary

On Windows (MinGW), Helix seems to look for the runtime directory in a binary directory (C:\Users\MyUser\.local\bin\runtime) rather than a configuration directory (C:\Users\MyUser\.config\helix\runtime), which doesn't seem to match up with the other operating systems.

Reproduction Steps

I tried this:

  1. hx --health

I expected this to happen: find runtime directory at ~/.config/helix/runtime

Instead, this happened:

Runtime directories: C:\Users\MyUser\AppData\Roaming\helix\runtime;\\?\C:\Users\MyUser\.local\bin\runtime
Runtime directory does not exist: C:\Users\MyUser\AppData\Roaming\helix\runtime
Runtime directory does not exist: \\?\C:\Users\MyUser\.local\bin\runtime

Helix log

Nothing relevant

Platform

Windows (MinGW)

Terminal Emulator

Git Bash

Helix Version

helix 23.05 (7f5940b)

@tgross35 tgross35 added the C-bug Category: This is a bug label Aug 16, 2023
@pascalkuthe
Copy link
Member

C:\Users\MyUser\AppData\Roaming\helix\runtime is the windows equivalent of ~/.config/helix on unix. Windows does usually not have a convention to place files in the home directory the way that Unix does (specifically they don't follow XDG). Somtimes these directories exist/are used anyway for programs with unix emulation. Adding that kind of behavior to helix additionally, see #6747

The second path is indeed where the binary is installed but that's on purpose and also the case on other operating systems..

Closing as this is the intended behavior and the only changes we would be willing to considers are already tracked in #6747.

@pascalkuthe pascalkuthe closed this as not planned Won't fix, can't repro, duplicate, stale Aug 16, 2023
@tgross35
Copy link
Contributor Author

Thank you for the clarification on binary location, and for pointing me to the other issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants