Garbage output when using helix as the git editor on Windows
Summary
When helix is set as the editor for git, helix will sometimes spit out garbage output when running a git command that opens the editor.
I use helix on windows installed via scoop and on arch linux installed via pacman, the problem only happens on windows (in both powershell and cmd).
When the bug happens, any key input will cause helix to print more output. The inputs do seem to work correctly though, I can press :q to exit.
Screenshot of the output:

Reproduction Steps
I tried this:
-
git config --global core.editor "hx -vvv" -
git config --global -e
I expected this to happen:
The git config opens in helix.
Instead, this happened:
Helix opens and prints lots of garbage output.
Helix log
C:\Users\finnp\AppData\Local\helix\helix.log
2022-06-16T12:47:18.912 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-06-16T13:07:45.842 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitconfig` { LSP not defined }
2022-06-16T13:51:08.882 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-16T15:25:35.123 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-16T15:40:19.130 helix_view::editor [ERROR] Failed to initialize the LSP for `source.csharp` { cannot find binary path }
2022-06-16T15:40:44.107 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-16T16:50:18.260 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-16T17:02:51.092 helix_view::editor [ERROR] Failed to initialize the LSP for `source.rust` { cannot find binary path }
2022-06-16T17:07:21.653 helix_view::editor [ERROR] Failed to initialize the LSP for `source.rust` { cannot find binary path }
2022-06-16T17:13:23.588 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-16T17:17:18.376 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-16T17:17:43.690 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-16T17:17:47.727 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-16T17:18:46.306 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-20T11:34:21.897 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-20T11:52:09.158 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-20T11:56:40.882 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-20T12:24:31.135 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-20T12:25:02.766 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-20T12:25:06.525 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-20T12:25:39.244 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-20T12:25:47.151 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-20T12:25:54.891 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-20T12:26:29.135 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-20T12:26:56.710 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-20T12:30:01.703 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-20T12:33:48.610 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-20T12:54:13.421 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-20T12:54:19.137 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-20T12:54:29.224 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-23T12:38:15.359 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-06-23T13:24:19.528 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-23T13:24:43.351 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-23T13:25:10.253 helix_view::editor [ERROR] Failed to initialize the LSP for `source.csharp` { cannot find binary path }
2022-06-23T13:25:38.078 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-23T13:25:47.147 helix_view::editor [ERROR] Failed to initialize the LSP for `source.csharp` { cannot find binary path }
2022-06-23T13:26:17.201 helix_view::editor [ERROR] Failed to initialize the LSP for `source.csharp` { cannot find binary path }
2022-06-23T13:26:28.331 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-23T13:28:25.500 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-23T13:28:33.446 helix_view::editor [ERROR] Failed to initialize the LSP for `source.csharp` { cannot find binary path }
2022-06-23T13:29:12.391 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-23T13:29:22.907 helix_view::editor [ERROR] Failed to initialize the LSP for `source.csharp` { cannot find binary path }
2022-06-23T13:30:09.896 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-24T00:00:51.345 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-06-24T11:00:53.186 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-06-24T12:34:15.943 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-24T12:45:38.844 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-24T15:28:22.415 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-24T15:28:39.121 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-24T15:28:51.216 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-24T15:31:26.306 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-24T16:08:17.283 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-24T16:09:23.441 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-24T16:09:31.620 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-24T16:09:53.041 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-24T16:12:43.849 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-24T16:12:51.493 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-24T16:13:35.608 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T12:04:33.359 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-06-27T12:13:06.272 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-06-27T13:22:47.455 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T13:24:39.142 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T13:30:47.343 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T13:41:53.596 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T13:42:33.281 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T13:43:01.684 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T13:44:56.740 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-27T13:48:05.080 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T13:48:08.429 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-27T14:06:37.733 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T14:09:25.121 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T14:09:28.867 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-27T14:09:48.425 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T14:11:31.879 helix_view::editor [ERROR] Failed to initialize the LSP for `source.python` { cannot find binary path }
2022-06-27T14:14:20.823 helix_lsp::transport [ERROR] err <- "2022-06-27 14:14:20,823 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'autopep8': No module named 'pycodestyle'\r\n"
2022-06-27T14:14:20.840 helix_lsp::transport [ERROR] err <- "2022-06-27 14:14:20,840 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pycodestyle': No module named 'pycodestyle'\r\n"
2022-06-27T14:14:20.841 helix_lsp::transport [ERROR] err <- "2022-06-27 14:14:20,841 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pydocstyle': No module named 'pydocstyle'\r\n"
2022-06-27T14:14:20.843 helix_lsp::transport [ERROR] err <- "2022-06-27 14:14:20,842 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pyflakes': No module named 'pyflakes'\r\n"
2022-06-27T14:14:20.849 helix_lsp::transport [ERROR] err <- "2022-06-27 14:14:20,848 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'rope_completion': No module named 'rope'\r\n"
2022-06-27T14:14:20.850 helix_lsp::transport [ERROR] err <- "2022-06-27 14:14:20,850 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'rope_rename': No module named 'rope'\r\n"
2022-06-27T14:14:20.851 helix_lsp::transport [ERROR] err <- "2022-06-27 14:14:20,851 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'yapf': No module named 'yapf'\r\n"
2022-06-27T14:14:34.312 helix_lsp::transport [ERROR] err <- "2022-06-27 14:14:34,311 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'autopep8': No module named 'pycodestyle'\r\n"
2022-06-27T14:14:34.327 helix_lsp::transport [ERROR] err <- "2022-06-27 14:14:34,326 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pycodestyle': No module named 'pycodestyle'\r\n"
2022-06-27T14:14:34.329 helix_lsp::transport [ERROR] err <- "2022-06-27 14:14:34,328 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pydocstyle': No module named 'pydocstyle'\r\n"
2022-06-27T14:14:34.330 helix_lsp::transport [ERROR] err <- "2022-06-27 14:14:34,329 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pyflakes': No module named 'pyflakes'\r\n"
2022-06-27T14:14:34.334 helix_lsp::transport [ERROR] err <- "2022-06-27 14:14:34,333 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'rope_completion': No module named 'rope'\r\n"
2022-06-27T14:14:34.336 helix_lsp::transport [ERROR] err <- "2022-06-27 14:14:34,335 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'rope_rename': No module named 'rope'\r\n"
2022-06-27T14:14:34.337 helix_lsp::transport [ERROR] err <- "2022-06-27 14:14:34,336 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'yapf': No module named 'yapf'\r\n"
2022-06-27T14:23:23.188 helix_lsp::transport [ERROR] err <- "2022-06-27 14:23:23,188 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'autopep8': No module named 'pycodestyle'\r\n"
2022-06-27T14:23:23.204 helix_lsp::transport [ERROR] err <- "2022-06-27 14:23:23,204 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pycodestyle': No module named 'pycodestyle'\r\n"
2022-06-27T14:23:23.205 helix_lsp::transport [ERROR] err <- "2022-06-27 14:23:23,205 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pydocstyle': No module named 'pydocstyle'\r\n"
2022-06-27T14:23:23.207 helix_lsp::transport [ERROR] err <- "2022-06-27 14:23:23,206 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pyflakes': No module named 'pyflakes'\r\n"
2022-06-27T14:23:23.212 helix_lsp::transport [ERROR] err <- "2022-06-27 14:23:23,211 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'rope_completion': No module named 'rope'\r\n"
2022-06-27T14:23:23.213 helix_lsp::transport [ERROR] err <- "2022-06-27 14:23:23,213 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'rope_rename': No module named 'rope'\r\n"
2022-06-27T14:23:23.214 helix_lsp::transport [ERROR] err <- "2022-06-27 14:23:23,214 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'yapf': No module named 'yapf'\r\n"
2022-06-27T14:34:09.431 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T15:15:30.251 helix_lsp::transport [ERROR] err <- "2022-06-27 15:15:30,250 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'autopep8': No module named 'pycodestyle'\r\n"
2022-06-27T15:15:30.266 helix_lsp::transport [ERROR] err <- "2022-06-27 15:15:30,266 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pycodestyle': No module named 'pycodestyle'\r\n"
2022-06-27T15:15:30.268 helix_lsp::transport [ERROR] err <- "2022-06-27 15:15:30,267 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pydocstyle': No module named 'pydocstyle'\r\n"
2022-06-27T15:15:30.269 helix_lsp::transport [ERROR] err <- "2022-06-27 15:15:30,268 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pyflakes': No module named 'pyflakes'\r\n"
2022-06-27T15:15:30.273 helix_lsp::transport [ERROR] err <- "2022-06-27 15:15:30,273 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'rope_completion': No module named 'rope'\r\n"
2022-06-27T15:15:30.275 helix_lsp::transport [ERROR] err <- "2022-06-27 15:15:30,274 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'rope_rename': No module named 'rope'\r\n"
2022-06-27T15:15:30.276 helix_lsp::transport [ERROR] err <- "2022-06-27 15:15:30,275 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'yapf': No module named 'yapf'\r\n"
2022-06-27T15:17:34.260 helix_lsp::transport [ERROR] err <- "2022-06-27 15:17:34,259 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'autopep8': No module named 'pycodestyle'\r\n"
2022-06-27T15:17:34.275 helix_lsp::transport [ERROR] err <- "2022-06-27 15:17:34,274 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pycodestyle': No module named 'pycodestyle'\r\n"
2022-06-27T15:17:34.276 helix_lsp::transport [ERROR] err <- "2022-06-27 15:17:34,275 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pydocstyle': No module named 'pydocstyle'\r\n"
2022-06-27T15:17:34.277 helix_lsp::transport [ERROR] err <- "2022-06-27 15:17:34,276 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pyflakes': No module named 'pyflakes'\r\n"
2022-06-27T15:17:34.282 helix_lsp::transport [ERROR] err <- "2022-06-27 15:17:34,281 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'rope_completion': No module named 'rope'\r\n"
2022-06-27T15:17:34.283 helix_lsp::transport [ERROR] err <- "2022-06-27 15:17:34,282 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'rope_rename': No module named 'rope'\r\n"
2022-06-27T15:17:34.284 helix_lsp::transport [ERROR] err <- "2022-06-27 15:17:34,283 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'yapf': No module named 'yapf'\r\n"
2022-06-27T15:20:13.659 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T15:20:25.325 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-27T15:20:30.874 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T15:22:57.732 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T15:23:43.355 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-27T15:47:34.530 helix_lsp::transport [ERROR] err <- "2022-06-27 15:47:34,529 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'autopep8': No module named 'pycodestyle'\r\n"
2022-06-27T15:47:34.544 helix_lsp::transport [ERROR] err <- "2022-06-27 15:47:34,544 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pycodestyle': No module named 'pycodestyle'\r\n"
2022-06-27T15:47:34.545 helix_lsp::transport [ERROR] err <- "2022-06-27 15:47:34,545 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pydocstyle': No module named 'pydocstyle'\r\n"
2022-06-27T15:47:34.547 helix_lsp::transport [ERROR] err <- "2022-06-27 15:47:34,546 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'pyflakes': No module named 'pyflakes'\r\n"
2022-06-27T15:47:34.551 helix_lsp::transport [ERROR] err <- "2022-06-27 15:47:34,551 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'rope_completion': No module named 'rope'\r\n"
2022-06-27T15:47:34.552 helix_lsp::transport [ERROR] err <- "2022-06-27 15:47:34,552 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'rope_rename': No module named 'rope'\r\n"
2022-06-27T15:47:34.554 helix_lsp::transport [ERROR] err <- "2022-06-27 15:47:34,553 AUS Eastern Standard Time - WARNING - pylsp.config.config - Failed to load pylsp entry point 'yapf': No module named 'yapf'\r\n"
2022-06-27T15:48:25.124 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T15:48:49.046 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-27T17:16:09.415 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-06-27T17:16:13.425 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-27T17:17:27.838 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitrebase` { LSP not defined }
2022-06-30T13:26:48.968 helix_view::editor [ERROR] Failed to initialize the LSP for `source.md` { LSP not defined }
2022-06-30T14:04:46.054 helix_view::editor [ERROR] Failed to initialize the LSP for `source.diff` { LSP not defined }
2022-06-30T14:05:06.824 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitconfig` { LSP not defined }
2022-06-30T14:05:15.974 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitconfig` { LSP not defined }
2022-07-04T12:18:40.489 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-07-04T12:18:56.486 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-07-04T12:24:57.568 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitconfig` { LSP not defined }
2022-07-04T12:32:25.534 helix_loader [DEBUG] Located configuration folders: ["C:\\projects\\finn\\dots\\.helix"]
2022-07-04T12:33:11.032 helix_loader [DEBUG] Located configuration folders: ["C:\\projects\\finn\\dots\\.helix"]
2022-07-04T12:33:11.039 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitconfig` { LSP not defined }
2022-07-04T12:36:27.658 helix_loader [DEBUG] Located configuration folders: []
2022-07-04T12:36:27.665 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitconfig` { LSP not defined }
2022-07-04T12:39:41.693 helix_loader [DEBUG] Located configuration folders: []
2022-07-04T12:39:41.701 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitconfig` { LSP not defined }
2022-07-04T12:44:20.450 helix_loader [DEBUG] Located configuration folders: []
2022-07-04T12:44:20.457 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitconfig` { LSP not defined }
2022-07-04T12:49:49.557 helix_loader [DEBUG] Located configuration folders: []
2022-07-04T12:49:49.564 helix_view::editor [ERROR] Failed to initialize the LSP for `source.gitconfig` { LSP not defined }
Platform
Windows
Terminal Emulator
cmd or windows-terminal
Helix Version
helix 22.05 (27609f50)
Cmd works fine for me, but powershell has the same issue. ~I think it has a similar cause as #2708~.
Try using this as your git's core.editor instead: winpty hx. ~That should fix it~.
Edit: Well, it does fix it but helix will not run with 24 bit colors in that case which makes some text unreadable for me. You could try using a different terminal emulator, though. After a quick test, both Wezterm and ConEmu seem work fine with powershell for me.
I'm able to reproduce this (using Windows Terminal). I compared using hx normally to open a file vs. what git launches to see if I could reproduce the environment that creates this but was unfortunately not able to. Some things I did note however
- The process launched by git includes these environment variable settings which launching
hxnormally does not
COLORTERM=truecolor
TERM=xterm-256color
- The process launched by git first launches a
sh.exeto launch thehx.exeprocess (it's packaged with git on Windows).
I tried setting those environment variables in my terminal session then using hx.exe to open a file to see if that confused it but the file opened normally - I did confirm that the resulting process contained those environment variables set. I've definitely seen those environment variables cause confusion with TUI's on windows in the past so I thought for sure I found the cause.
i am on windows, and am facing similar problem of hx outputting giberish when launched with wezterm,
but 'ts working fine on other terminal among alacritty , conhost (that's cmd for many as said above), mintty -o ConPTY=on
But the point also being, the person at #2914 reports that hx is working for them in wezterm
Filed at: https://github.com/wez/wezterm/issues/2294
https://user-images.githubusercontent.com/19423063/180470975-a1c443d4-6d29-4ba5-a397-5a3445e90d7d.mp4
Was this fixed in 22.08? I've been using helix in the same setup that originally caused problems for the past few days and the bug has not occurred.
i filed my detailed observations regarding different combinations of launching hx, with different shells and terminals, that may help:
https://github.com/wez/wezterm/issues/2294#issuecomment-1207148452
update 2023-01-25: sorry, wrong conclusion
update: i am now using `wezterm 20220807-113146-c2fee766` and this bug is no longer reproduced there with same `helix 22.05 (27609f50)` as before.... just for records, this was getting reproduced on `wezterm 20220722-074625-ca8bdb83`
with same helix 22.05 (27609f50) launched from bash shell (via msys2):
- This is now not reproduced on the terminal
wezterm 20220807-113146-c2fee766 - The latest known version which reproduced the bug is:
wezterm 20220722-074625-ca8bdb83
hey @FinnPerry and others; if you are not reproducing this issue any more, then i guess this issue can be closed?
Yep it's been fixed for me since my last comment. Thanks for your testing!
i just tried downgrading the wezterm to wezterm 20220624-141144-bd1b7c5d and running helix 22.05 (27609f50) there still worked fine.
- Three parameters: 1. application (helix) 2. Terminal (wezterm) 3. Environment (shell)
Now, that the first two parameters have been reset to original versions, only thing remains is the environment frrom the shell -
bash
Following is just speculation, i have filed an issue with bash, hopefully something concrete can be found there:
So, new suspicion:
-
bashand related environment is the only thing common in all these issues & across all the terminals (except msys2's own mintty) - that's why launching it viagitwas causing problem as gfw[^gfw] uses msys2-bash-&-environment too. -
And that also explains the mysterious resolving of the issue. For me, i updated my
msys2- for others it might be that they updated their gfw. -
~So, the version of
bashi was using with bug was5.1.8, and currently with no bug i am onGNU bash, version 5.2.9(1)-release (x86_64-pc-msys)~
[^gfw]: git for windows
self hiding as outdated
hey, if any of you want to find out what was cause of the bug and what fixed it, here's one suspect: https://github.com/git-for-windows/msys2-runtime/pull/45
would anyone want to try and share their results?