Skip to content

Commit 9e65297

Browse files
committed
🐛 Do NOT use -es on Windows
We found that using `-es` on Windows did not work well, so we decided not to specify it. This caused unnecessary warnings to be displayed, but we decided to tolerate it because it is better than not working.
1 parent cea6b6b commit 9e65297

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

denops/guise/main.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,21 @@ export async function main(denops: Denops): Promise<void> {
4444
"-N", // No compatible
4545
"-n", // No swapfile
4646
"-X", // Do not try connecting to the X server
47-
"-es", // Ex batch mode
47+
// Ex mode
48+
// On Windows, when `-e` is specified, calls via non-terminal (e.g. job or Deno)
49+
// hang for some reason.
50+
// However, if you do not use `-e`, you will get the following warnings
51+
//
52+
// Vim: Warning: Output is not to a terminal
53+
// Vim: Warning: Input is not from a terminal
54+
//
55+
// For now, we don't know how to deal with these warnings, so we are treating
56+
// them as specifications.
57+
...(denops.meta.platform === "windows" ? [] : ["-e"]),
58+
// Silent batch mode
59+
// On Windows, if `-s` is specified, for some reason, it immediately terminates
60+
// and does not function properly.
61+
...(denops.meta.platform === "windows" ? [] : ["-s"]),
4862
];
4963
} else {
5064
args = [

0 commit comments

Comments
 (0)