doomemacs icon indicating copy to clipboard operation
doomemacs copied to clipboard

$env:EMACS returns incorrectly formatted path and causes SPC H R R crash

Open Gael-Lopes-Da-Silva opened this issue 1 month ago • 1 comments

I confirm that...

  • [x] I searched the issue tracker and found no similar issues.

  • [x] I searched the documentation, FAQ, discussion board, and Google for solutions to my issue.

  • [x] I read the debugging guide and researched the issue to the best of my ability.

  • [x] My issue can be observed on the latest available commit of Doom.

  • [x] My issue can be observed on a stable release of Emacs (i.e. doesn't end in .50, .60, or .90.99)

Describe your issue

On Windows 11, trying to run doom related command like SPC H R R return an error.

Image

Trying to debug, I found that the $env:EMACS variable return this:

Image

Trying to only use Executable-Find "emacs.exe" work. So $env:EMACS path is incorrectly formatted.

Steps to reproduce

  1. Install doom emacs (On Windows 11)
  2. Open emacs
  3. Do SPC H R R to run doom sync

System information

https://pastebin.com/CUMiGKM0

Gael-Lopes-Da-Silva avatar Nov 07 '25 23:11 Gael-Lopes-Da-Silva

I need someone better versed in powershell to look at this. doom.ps1 worked fine in win10, so not sure if this is a win11 thing or a powershell issue and how to ensure backwards compatibility.

hlissner avatar Nov 07 '25 23:11 hlissner