Repository navigation
Closed
Labels
bugConfirmed bugs or reports that are very likely to be bugsmore-info-neededThe submitter needs to provide more information about the issue
Description
Description
I just insalled GitHub Desktop and Atom, and when I try to set up Atom as de default external editor for Github Desktop it says "No editors found". I tries uninstalling and then installing Atom first, with no success.
Version
GitHub Desktop version: 0.8.0
OS version: MS Windows 6.1.7601
Steps to Reproduce
- Installed both GitHub Desktop and Atom
- On GitHub Desktop, File > Options > Advanced
- For "External editor" it says "No editors found. Install Atom?" even though Atom is installed and running properly.
Logs
I don't think there is anything relevant here, but still, latest log:
2017-08-30T07:27:23.899Z - warn: [ui] Unknown URL action: unknown - payload: {"name":"unknown","url":"--squirrel-firstrun"}
2017-08-30T07:27:25.500Z - error: [ui] Error checking for updates
Error: Command failed: 4294967295
System.AggregateException: Se han producido uno o varios errores. ---> System.Exception: Couldn't acquire lock, is another instance running
en Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)
en Squirrel.UpdateManager.<acquireUpdateLock>b__32_0()
en System.Threading.Tasks.Task`1.InnerInvoke()
en System.Threading.Tasks.Task.Execute()
--- Fin del seguimiento de la pila de la ubicaci�n anterior donde se produjo la excepci�n ---
en System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en Squirrel.UpdateManager.<CheckForUpdate>d__7.MoveNext()
--- Fin del seguimiento de la pila de la ubicaci�n anterior donde se produjo la excepci�n ---
en System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en Squirrel.Update.Program.<Download>d__7.MoveNext()
--- Fin del seguimiento de la pila de la excepci�n interna ---
en System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
en System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
en System.Threading.Tasks.Task`1.get_Result()
en Squirrel.Update.Program.executeCommandLine(String[] args)
en Squirrel.Update.Program.main(String[] args)
en Squirrel.Update.Program.Main(String[] args)
---> (N� de excepci�n interna 0) System.Exception: Couldn't acquire lock, is another instance running
en Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)
en Squirrel.UpdateManager.<acquireUpdateLock>b__32_0()
en System.Threading.Tasks.Task`1.InnerInvoke()
en System.Threading.Tasks.Task.Execute()
--- Fin del seguimiento de la pila de la ubicaci�n anterior donde se produjo la excepci�n ---
en System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en Squirrel.UpdateManager.<CheckForUpdate>d__7.MoveNext()
--- Fin del seguimiento de la pila de la ubicaci�n anterior donde se produjo la excepci�n ---
en System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en Squirrel.Update.Program.<Download>d__7.MoveNext()<---
at AutoUpdater.emitError (C:\Users\[myusername]\AppData\Local\GitHubDesktop\app-0.8.0\resources\electron.asar\browser\api\auto-updater\auto-updater-win.js:58:24)
at squirrelUpdate.download (C:\Users\[myusername]\AppData\Local\GitHubDesktop\app-0.8.0\resources\electron.asar\browser\api\auto-updater\auto-updater-win.js:34:21)
at C:\Users\[myusername]\AppData\Local\GitHubDesktop\app-0.8.0\resources\electron.asar\browser\api\auto-updater\squirrel-update-win.js:89:14
at ChildProcess.<anonymous> (C:\Users\[myusername]\AppData\Local\GitHubDesktop\app-0.8.0\resources\electron.asar\browser\api\auto-updater\squirrel-update-win.js:71:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
2017-08-30T07:28:53.184Z - info: [ui] Executing getConfigValueInPath: git config -z --global user.name (took 2.032s)
2017-08-30T07:50:49.383Z - info: [ui] Executing getConfigValueInPath: git config -z --global user.name (took 1.390s)
2017-08-30T08:02:58.762Z - info: [ui] Opt in reported.
2017-08-30T08:02:59.463Z - info: [ui] Stats reported.
2017-08-30T08:06:05.988Z - warn: [ui] Unknown URL action: unknown - payload: {"name":"unknown","url":"--squirrel-firstrun"}
2017-08-30T08:18:51.499Z - info: [ui] Executing getConfigValueInPath: git config -z --global user.name (took 6.442s)
2017-08-30T08:24:56.861Z - info: [ui] Executing getConfigValueInPath: git config -z --global user.name (took 1.306s)
Reacted by Adam Reis
Metadata
Metadata
Assignees
Labels
bugConfirmed bugs or reports that are very likely to be bugsmore-info-neededThe submitter needs to provide more information about the issue
Activity
shiftkey commentedon Aug 30, 2017
@mberasategi thanks for the details. Can you tell me about how you have Atom installed?
We probe this registry key to find the install location:
HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\atom. Maybe I'm missing one of the installer options that Atom supports?mirenbz commentedon Sep 1, 2017
Thanks for your reply @shiftkey . I just downloaded the installer from https://atom.io/ (64bit version) and run it. Install location as found in the registry key you mention is
C:\Users\[myusername]\AppData\Local\atom.DRSAgile commentedon Sep 2, 2017
Same issue; the registry entry for Atom is filled properly: the "InstallLocation" key has "C:\Users[myusername]\AppData\Local\atom" value.
While it is still not fixed, can I force the connection with Atom "manually" in any other way?
Also, can I connect it to Notepad++ instead of Atom if I chose so (also "manually" as the application itself does not offer such possibility with GUI)?
shiftkey commentedon Sep 3, 2017
@mberasategi @DRSAgile The next thing to check alongside the registry entry is that the installation is unpacked as expected. Could you check that Atom added itself to your PATH and that the
cmdfile exists (I'm just running these commands in a Command Prompt shell):@DRSAgile this is not currently supported. See #2487 for that discussion.
DRSAgile commentedon Sep 3, 2017
@shiftkey Thanks for reply.
Yes, the "%PATH%" is updated; the last two entried there are: "C:\Users[Username]\AppData\Local\GitHubDesktop\bin;C:\Users[Username]\AppData\Local\atom\bin"
The dir command works also. The only difference is that free space is different (33 805 893 632).
Atom itself works fine. I tried to restart everything, but it did not help either.
Another issue is that I can not find an option to autopush changes to GitHub's server once I press "Commit" -- it is not convenient as I always forget to manually click to "push" at the top. Maybe I simply failed to find this option?
mirenbz commentedon Sep 4, 2017
Hi @shiftkey , it turns out the Atom dir is not added to my path, and
dir %LOCALAPPDATA%\atom\binis not found...Actually, the app is not working too smoothly either. I takes ages for it to load (not that my computer is lightning fast either, but still). I will try reinstalling and see if it gets added to the path.
shiftkey commentedon Sep 4, 2017
@mberasategi it sounds like something about your installation failed - there might be something in your
%LOCALAPPDATA%\atom\SquirrelSetup.logthat might shed light on what happened, but I think I'd need to send you over to the Atom issue tracker for further assistance.mirenbz commentedon Sep 4, 2017
@shiftkey OK. I'll try reinstalling as said and if it doesn't work I'll go to the Atom issue tracker. Thanks for your attention.
Ben3eeE commentedon Sep 4, 2017
@mberasategi The bin folder not being created or modified on install is a known issue with the Atom installer /cc: atom/atom#11450
You can try running
atom --squirrel-updatedfrom within the%LOCALAPPDATA%\atomfolder. This should create the bin folder.shiftkey commentedon Sep 5, 2017
@DRSAgile
Please open a fresh issue to talk about this - it's not relevant to the Atom issue we're investigating here.
shiftkey commentedon Sep 5, 2017
@DRSAgile I'm still not 100% sure why we're not detecting the installation. We enumerate the keys at that location to verify it's the app we expect using the Publisher and DisplayName keys, maybe I'm missing some assumption:
desktop/app/src/lib/editors/win32.ts
Lines 74 to 75 in 355f967
Could you run this command from a Powershell prompt and attach the output?
This is what it looks like for my 64-bit installation of
1.19.5:DRSAgile commentedon Sep 5, 2017
@shiftkey Thanks for reply.
It looks like I have the same data, please see below.
Could you please check the source code if it asks for elevation of privileges/permissions to go through the registry? Maybe the code you cited just receives nothing?
Normally just reading the data from registry should not be an issue, but in my practice I witnessed weird cases where even reading from registry was not possible without certain permissions, especially with UAC-enabled Windows 10 (the reason why you only saw a couple of cases like mine is maybe because the most people turn the UAC off; GitHub desktop did not cause UAC promt). I am not a professional in this, so this is only my guess.
PS C:\Windows\System32\WindowsPowerShell\v1.0> Get-Item HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\atom
Name Property
atom DisplayIcon : C:\Users[Username]\AppData\Local\atom\app.ico
DisplayName : Atom
DisplayVersion : 1.19.5
InstallDate : 20170902
InstallLocation : C:\Users[Username]\AppData\Local\atom
Publisher : GitHub Inc.
QuietUninstallString : "C:\Users[Username]\AppData\Local\atom\Update.exe" --uninstall
-s
UninstallString : "C:\Users[Username]\AppData\Local\atom\Update.exe" --uninstall
URLUpdateInfo :
EstimatedSize : 179214
NoModify : 1
NoRepair : 1
Language : 1033
PS C:\Windows\System32\WindowsPowerShell\v1.0>
shiftkey commentedon Sep 5, 2017
The code for this is invoking
C:\Windows\System32\reg.exeand parsing that output:desktop/app/src/lib/registry.ts
Lines 34 to 36 in 355f967
You can test this doesn't require additional permissions by invoking it from a plain command prompt:
There's one note from the upstream project that inspired this around the Windows console not handling UTF-8 characters - it's a long shot, but is there any special characters in your username that we might not be parsing correctly? You've also not mentioned other editors (VSCode/Sublime) - if they're also installed, but not showing up in the list under Options | Advanced tab, then it might not be specific to the Atom installation.
26 remaining items
shiftkey commentedon Sep 14, 2017
@DOBRESCUMihai19 I'd love to get more details about what you believe is missing from Desktop. We're close to 1.0, and we've got a roadmap planned out for future updates, to give you an idea of where we're heading...
EDIT: oops, this was meant for @DOBRESCUMihai19 - apologies @mberasategi!
mirenbz commentedon Sep 14, 2017
Thanks @shiftkey , but that issue with the text editor of choice was the only flaw I found. I left Atom for later on and I'm currently using Sublime (which is what I used otherwise), and everything is fine. So I'm quite happy with Desktop.
That quote was actually from @DOBRESCUMihai19 , which was who you meant to mention, probably 😉
shiftkey commentedon Sep 14, 2017
@mberasategi you're right, I mentioned the wrong person. I've edited it again to clarify!
shiftkey commentedon Sep 18, 2017
@DRSAgile I wonder if you're not also dealing with the same issue as #2735 - could you run
chcpfrom yourcmd.exeand see what it returns?DRSAgile commentedon Sep 18, 2017
It looks like the same issue as CHCP besides the code itself does return non-ASCII characters just as in the case you referenced to. So yes, if you are using Regex to read the code page, simply filtering out everything besides digits would be enough for this all to work without issue.
shiftkey commentedon Sep 18, 2017
@DRSAgile cool, I'll close this out as I think that's the only outstanding issue here. #2759 should go out in the next update.
shiftkey commentedon Sep 18, 2017
For anyone else who discovers this discussion, please open a fresh issue rather than commenting further if you encounter an issue with the Atom integration.
BrainNotFoundException commentedon Jan 1, 2021
yea this works.
but for some reason i had to type atom --squirrel-update for it to work