coc-extensions / coc-powershell

PowerShellEditorService integration for coc.vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integrated Console fails to load

lc9er opened this issue · comments

System Details

  • Vim or NeoVim?: Neovim
  • Version of Vim (run vim --version) or NeoVim (run nvim --version): 0.6.1
  • Version of coc-powershell (in Vim or NeoVim: :CocList extensions coc-powershell): 0.1.4
  • Operating System: Windows
  • PowerShell version (in PowerShell: $PSVersionTable): 7.2.1

Issue Description

When opening a ps1 file, the Powershell integrated console begins to load, then fails with the error:

[coc.nvim] Error on activate extension coc-powershell: vscode.workspace.onDidCloseTerminal is not a function

Expected Behaviour

The Powershell Integrated Console loads. I can send commands to the terminal for execution.

Actual Behaviour

"=====> Powershell Integrated Console <=====" is displayed in a split, the error message is displayed, and then the integrated console never finishes loading. I'm unable to send commands to the integrated console. If I try, I get this error:

[coc.nvim] Error on "runCommand": Command: powershell.evaluateLine not found

Got this issue too with Neovim on Windows 11.

However this is not an issue with the integrated console, it loads fine on my end. This is an issue with coc-powershell itself which doesn't run at all, as the process execution fails. The whole program is unusable (on Windows at least) until this is fixed.