purcell / emacs.d

An Emacs configuration bundle with batteries included
BSD 2-Clause "Simplified" License
6.85k stars 2.05k forks source link

projectile configuration make projectile's candidate display error in emacs 29 #837

Closed knysfh closed 1 year ago

knysfh commented 1 year ago

Hello!Thanks for you contribution.

The candidate content is displayed incorrectly when i use the projectile-find-file function in my project file.If i comment the following content in init-projectile.el, it can be displayed normally.

  ;; (when (executable-find "rg")
  ;;   (setq-default projectile-generic-command "rg --files --hidden"))

before comment image

after image

purcell commented 1 year ago

Odd, I can't reproduce this. Are you on Windows perhaps? It looks like the line endings in the rg output are unexpected.

knysfh commented 1 year ago

I use arch linux under pure wayland, and I tried emacs28 but the problem persists.I'm not sure if it's a system problem.

Expected behavior

Show project files when use C-c p f

Current behavior

All filenames incorrectly displayed on one line. image

Steps to reproduce

  1. clone this repositorie
  2. create the following directory
    ├─example
    │  ├─src
    │  │  ├─main.py
    │  ├─setup.py
    │  ├─.projectile
  3. start emacs and use C-x C-f to open setup.py, then use C-c p f to search for project files.

    System Information

    os: Arch Linux x86_64 kernel: 6.1.12-arch1-1 wm: sway rg: ripgrep 13.0.0 emacs: 28.2/29.0

purcell commented 1 year ago

Thanks, those reproduction steps were perfect. I've committed a fix now.