diff options
author | pommicket <pommicket@gmail.com> | 2023-01-09 13:51:46 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-09 13:51:46 -0500 |
commit | 2d9c5407fdc923a2e8c1fe39213b09c769a74e2e (patch) | |
tree | f33ea9a53be292f2f4e67994a0a30d2e489bba31 /lsp.c | |
parent | a7d4e507d07919fba43ba14e9eb4fb62de2691f9 (diff) |
fix some windows problems
Diffstat (limited to 'lsp.c')
-rw-r--r-- | lsp.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -538,7 +538,13 @@ LSP *lsp_create(const char *root_dir, const char *command, const char *configura lsp->process = process_run_ex(command, &settings); const char *error = process_geterr(lsp->process); if (error) { - lsp_set_error(lsp, "Couldn't start LSP server: %s", error); + // don't show an error box if the server is not installed + #if _WIN32 + if (strstr(error, " 2)")) { + if (lsp->log) fprintf(lsp->log, "Couldn't start LSP server %s: file not found.", command); + } else + #endif + lsp_set_error(lsp, "Couldn't start LSP server: %s", error); lsp->exited = true; process_kill(&lsp->process); } else { |