wyuenho / emacs-pet

Tracks down the correct Python tooling executables from your virtualenvs so you can glue the binaries to Emacs and delete code in init.el
GNU General Public License v3.0
91 stars 11 forks source link

Cannot kill python script buffer if outside a project (projectile) #1

Closed hkoschitzki closed 1 year ago

hkoschitzki commented 1 year ago

Description I use projectile and working with Python code in projects works fine. But when I open a script that is not part of a project, I cannot kill the buffer. Pet adds the function pet-cleanup-watchers-and-caches to the kill-buffer-hook. Within that function pet-project-root returns nil and an error is thrown.

Desktop :

System tools versions

wyuenho commented 1 year ago

Hey @hkoschitzki !

Thanks for giving this package a go and thanks for the bug report! I've pushed a fix to this issue now and please let me know if it fixes your problem!