clojure-lsp / clojure-lsp

Clojure & ClojureScript Language Server (LSP) implementation
https://clojure-lsp.io
MIT License
1.17k stars 153 forks source link

Classpath lookup failure error with Calva on MS-Windows #1132

Closed ikappaki closed 2 years ago

ikappaki commented 2 years ago

Describe the bug Calva throws an error message when loading Clojure-lsp up on MS-Windows:

Classpath lookup failed when running `push -NoProfile -Command ...`

To Reproduce On a stock Windows environment that comes with standard PowerShell 5.1 version and does not have any newer PowerShell version installed.

Steps to reproduce the behavior:

  1. Open Calva in Visual Studio Code.
  2. Open a workspace with an empty deps.edn file (or any other type of Clojure project file).
  3. The above error will popup in Visual Studio Code.

Expected behavior There should be no error message popping up.

User details (please complete the following information):

Additional context There has been a recent change with #976 that appears to have forced all external program invocations on MS-Windows to go via the pwsh command which is only available with the latest version of PowerShell, but does not come with any MS-Windows version preinstalled.

The error is thrown when trying to scan the class path.

This is likely to occur with any editor, but I do not know how to run clojure-lsp standalone.

PR to follow.

ericdallo commented 2 years ago

Thanks @ikappaki, I'm no windows users but if you know a better way to handle that the PR is welcome