-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
projectile-find-file and +default/search-cwd (fd) incorrectly expand '/' to absolute path on Windows #3215
Comments
Is this a universal solution (for all Windows users)? Do we need to detect mingw running bash vs mingw not running bash? |
And if this is a universal solution, should it (at least the |
It has been reported to counsel, but it's blocked on a large-scale refactoring. |
@Ruin0x11, thank you for the snippet you've provided, I'm new to doom-emacs and it is essential for me to use it across different systems including Windows.
|
This comment has been minimized.
This comment has been minimized.
You should add |
This commit breaks things for me. Before that
I bisected the commits and that is the one responsible |
Actually, further investigation shows that the new rg command is invalid under windows:
while
works perfectly. I have the latest
|
Apparently not. Running
works in CMD but not in a mingw shell
but not in a standard cmd prompt. |
Just want to comment that in a similar fashion I had to change the
Also using Windows 10 and probably (?) standard cmd shell. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Not a Windows user, so I can't do extensive testing on this. Can anyone recommend a workaround (perhaps to detect whenever |
Can't speak in general, but on my work PC the suggestion from @guraltsev works wonders. PC config: |
That's not quite what I was asking for. I meant a fix to determine whether |
Agree, the more general solution is to use the |
@chuxubank Ah, I missed that. That's perfect. I'll look into incorporating that into Doom soon. Thanks! |
As of 523e945 this issue should be resolved. Let me know if that isn't the case and I'll reopen it. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I am still experiencing this bug on Windows 10. Setting the path separator to a single slash resolves it. rg installed via scoop. |
@hliebert Are you sure you've updated Doom? It is already set to a single slash. |
This was on a new install, I got a new windows laptop from work. I had installed it the day before I posted. |
@hlissner Just tested and can confirm this still occurs on the latest doom.
Edit: Apparently the default value is changed somewhere.
|
Same story for me as @hliebert, latest Doom, Emacs and rg installed via scoop, and the original value for |
Try 8024f4e. Should hopefully fix this. |
Working perfectly, thanks @hlissner! |
## Changelog for doom-emacs: Commits: [doomemacs/doomemacs@841eacc7...ae3a2fa8](doomemacs/doomemacs@841eacc...ae3a2fa) * [`7877c928`](doomemacs/doomemacs@7877c92) Docs: Fix typo: vterm-module.sh -> vterm-module.so * [`5c9e2181`](doomemacs/doomemacs@5c9e218) Fix non evil environment (void variable evil this operator) * [`f22f2e28`](doomemacs/doomemacs@f22f2e2) Modifying wrong variable judgment logic * [`4dc888d1`](doomemacs/doomemacs@4dc888d) Tangle org files on save if in same dir as config.org * [`5de08af8`](doomemacs/doomemacs@5de08af) bin/doom: improve error output * [`b3077c96`](doomemacs/doomemacs@b3077c9) Bump :emacs dired * [`2337f145`](doomemacs/doomemacs@2337f14) bin/doom: enable-dir-local-variables = nil * [`0ef8f003`](doomemacs/doomemacs@0ef8f00) configure dired-aux variables * [`1dd796b1`](doomemacs/doomemacs@1dd796b) Added :defer to dired-aux use-package! * [`8f64a0eb`](doomemacs/doomemacs@8f64a0e) Fix doomemacs/doomemacs#3871: void-function doom-autoload-error * [`406c6510`](doomemacs/doomemacs@406c651) Increase search depth for doom/help-search-headings * [`aa063090`](doomemacs/doomemacs@aa06309) lang/markdown: fontify rust blocks correctly * [`5f47169c`](doomemacs/doomemacs@5f47169) Load ccls.el after lsp-mode * [`60ba42ca`](doomemacs/doomemacs@60ba42c) Fix doomemacs/doomemacs#3873: use thing-at-point for nox & elpy * [`79c1fcef`](doomemacs/doomemacs@79c1fce) Fix doomemacs/doomemacs#3863: "load" ispell after flyspell * [`3935d431`](doomemacs/doomemacs@3935d43) tab-always-indent = nil * [`8024f4ed`](doomemacs/doomemacs@8024f4e) Fix doomemacs/doomemacs#3215 (again): --path-separator / * [`bb74d271`](doomemacs/doomemacs@bb74d27) Allow :no-native-compile in package recipes * [`ecc6fcd8`](doomemacs/doomemacs@ecc6fcd) Bump :lang javascript * [`5940d931`](doomemacs/doomemacs@5940d93) Fix "read only variable" errors on doom {sync,upgrade} * [`73565f10`](doomemacs/doomemacs@73565f1) Only expand emmet snippets if at word boundary * [`5de263f6`](doomemacs/doomemacs@5de263f) Bump :lang common-lisp * [`91c1e705`](doomemacs/doomemacs@91c1e70) checkers/spell: add add/remove word & next/prev error commands * [`3963b83e`](doomemacs/doomemacs@3963b83) checkers/spell: update readme * [`b0cd0e5e`](doomemacs/doomemacs@b0cd0e5) Change scope of +spell/add-word with universal arg * [`ae3a2fa8`](doomemacs/doomemacs@ae3a2fa) doom-info: use &nopath prefix for 404'd modules
## Changelog for doom-emacs: Commits: [doomemacs/doomemacs@841eacc7...ae3a2fa8](doomemacs/doomemacs@841eacc...ae3a2fa) * [`7877c928`](doomemacs/doomemacs@7877c92) Docs: Fix typo: vterm-module.sh -> vterm-module.so * [`5c9e2181`](doomemacs/doomemacs@5c9e218) Fix non evil environment (void variable evil this operator) * [`f22f2e28`](doomemacs/doomemacs@f22f2e2) Modifying wrong variable judgment logic * [`4dc888d1`](doomemacs/doomemacs@4dc888d) Tangle org files on save if in same dir as config.org * [`5de08af8`](doomemacs/doomemacs@5de08af) bin/doom: improve error output * [`b3077c96`](doomemacs/doomemacs@b3077c9) Bump :emacs dired * [`2337f145`](doomemacs/doomemacs@2337f14) bin/doom: enable-dir-local-variables = nil * [`0ef8f003`](doomemacs/doomemacs@0ef8f00) configure dired-aux variables * [`1dd796b1`](doomemacs/doomemacs@1dd796b) Added :defer to dired-aux use-package! * [`8f64a0eb`](doomemacs/doomemacs@8f64a0e) Fix doomemacs/doomemacs#3871: void-function doom-autoload-error * [`406c6510`](doomemacs/doomemacs@406c651) Increase search depth for doom/help-search-headings * [`aa063090`](doomemacs/doomemacs@aa06309) lang/markdown: fontify rust blocks correctly * [`5f47169c`](doomemacs/doomemacs@5f47169) Load ccls.el after lsp-mode * [`60ba42ca`](doomemacs/doomemacs@60ba42c) Fix doomemacs/doomemacs#3873: use thing-at-point for nox & elpy * [`79c1fcef`](doomemacs/doomemacs@79c1fce) Fix doomemacs/doomemacs#3863: "load" ispell after flyspell * [`3935d431`](doomemacs/doomemacs@3935d43) tab-always-indent = nil * [`8024f4ed`](doomemacs/doomemacs@8024f4e) Fix doomemacs/doomemacs#3215 (again): --path-separator / * [`bb74d271`](doomemacs/doomemacs@bb74d27) Allow :no-native-compile in package recipes * [`ecc6fcd8`](doomemacs/doomemacs@ecc6fcd) Bump :lang javascript * [`5940d931`](doomemacs/doomemacs@5940d93) Fix "read only variable" errors on doom {sync,upgrade} * [`73565f10`](doomemacs/doomemacs@73565f1) Only expand emmet snippets if at word boundary * [`5de263f6`](doomemacs/doomemacs@5de263f) Bump :lang common-lisp * [`91c1e705`](doomemacs/doomemacs@91c1e70) checkers/spell: add add/remove word & next/prev error commands * [`3963b83e`](doomemacs/doomemacs@3963b83) checkers/spell: update readme * [`b0cd0e5e`](doomemacs/doomemacs@b0cd0e5) Change scope of +spell/add-word with universal arg * [`ae3a2fa8`](doomemacs/doomemacs@ae3a2fa) doom-info: use &nopath prefix for 404'd modules
## Changelog for doom-emacs: Commits: [doomemacs/doomemacs@841eacc7...ae3a2fa8](doomemacs/doomemacs@841eacc...ae3a2fa) * [`7877c928`](doomemacs/doomemacs@7877c92) Docs: Fix typo: vterm-module.sh -> vterm-module.so * [`5c9e2181`](doomemacs/doomemacs@5c9e218) Fix non evil environment (void variable evil this operator) * [`f22f2e28`](doomemacs/doomemacs@f22f2e2) Modifying wrong variable judgment logic * [`4dc888d1`](doomemacs/doomemacs@4dc888d) Tangle org files on save if in same dir as config.org * [`5de08af8`](doomemacs/doomemacs@5de08af) bin/doom: improve error output * [`b3077c96`](doomemacs/doomemacs@b3077c9) Bump :emacs dired * [`2337f145`](doomemacs/doomemacs@2337f14) bin/doom: enable-dir-local-variables = nil * [`0ef8f003`](doomemacs/doomemacs@0ef8f00) configure dired-aux variables * [`1dd796b1`](doomemacs/doomemacs@1dd796b) Added :defer to dired-aux use-package! * [`8f64a0eb`](doomemacs/doomemacs@8f64a0e) Fix doomemacs/doomemacs#3871: void-function doom-autoload-error * [`406c6510`](doomemacs/doomemacs@406c651) Increase search depth for doom/help-search-headings * [`aa063090`](doomemacs/doomemacs@aa06309) lang/markdown: fontify rust blocks correctly * [`5f47169c`](doomemacs/doomemacs@5f47169) Load ccls.el after lsp-mode * [`60ba42ca`](doomemacs/doomemacs@60ba42c) Fix doomemacs/doomemacs#3873: use thing-at-point for nox & elpy * [`79c1fcef`](doomemacs/doomemacs@79c1fce) Fix doomemacs/doomemacs#3863: "load" ispell after flyspell * [`3935d431`](doomemacs/doomemacs@3935d43) tab-always-indent = nil * [`8024f4ed`](doomemacs/doomemacs@8024f4e) Fix doomemacs/doomemacs#3215 (again): --path-separator / * [`bb74d271`](doomemacs/doomemacs@bb74d27) Allow :no-native-compile in package recipes * [`ecc6fcd8`](doomemacs/doomemacs@ecc6fcd) Bump :lang javascript * [`5940d931`](doomemacs/doomemacs@5940d93) Fix "read only variable" errors on doom {sync,upgrade} * [`73565f10`](doomemacs/doomemacs@73565f1) Only expand emmet snippets if at word boundary * [`5de263f6`](doomemacs/doomemacs@5de263f) Bump :lang common-lisp * [`91c1e705`](doomemacs/doomemacs@91c1e70) checkers/spell: add add/remove word & next/prev error commands * [`3963b83e`](doomemacs/doomemacs@3963b83) checkers/spell: update readme * [`b0cd0e5e`](doomemacs/doomemacs@b0cd0e5) Change scope of +spell/add-word with universal arg * [`ae3a2fa8`](doomemacs/doomemacs@ae3a2fa) doom-info: use &nopath prefix for 404'd modules
## Changelog for doom-emacs: Commits: [doomemacs/doomemacs@841eacc7...ae3a2fa8](doomemacs/doomemacs@841eacc...ae3a2fa) * [`7877c928`](doomemacs/doomemacs@7877c92) Docs: Fix typo: vterm-module.sh -> vterm-module.so * [`5c9e2181`](doomemacs/doomemacs@5c9e218) Fix non evil environment (void variable evil this operator) * [`f22f2e28`](doomemacs/doomemacs@f22f2e2) Modifying wrong variable judgment logic * [`4dc888d1`](doomemacs/doomemacs@4dc888d) Tangle org files on save if in same dir as config.org * [`5de08af8`](doomemacs/doomemacs@5de08af) bin/doom: improve error output * [`b3077c96`](doomemacs/doomemacs@b3077c9) Bump :emacs dired * [`2337f145`](doomemacs/doomemacs@2337f14) bin/doom: enable-dir-local-variables = nil * [`0ef8f003`](doomemacs/doomemacs@0ef8f00) configure dired-aux variables * [`1dd796b1`](doomemacs/doomemacs@1dd796b) Added :defer to dired-aux use-package! * [`8f64a0eb`](doomemacs/doomemacs@8f64a0e) Fix doomemacs/doomemacs#3871: void-function doom-autoload-error * [`406c6510`](doomemacs/doomemacs@406c651) Increase search depth for doom/help-search-headings * [`aa063090`](doomemacs/doomemacs@aa06309) lang/markdown: fontify rust blocks correctly * [`5f47169c`](doomemacs/doomemacs@5f47169) Load ccls.el after lsp-mode * [`60ba42ca`](doomemacs/doomemacs@60ba42c) Fix doomemacs/doomemacs#3873: use thing-at-point for nox & elpy * [`79c1fcef`](doomemacs/doomemacs@79c1fce) Fix doomemacs/doomemacs#3863: "load" ispell after flyspell * [`3935d431`](doomemacs/doomemacs@3935d43) tab-always-indent = nil * [`8024f4ed`](doomemacs/doomemacs@8024f4e) Fix doomemacs/doomemacs#3215 (again): --path-separator / * [`bb74d271`](doomemacs/doomemacs@bb74d27) Allow :no-native-compile in package recipes * [`ecc6fcd8`](doomemacs/doomemacs@ecc6fcd) Bump :lang javascript * [`5940d931`](doomemacs/doomemacs@5940d93) Fix "read only variable" errors on doom {sync,upgrade} * [`73565f10`](doomemacs/doomemacs@73565f1) Only expand emmet snippets if at word boundary * [`5de263f6`](doomemacs/doomemacs@5de263f) Bump :lang common-lisp * [`91c1e705`](doomemacs/doomemacs@91c1e70) checkers/spell: add add/remove word & next/prev error commands * [`3963b83e`](doomemacs/doomemacs@3963b83) checkers/spell: update readme * [`b0cd0e5e`](doomemacs/doomemacs@b0cd0e5) Change scope of +spell/add-word with universal arg * [`ae3a2fa8`](doomemacs/doomemacs@ae3a2fa) doom-info: use &nopath prefix for 404'd modules
## Changelog for doom-emacs: Commits: [doomemacs/doomemacs@841eacc7...ae3a2fa8](doomemacs/doomemacs@841eacc...ae3a2fa) * [`7877c928`](doomemacs/doomemacs@7877c92) Docs: Fix typo: vterm-module.sh -> vterm-module.so * [`5c9e2181`](doomemacs/doomemacs@5c9e218) Fix non evil environment (void variable evil this operator) * [`f22f2e28`](doomemacs/doomemacs@f22f2e2) Modifying wrong variable judgment logic * [`4dc888d1`](doomemacs/doomemacs@4dc888d) Tangle org files on save if in same dir as config.org * [`5de08af8`](doomemacs/doomemacs@5de08af) bin/doom: improve error output * [`b3077c96`](doomemacs/doomemacs@b3077c9) Bump :emacs dired * [`2337f145`](doomemacs/doomemacs@2337f14) bin/doom: enable-dir-local-variables = nil * [`0ef8f003`](doomemacs/doomemacs@0ef8f00) configure dired-aux variables * [`1dd796b1`](doomemacs/doomemacs@1dd796b) Added :defer to dired-aux use-package! * [`8f64a0eb`](doomemacs/doomemacs@8f64a0e) Fix doomemacs/doomemacs#3871: void-function doom-autoload-error * [`406c6510`](doomemacs/doomemacs@406c651) Increase search depth for doom/help-search-headings * [`aa063090`](doomemacs/doomemacs@aa06309) lang/markdown: fontify rust blocks correctly * [`5f47169c`](doomemacs/doomemacs@5f47169) Load ccls.el after lsp-mode * [`60ba42ca`](doomemacs/doomemacs@60ba42c) Fix doomemacs/doomemacs#3873: use thing-at-point for nox & elpy * [`79c1fcef`](doomemacs/doomemacs@79c1fce) Fix doomemacs/doomemacs#3863: "load" ispell after flyspell * [`3935d431`](doomemacs/doomemacs@3935d43) tab-always-indent = nil * [`8024f4ed`](doomemacs/doomemacs@8024f4e) Fix doomemacs/doomemacs#3215 (again): --path-separator / * [`bb74d271`](doomemacs/doomemacs@bb74d27) Allow :no-native-compile in package recipes * [`ecc6fcd8`](doomemacs/doomemacs@ecc6fcd) Bump :lang javascript * [`5940d931`](doomemacs/doomemacs@5940d93) Fix "read only variable" errors on doom {sync,upgrade} * [`73565f10`](doomemacs/doomemacs@73565f1) Only expand emmet snippets if at word boundary * [`5de263f6`](doomemacs/doomemacs@5de263f) Bump :lang common-lisp * [`91c1e705`](doomemacs/doomemacs@91c1e70) checkers/spell: add add/remove word & next/prev error commands * [`3963b83e`](doomemacs/doomemacs@3963b83) checkers/spell: update readme * [`b0cd0e5e`](doomemacs/doomemacs@b0cd0e5) Change scope of +spell/add-word with universal arg * [`ae3a2fa8`](doomemacs/doomemacs@ae3a2fa) doom-info: use &nopath prefix for 404'd modules
What did you expect to happen?
projectile-find-file
and+default/search-cwd
should list nested paths correctly.What actually happened?
In Windows with mingw installed, this kind of output is displayed for both commands:
Additional details:
See this issue for details:
BurntSushi/ripgrep#501 (comment)
I fixed this issue with the following snippet:
System information:
The text was updated successfully, but these errors were encountered: