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
{{ message }}
Repository navigation
config nu fails on windows "External command failed" #6646
OK, can reproduce this under a certain condition. This is the result of it looking for a text editor specified either via the config.buffer_editor setting or the EDITOR or VISUAL environment variables and failing to locate that in the PATH.
The error message is absolutely misleading and should not highlight nu and instead report details about the editor we search for.
Maybe we should just check if notepad exists on windows and fail with an error message that talks about setting the proper env var. I'm not personally interested in jumping though windows file association hoops in the hope to find something associated with .nu.
I just wonder if looking up what is associated with .txt is worth the hassle. I may accept a PR to do such a thing though as settings those env vars is not a normal Windows thing.
Activity
sholderbach commentedon Sep 30, 2022
OK, can reproduce this under a certain condition. This is the result of it looking for a text editor specified either via the
config.buffer_editorsetting or theEDITORorVISUALenvironment variables and failing to locate that in the PATH.The error message is absolutely misleading and should not highlight
nuand instead report details about the editor we search for.fdncred commentedon Sep 30, 2022
maybe we should default to
notepadon windows. I haven't looked but maybe it defaults tonanoeven on windows?sholderbach commentedon Sep 30, 2022
I think we do already, at least on the Rust side. Don't know, if our overly eager default config overwrites this.
NogrTL commentedon Sep 30, 2022
I know the answer...In new version's of Windows 10, you can remove it(Notepad). I guess that's the problem
fdncred commentedon Sep 30, 2022
oh ya, good point @NogrTL. Is there another editor that we can rely on to be on windows?
NogrTL commentedon Sep 30, 2022
I would suggest, to dig into file-types and protocols handlers.
It's more of a GUI approach...But it cat fall back to select any program you want to open file
fdncred commentedon Sep 30, 2022
Maybe we should just check if notepad exists on windows and fail with an error message that talks about setting the proper env var. I'm not personally interested in jumping though windows file association hoops in the hope to find something associated with
.nu.I just wonder if looking up what is associated with
.txtis worth the hassle. I may accept a PR to do such a thing though as settings those env vars is not a normal Windows thing.sholderbach commentedon Oct 29, 2022
Error message fixed by #6730