-
-
Notifications
You must be signed in to change notification settings - Fork 581
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
file-missing "Setting current directory" "No such file or directory" #1302
Comments
Further info. If I run the command specified in
Which is correct. |
I likely broke this during my massive round of refactoring over the weekend. I try to investigate it later this week. My assumption is that some |
Might be a good idea to step through the code and see what's the |
The call to `projectile-files-ext-command` returns filenames relative to the project root, not to the current directory.
Please check if PR #1308 fixes your issue. |
Thanks @DamienCassou, it works fine now. |
I'm having a very similar issue. Error given is this
Backtrace is hard to copy here since it clears everytime I try to focus on the buffer, but the gist of it is that it happens in It seems that projectile is not finding I've tried the above fix but to no avail (it's possible I'm doing something wrong, just edited the file manually and byte compiled the file). I also tried removing the I'm on Windows 10 and using spacemacs. |
After trying M-x projectile-find-file I get apply: Setting current directory: No such file or directory, /home/tima/build/the_silver_searcher/bash: cannot set terminal process group (-1): Inappropriate ioctl for device The path "/home/tima/build/the_silver_searcher/bash" is, indeed, incorrect: "bash" is added to the root of the project. projectile-20181015.1723 |
This doesn't seem to be fixed for me with Projectile 20181028.838 in GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30 Running on Windows 10. I get error:
When running projectile-find-file or counsel-projectile-switch-project. |
As a workaround, set |
I (emacs user) was helping my co-worker setup spacemacs for the first time, and we were getting the error in a project without submodules. @altschuler fix above worked perfectly, thanks for saving my sanity |
I am experiencing the same issue on Windows 10 with GNU Emacs 26.1. apply: Setting current directory: No such file or directory, c:/Users/admin/AppData/Roaming/.emacs.d/error: no program name specified. and Debugger entered--Lisp error: (wrong-type-argument stringp nil)
string-match("^/tmp_mnt/" nil)
abbreviate-file-name(nil)
projectile-locate-dominating-file(nil ".git")
projectile-project-vcs()
projectile-get-repo-files()
projectile-dir-files-external(nil "")
projectile-dir-files(nil "")
#f(compiled-function (dir) #<bytecode 0x3105c81>)("")
mapcan(#f(compiled-function (dir) #<bytecode 0x3105c81>) (""))
cl-mapcan(#f(compiled-function (dir) #<bytecode 0x3105c81>) (""))
projectile-project-files(nil)
projectile-current-project-files()
counsel-projectile-find-file(nil)
funcall-interactively(counsel-projectile-find-file nil)
call-interactively(counsel-projectile-find-file nil nil)
command-execute(counsel-projectile-find-file) |
Confirm: the issue disappear in the latest version. And the workaround |
It works on Windows 10 with GNU Emacs 25.3 |
Do you have |
I'm possibly seeing an upstream issue here, but the git submodule --quiet foreach 'echo $path' | tr '\\n' '\\0'
# GNU gettext shell script function library version 0.19.8.1
# Usage: . gettext.sh git submodule
# GNU gettext shell script function library version 0.19.8.1
# Usage: . gettext.sh
git --version
# git version 2.21.0
gettext --version
# gettext (GNU gettext-runtime) 0.19.8.1
# Copyright (C) 1995-1997, 2000-2007 Free Software Foundation, Inc. Update: Worked around this issue without setting % brew install gettext
% export PATH="/usr/local/opt/gettext/bin:$PATH"
% git submodule
3f2bb2d2401cf5876fc2d806ecab462984619a79 home/spacemacs.d/layers/w3m (heads/master)
734d9a11b5a6354e6a66e152dee5d311233e033c home/vim/vim-plug (0.9.1-84-g734d9a1)
9a06c28ddc2c6efbabc0e4d5806d89b0d63c8b8e home/zsh/zsh-syntax-highlighting (0.6.0-223-g9a06c28) 🤔 |
I install |
@jmromer 's solution of adding gettext to the path worked for me in the current spacemacs develop branch. (I'm also on OSX) |
Expected behavior
projectile-find-file
lets me browse my project files.Actual behavior
Steps to reproduce the problem
Given a project with at least a Git submodule in it, run
projectile-find-file
.Environment & Version information
Projectile version information
The text was updated successfully, but these errors were encountered: