syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.68k stars 4.89k forks source link

project-find-files and also -- Reporting issues via C-c C-c fails #11398

Closed robbyoconnor closed 4 years ago

robbyoconnor commented 6 years ago

Description :octocat:

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: A message along the lines of the following is shown in the minibuffer:

mktemp: failed to create directory via template ‘/tmp/tmp.iShm13pCiP/tmp.XXXXXXXXXX’: No such file or directory

Expected behaviour: :heart: :smile:

Show me a list of files in the project...

System Info :computer:

Backtrace :paw_prints:

Debugger entered--Lisp error: (file-missing "Setting current directory" "No such file or directory" "/home/rob/.emacs.d/mktemp: failed to create direct...")
  call-process("/bin/zsh" nil t nil "-c" "git submodule --quiet foreach 'echo $path' | tr '\\...")
  call-process-shell-command("git submodule --quiet foreach 'echo $path' | tr '\\..." nil t)
  #f(compiled-function (command &optional output-buffer error-buffer) "Execute string COMMAND in inferior shell; display output, if any.\nWith prefix argument, insert the COMMAND's output at point.\n\nInteractively, prompt for COMMAND in the minibuffer.\n\nIf COMMAND ends in `&', execute it asynchronously.\nThe output appears in the buffer `*Async Shell Command*'.\nThat buffer is in shell mode.  You can also use\n`async-shell-command' that automatically adds `&'.\n\nOtherwise, COMMAND is executed synchronously.  The output appears in\nthe buffer `*Shell Command Output*'.  If the output is short enough to\ndisplay in the echo area (which is de
robbyoconnor commented 6 years ago

Also fails when I try to report C-c C-c the issue:

Debugger entered--Lisp error: (file-missing "Setting current directory" "No such file or directory" "/home/rob/.emacs.d/mktemp: failed to create direct...")
  call-process("google-chrome-beta" nil 0 nil "http://github.com/syl20bnr/spacemacs/issues/new?bo...")
  apply(call-process "google-chrome-beta" nil 0 nil "http://github.com/syl20bnr/spacemacs/issues/new?bo...")
  browse-url-generic("http://github.com/syl20bnr/spacemacs/issues/new?bo..." nil)
  apply(browse-url-generic "http://github.com/syl20bnr/spacemacs/issues/new?bo..." nil)
  browse-url("http://github.com/syl20bnr/spacemacs/issues/new?bo...")
  (let ((url "http://github.com/syl20bnr/spacemacs/issues/new?bo...") (body (url-hexify-string (buffer-string)))) (browse-url (url-encode-url (concat url body))))
  spacemacs//report-issue-done()
  funcall-interactively(spacemacs//report-issue-done)
  call-interactively(spacemacs//report-issue-done nil nil)
  command-execute(spacemacs//report-issue-done)
robbyoconnor commented 6 years ago

I'm not sure if I should report this upstream or not -- and if so where - because the problem is manifesting itself other times

d12frosted commented 6 years ago

Sounds bizarre. When it happens, do you have a folder named /tmp/tmp.iShm13pCiP? Maybe mkdir should be called with -p option?

robbyoconnor commented 6 years ago

This is happening via mktemp,not mkdirthough.

ssfrr commented 5 years ago

any workarounds for this? Here's a simpler MWE on my system:

(shell-command-to-string "echo hello")

gives

"mktemp: failed to create directory via template ‘/tmp/tmp.3BxBLFyvMq/tmp.XXXXXXXXXX’: No such file or directory
hello
"

So it seems like it's executing the command and capturing the output successfully, but somewhere something is going wrong and dumping that error message.

There is no directory /tmp/tmp.3BxBLFyvMq - I'm not sure who's responsible for creating that.

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!