-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Closed
Description
[Bug] Python files in home directories open extremely slowly
Reproduction guide
-
Ensure your home directory is recognized as a Projectile project by creating a project file marker under
~
(e.g.,.gitorWORKSPACE):mkdir ~/.git -
Start Emacs in daemon mode:
emacs --daemon
-
Run:
emacsclient -nw /tmp/test.py
→ File opens in 3–4 seconds.
-
Run:
emacsclient -nw ~/test.py→ File takes 3–4 minutes to open.
Observed behaviour
- The slowness occurs with both new and existing
.pyfiles. - Opening
.pyfiles 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
.pyfiles 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
- The slowness occurs during the initialization of Python-related functionality.
- Related commit: 6c95fea
- Related issue: #17141
- Related issue: Home directory incorrectly detected as Bazel project when ~/workspace directory exists on macOS bbatsov/projectile#1961
Backtrace
Not available (no error, just extreme slowness).
Metadata
Metadata
Assignees
Labels
No labels