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

Yapf seems not work very well #5533

Closed
HarumiKiyama opened this issue Mar 18, 2016 · 3 comments
Closed

Yapf seems not work very well #5533

HarumiKiyama opened this issue Mar 18, 2016 · 3 comments

Comments

@HarumiKiyama
Copy link

Description

I use the python layer and apply the function py-yapf-buffer twice, it works but append a ^M marker at the end of every line. And after I save the buffer, the ^M markers disappear and insert a blank line beneath every line.

System Info

  • OS: windows-nt
  • Emacs: 25.0.50.1
  • Spacemacs: 0.105.14
  • Spacemacs branch: nil (rev. 198436a)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(auto-completion github better-defaults emacs-lisp python git markdown org
                 (shell :variables shell-default-height 30 shell-default-position 'bottom)
                 syntax-checking html version-control erc
                 (elfeed :variables rmh-elfeed-org-files
                         (list "~/.emacs.d/private/elfeed1.org")))
@cpaulik
Copy link
Contributor

cpaulik commented Mar 18, 2016

I would be surprised if this is a Spacemacs problem. Have you tried what happens when you use yapf in the command line? This seems to be a Windows only problem since ^M are the Windows line endings.

@HarumiKiyama
Copy link
Author

Yes, you are right. Using yapf in command line make things done, there are no ^Mmakers any more.And I make a mistake in the issue description, I actually apply py-yapf-buffer twice.In the first time it works very well,but in the second time, ^M makers appear

@emberian
Copy link

WIth yapfify-buffer, I cannot reproduce on Linux.

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

No branches or pull requests

4 participants