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

Renders emacs unusable on empty directories (wrong-type-argument wholenump nil) #1905

Open
taoufik07 opened this issue Sep 27, 2024 · 2 comments

Comments

@taoufik07
Copy link

Expected behavior

Emacs should start normally without any blocking errors.

Actual behavior

When opening Emacs in a newly created directory, I encounter (wrong-type-argument wholenump nil) on initialization and with every key binding, which renders the application unusable.

Works fine when Initializing an empty repo .git.

Steps to reproduce the problem

  1. Create new dir mkdir poc && cd $_
  2. Open emacs emacs -nw
(use-package 
  projectile
  :ensure t
  :init
  (projectile-mode)
  :bind ("M-p" . 'projectile-command-map)
  :custom ((setq projectile-enable-caching t)
	   (setq projectile-switch-project-action 'projectile-dired)
	   (setq projectile-completion-system 'default)))

Environment & Version information

  • Projectile: 20240901.1554
  • Emacs: GNU Emacs 29.4 (aarch64-apple-darwin)
  • OS: macOS 14.6.1
@taoufik07
Copy link
Author

I suspect it to be caused/triggered by the following commit 3c92d28

For now removing the buffer-list-update-hook #'projectile-track-known-projects-find-file-hook hook, seems to do the trick:

(use-package
  projectile
  :ensure t
  :init
  (projectile-mode)
  (remove-hook 'buffer-list-update-hook #'projectile-track-known-projects-find-file-hook)
  ...

@bbatsov
Copy link
Owner

bbatsov commented Sep 27, 2024

@jtamagnan Can you please take a look in case your change is really the culprit.

@taoufik07 Can you post here the full backtrace? That would make your problem easier to debug.

taoufik07 added a commit to taoufik07/.emcas that referenced this issue Oct 8, 2024
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