-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
C-x C-f (counsel-find-file) open typescript files hang need 'C-g' to reopen again #580
Comments
I run emacs in docker and the code base dir was mounted by docker. I run emacs without When I switch back
|
There was
|
Looks like the issue lies with the interaction of the |
I set global
|
Sorry, I have absolutely no way to reproduce this problem, so I'm going to close this issue, but if you figure out the problem, feel free to post the solution here. |
my docker container mounted code base dir into container :
I have comment
|
Nicely done.
|
the source code dir was under there was NO more
I think if |
That might be a useful patch to offer to that project's maintainer. In the meantime, configure exec-path in your init-local.el as that is the purpose of add-node-modules-path. The package works for me in an Angular project on a local filesystem mount. It should work for you as it does little more than rely on Emacs built-in files library |
FWIW, that's not saying much - it is very easy for built-in filesystem-bound functions to fail/hang and be very hard to debug when dealing with file handlers, e.g. when TRAMP is involved. That is why you will often see people guard, say, Although it would, of course, be nice to address any issues with @lvii Have you tried inspecting the output produced when |
@basil-conto thanks for the caveats about Emacs file primitives. I don't understand why tramp completion is invoked on OP's container. Also, if directory traversal depends on remote file access, as it seems to, I would expect all kinds of things to break on OP's container, such as helm, magit and projectile. Probably I have spent enough time on this, as the fix is simple, even though the cause is beyond my current level of Emacs knowledge. |
@lvii the package was completely re-written a few days ago to stop at your home directory. A package upgrade to version 20180501.49 will probably mitigate your issue. |
I'm not familiar with these TRAMP subtleties either, though I do know that the variables
Not necessarily, as @lvii The current TRAMP maintainer is very active and helpful, so they may be able to give you some useful pointers if you ask nicely. See |
After I updated installed packages, this problem was still unsolved in docker container mounted dir:
I have cloned source code at container's local There would be NO problem. When opening local files in container, there was NOT calling tramp
I have enable Here was the new debug output of the hang problem: http://ix.io/1aDU |
Enabling |
It seemed that there was no any debug output with
|
@lvii I suggest you bring this issue up with the |
Switch off TRAMP and restart Emacs to see if it helps narrow down your issue. https://stackoverflow.com/a/1708205/1899424 If you find the cause, come back here and let us know if you recommend changes in purcell/emacs.d |
@dcorking Thanks for helping out by leaving comments and providing support on so many issues - it's much appreciated. |
@basil-conto do you have any link for me that describes TRAMP-compatible path traversal? |
No; when I said that, I meant using operations that don't assume a local filesystem and work in the presence of file handlers, that's all (all of my comments above are speculative). The only documentation I'm aware of is |
I see, thanks! The problem for @lvii is fixed now. The problem was a recent change that, instead of just searching in the current project folder, walked up until the users home directory to find |
If |
Thanks for the suggestion! I am in release mode at work now so all hands full. Maybe you can send a PR! |
Hi,
I used emacs 25.3.1 under Fedora 28.
When I opened angular typescript code
.ts
files withC-x C-f (counsel-find-file)
, minibuffer frozen on opening file path. I have to useC-g
to close minibuffer and reopen the file again withC-x C-f (counsel-find-file)
.C-x C-f (counsel-find-file)
opened.html
,.sh
,.md
flies only need once, minibuffer would NOT hang.The text was updated successfully, but these errors were encountered: