Skip to content

[Bug] Python files in home directories open extremely slowly #17142

@tofuya

Description

@tofuya

[Bug] Python files in home directories open extremely slowly

Reproduction guide

  1. Ensure your home directory is recognized as a Projectile project by creating a project file marker under ~
    (e.g., .git or WORKSPACE):

    mkdir ~/.git
  2. Start Emacs in daemon mode:

    emacs --daemon
  3. Run:

    emacsclient -nw /tmp/test.py

    → File opens in 3–4 seconds.

  4. Run:

    emacsclient -nw ~/test.py

    → File takes 3–4 minutes to open.


Observed behaviour

  • The slowness occurs with both new and existing .py files.
  • Opening .py files inside a directory within the home directory takes 3–4 minutes.
  • Opening the same file under /tmp/ is noticeably faster (3–4 seconds).
  • Reverting Spacemacs to commit 454593c resolves the slowness.
  • Removing the Python layer also resolves the slowness.

Expected behaviour

  • .py files should open quickly, regardless of their directory location.

System Info 💻

  • OS: darwin
  • Emacs: 30.1
  • Spacemacs: 0.999.0
  • Spacemacs branch: develop (rev. 899032e)
  • Graphic display: nil
  • Running in daemon: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(python)
  • System configuration features: ACL GMP GNUTLS LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE PDUMPER SQLITE3 THREADS TREE_SITTER XIM ZLIB

Additional notes


Backtrace

Not available (no error, just extreme slowness).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions