You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows allows a user to change the location of their roaming profile folder (%AppData%) on the installation. This allows it to be moved if the profile is on a small disk, for example, or if they wish to store it on a network drive. However, Helix appears to have hardcoded the assumption that the folder will always be located at ~\AppData\Roaming, which is an incorrect assumption.
Reproduction Steps
Find your AppData\Roaming folder on Windows
Right-click on the folder, and click Properties. Go to Location and click Move, then select a new location.
Type %AppData% into Windows Explorer to confirm that the Roaming folder is no longer located in %UserProfile%\AppData
From a new terminal window, open hx and execute :config-open
Helix should open the configuration file at %AppData%\helix\config.toml.
Instead, Helix has hardcoded the location of the user's roaming profile as ~\AppData\Roaming, which is incorrect. This leads to it attempting to open %UserProfile%\AppData\Roaming\helix\config.toml as though the roaming profile location was left unchanged.
Helix log
The log file does not contain any applicable statements, but it has been provided in full anyway.
%LocalAppData%\helix\helix.log
1 │ 2023-05-19T19:37:44.756 helix_vcs [ERROR] Error {
2 │ context: "failed to open git repo",
3 │ source: Discover(
4 │ NoGitRepository {
5 │ path: "C:\\Users\\***\\AppData\\Roaming\\helix",
6 │ },
7 │ ),
8 │ }
9 │ 2023-05-19T19:37:44.757 helix_vcs [ERROR] failed to open diff base for C:\Users\***\AppData\Roaming\helix\config.toml
10 │ 2023-05-19T19:37:44.758 helix_vcs [ERROR] Error {
11 │ context: "failed to open git repo",
12 │ source: Discover(
13 │ NoGitRepository {
14 │ path: "C:\\Users\\***\\AppData\\Roaming\\helix",
15 │ },
16 │ ),
17 │ }
18 │ 2023-05-19T19:37:44.758 helix_vcs [ERROR] failed to obtain current head name for C:\Users\***\AppData\Roaming\helix\config.toml
19 │ 2023-05-19T19:37:44.793 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
Themayu
changed the title
Helix does not respect configured Roaming location on Windows.
Helix does not respect configured roaming profile location on Windows.
May 19, 2023
winget update --id Helix.Helix currently says that there is no applicable update for the package. winget search Helix.Helix says that the latest version is 23.03.
Summary
Windows allows a user to change the location of their roaming profile folder (
%AppData%
) on the installation. This allows it to be moved if the profile is on a small disk, for example, or if they wish to store it on a network drive. However, Helix appears to have hardcoded the assumption that the folder will always be located at~\AppData\Roaming
, which is an incorrect assumption.Reproduction Steps
%AppData%
into Windows Explorer to confirm that the Roaming folder is no longer located in%UserProfile%\AppData
hx
and execute:config-open
Helix should open the configuration file at
%AppData%\helix\config.toml
.Instead, Helix has hardcoded the location of the user's roaming profile as
~\AppData\Roaming
, which is incorrect. This leads to it attempting to open%UserProfile%\AppData\Roaming\helix\config.toml
as though the roaming profile location was left unchanged.Helix log
The log file does not contain any applicable statements, but it has been provided in full anyway.
%LocalAppData%\helix\helix.log
Platform
Windows
Terminal Emulator
N/A
Helix Version
helix 23.03 (3cf0372)
The text was updated successfully, but these errors were encountered: