Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linting not working #159

Open
lc9er opened this issue Aug 19, 2022 · 2 comments
Open

Linting not working #159

lc9er opened this issue Aug 19, 2022 · 2 comments

Comments

@lc9er
Copy link
Contributor

lc9er commented Aug 19, 2022

System Details

  • Vim or NeoVim?: Neovim
  • Version of Vim (run vim --version) or NeoVim (run nvim --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.

@csc027
Copy link

csc027 commented Aug 30, 2022

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.

@lc9er
Copy link
Contributor Author

lc9er commented Aug 31, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants