Alexander-Miller / treemacs

GNU General Public License v3.0
2.11k stars 154 forks source link

treemacs-create-file with point on project (not file/directory) fails #895

Closed thomassross closed 2 years ago

thomassross commented 2 years ago

Steps to reproduce:

  1. Open treemacs
  2. Add a project
  3. With the point at the project name (not a file or directory), type c f
  4. Observe the failure

Traceback:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  file-directory-p(nil)
  treemacs--create-file/dir(t)
  treemacs-create-file()
  funcall-interactively(treemacs-create-file)
  call-interactively(treemacs-create-file nil nil)
  command-execute(treemacs-create-file)
Alexander-Miller commented 2 years ago

I've pushed a patch to fix this bug for all file management interactions that ask you for a location.

thomassross commented 2 years ago

Thank you!