coc-powershell
coc-powershell copied to clipboard
Linting not working
System Details
- Vim or NeoVim?: Neovim
- Version of Vim (run
vim --version) or NeoVim (runnvim --version): 0.7.2 - Version of
coc-powershell(in Vim or NeoVim::CocList extensions coc-powershell): 0.1.4 - Operating System: Windows 10
- PowerShell version (in PowerShell:
$PSVersionTable): 7.2.6
Issue Description
I am experiencing a problem with...
Linting/PSScriptAnalyzer
Expected Behaviour
If I'm missing a closing '}' or using an alias 'Where', instead of 'Where-Object', I should see Error and Warning notices.
Actual Behaviour
Nothing.
Running Invoke-ScriptAnalyzer against a ps1 file works, and the other coc-powershell functionality is working. Completion, Integrated Console, etc, all appear to be working.
Note: I've read Issue #99 and can confirm that the troubleshooting steps there did not help.
What version of coc.nvim are you running?
I've been running into a similar issue where none of the linting UI elements are working. I ran :CocInfo, and it showed that a bunch of functions that coc-powershell uses from coc.nvim to display UI elements were deprecated (e.g., workspace.createStatusBarItem, workspace.createOutputChannel, and workspace.createTerminal).
Looking back at the coc.nvim release changelogs, it looks like coc-powershell has not kept up and has not changed its calls from the workspace namespace to the window namespace.
I've gotten decent mileage from downgrading my coc.nvim install to v0.0.80.
I'm not sure this is the problem you're having though.
This does work thanks. I'll note that I've started using native lsp (with lunarvim for easy testing/setup). Both Powershell and C# dev experiences are better supported than what's currently available here. I may end up making the switch permanently, since those coc plugins seem abandoned, and I don't have the skill or time to contribute to them in a meaningful way.