pauby / ChocoPackages

Chocolatey packages I maintain
26 stars 39 forks source link

(emacs.install) Cannot find file at c:\program files\... #225

Closed Gieted closed 2 months ago

Gieted commented 3 months ago

Checklist

Chocolatey Version

2.3.0

Chocolatey License

None

Package Version

29.3.0

Current Behaviour

After installation running emacs shows:

Cannot find file at 'c:\program files\emacs\emacs-29.3\bin\emacs.exe' (c:\program files\emacs\emacs-29.3\bin\emacs.exe). This usually indicates a missing or moved file.

probably because incorrect escaping of "program files"

Expected Behaviour

Emacs should launch

Steps To Reproduce

  1. Install package
  2. Run emacs in the terminal

Environment

- Operating System (run `[System.Environment]::OSVersion.ToString()` in a PowerShell session): Microsoft Windows NT 10.0.22631.0
- PowerShell Version (run `$PSVersionTable` in a PowerShell session): 5.1.22621.3672
- Shell: Powershell

Chocolatey Log

-

Anything else?

No response

github-actions[bot] commented 3 months ago

Thanks for raising this issue!

The packages within this repository are maintained in my spare time. My spare time, like yours is important. Please help me not to waste it.

To help me, and to have the issue resolved more quickly, please see CONTRIBUTING for how to raise a pull request to resolve the issue yourself.

Thank you.

pauby commented 2 months ago

Looking at this now, it's because the emacs installer is creating a folder called emacs-29.3_2 for some reason. So the shims are not found (as the folder it's looking for is emacs-29.3.

image

pauby commented 2 months ago

Version 29.4.0 of emacs.install appears to work correctly so I'm going to assume this is an emacs installer mistake.

I'll go ahead and close this now.