Skip to content

Wrong location is used to start Atom #2616

@dead-claudia

Description

@dead-claudia
  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.26.1.windows.1
cpu: x86_64
built from commit: 14af9f9d205f4a6a033c7b6f48980d1eeee2c610
sizeof-long: 4
sizeof-size_t: 8
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.18363.778]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: Atom
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: ConHost
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

Atom updated.

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

PowerShell

Any command that opens an editor

  • What did you expect to occur after running these commands?

An editor to open

  • What actually happened instead?

This error:

"%AppData%\atom\app-1.44.0\atom.exe" --wait: %AppData%\atom\app-1.44.0\atom.exe: No such file or directory
error: There was a problem with the editor '"%AppData%\atom\app-1.44.0\atom.exe" --wait'.
  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

Happens with all


My recommended solution is to use %AppData%\atom\bin\atom.cmd instead - that file is always up to date, and the source is just this, where VERSION is the current version:

@echo off
"%~dp0\..\app-VERSION\resources\cli\atom.cmd" %*

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions