wingyplus / zed-powershell

PowerShell extension for Zed
Apache License 2.0
4 stars 1 forks source link

PowerShell LSP can't be found #6

Open robertsweetman opened 3 weeks ago

robertsweetman commented 3 weeks ago

Can't be started, MacOS sonoma 14.7.1, Zed 0.160.7

2024-11-08T10:30:10.503968Z [INFO] attempting to start language server "powershell-es", path: "/Users/robert.sweetman/Documents/GitHub/<redacted>", id: 19
2024-11-08T10:30:10.514065Z [INFO] starting language server process. binary path: "/Users/robert.sweetman/PowerShellEditorServices", working directory: "/Users/robert.sweetman/Documents/GitHub/<redacted>", args: []
2024-11-08T10:30:10.514646Z [ERROR] Failed to start language server "powershell-es": failed to spawn command. path: "/Users/robert.sweetman/PowerShellEditorServices", working directory: "/Users/robert.sweetman/Documents/GitHub/<redacted>", args: []
2024-11-08T10:30:10.514716Z [ERROR] server stderr: ""

settings.json

  "lsp": {
    "powershell-es": {
      "binary": {
        "path": "/Users/robert.sweetman/PowerShellEditorServices"
      }
    }
  },

I've downloaded PowerShellEditorServices and un-zipped it manually. It's not really clear to me what path to use since there's a whole bunch of folders under the top level one. I was following these instructions which seem fairly obvious but...

https://onprem.wtf/post/zed-pwsh/

Anything I can do to help let me know.

robertsweetman commented 3 weeks ago

Okay, is this basically the issue then? (your discussion comment) https://github.com/zed-industries/zed/discussions/14952