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

^M at the end of lines when formatting with coc-nvim #120

Open
jmwatte opened this issue Jan 16, 2021 · 1 comment
Open

^M at the end of lines when formatting with coc-nvim #120

jmwatte opened this issue Jan 16, 2021 · 1 comment

Comments

@jmwatte
Copy link

jmwatte commented Jan 16, 2021

System Details

  • Vim or NeoVim?:NeoVim
  • Version of Vim (run vim --version) or NeoVim (run nvim --version):0.4.4
  • Version of coc-powershell (in Vim or NeoVim: :CocList extensions coc-powershell):0.1.14
  • Operating System:windows 10
  • PowerShell version (in PowerShell: $PSVersionTable):7.1.1

Issue Description

I am experiencing a problem with...
formatting ps1 files

xmap <leader>f <Plug>(coc-format-selected) nmap <leader>f <Plug>(coc-format-selected)
formats the selected file but results in ^M at the end of every line.
I have a .editconfig file and tested it with opening and loading files with all 3 possible lineendings. Checked the line endings.
But no matter what I get the ^M after formatting

Expected Behaviour

Formatted without the ^M

-- Description of what should be happening --

Actual Behaviour

-- Description of what actually happens --

@corbob
Copy link
Member

corbob commented Oct 24, 2021

@jmwatte I'm unable to reproduce this on NeoVim 0.5.1 and PowerShell 7.1.5. Could you confirm if this is still an issue? The formatting is performed by PowerShell Editor Services so it's possible that this was an issue there that is no longer present.

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