question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🐛 GitHub Desktop can't find Visual Studio Code (VSCode) when installed via package manager 🤷🏻‍♂️

See original GitHub issue

Describe the bug

I have Visual Studio Code installed on my dev system using the well-known scoop package manager. I can run code from the command line to launch VSCode. I use scoop update * to keep all of my software packages up-to-date.

I have also installed GitHub Desktop with scoop, using scoop install github.

Unfortunately, GitHub Desktop doesn’t seem to be able to “find” VSCode. I am not sure how the detection is working, but I do have VSCode installed and up-to-date on my system.

Version & OS

  • Windows 11 Dev Preview
  • GitHub Desktop version 2.9.6

Steps to reproduce the behavior

Use the ephemeral Windows Sandbox VM to run PowerShell and issue these commands:

Set-ExecutionPolicy Unrestricted

# Install Scoop
iwr -useb get.scoop.sh | iex

# Install git
scoop install git

# Add the "extras" bucket for scoop
scoop bucket add extras

# Install VSCode and GitHub Desktop
scoop install vscode github

image

Expected behavior

GitHub Desktop should see that VSCode is installed, and accessible on the $PATH environment variable, and launch it using that command.

Actual behavior

image

Logs

2022-01-31T17:54:13.573Z - info: [ui] [AppStore] loading 0 repositories from store
2022-01-31T17:54:13.751Z - info: [ui] [Welcome] no sign in step found. ignoring...
2022-01-31T17:54:13.843Z - info: [ui] launching: 2.9.6 (Windows 10.0.22523)
2022-01-31T17:54:13.844Z - info: [ui] execPath: 'C:\Users\WDAGUtilityAccount\scoop\apps\github\current\GitHubDesktop.exe'
2022-01-31T17:54:13.848Z - error: [ui] Error checking for updates
Error: The application is missing a dependency it needs to check and install updates. This is very, very bad.
    at file:///C:/Users/WDAGUtilityAccount/scoop/apps/github/2.9.6/resources/app/renderer.js:55:146726
    at onAutoUpdaterError (file:///C:/Users/WDAGUtilityAccount/scoop/apps/github/2.9.6/resources/app/renderer.js:55:147142)
    at CallbacksRegistry.apply (electron/js2c/renderer_init.js:107:834)
    at electron/js2c/renderer_init.js:83:5623
    at electron/js2c/renderer_init.js:83:5332
    at EventEmitter.<anonymous> (electron/js2c/renderer_init.js:103:732)
    at EventEmitter.emit (events.js:315:20)
    at Object.onMessage (electron/js2c/renderer_init.js:91:925)
2022-01-31T17:54:13.852Z - info: [ui] [Welcome] no sign in step found. ignoring...
2022-01-31T17:54:13.978Z - info: [ui] Opt in reported.
2022-01-31T17:54:14.012Z - info: [ui] [Welcome] no sign in step found. ignoring...
2022-01-31T17:54:15.944Z - info: [ui] [Welcome] advancing to step: ConfigureGit
2022-01-31T17:54:29.627Z - info: [ui] [AppStore] adding repository at C:\Users\WDAGUtilityAccount\Documents\GitHub\asdf to store

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
babyrusacommented, Jun 30, 2022

@sergiou87 can you repeat the suggestion please? i have the same issue for months now where Github suddenly misses the option to open with VSCode.

0reactions
TNTErickcommented, Sep 23, 2022

Same here on Win10, Github Desktop installed from the Setup.exe; Win10 was reinstalled at some point so there is no uninstall key, but VS Code is kept on another disk.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vs code not found by github desktop - Zorin Forum
🐛 GitHub Desktop can't find Visual Studio Code (VSCode) when installed via package manager 🤷🏻‍♂️
Read more >
How to Get Visual Studio Code GitHub Setup Going!
First, click the Source Control view button or press the keyboard shortcut CTRL+SHIFT+G . Next, click the Clone Repository button. Then, click ...
Read more >
Visual Studio Code cannot detect installed Git - Stack Overflow
Visual Studio Code simply looks in your PATH for git . Many UI clients ship with a "Portable Git" for simplicity, and do...
Read more >
Github Codespaces vs. Gitpod: Choosing the Best Online ...
Gitpod and Github Codespaces are both VS Code based online code editors, with attached Linux dev environment servers. Which is better?
Read more >
The VSCode Checklist - Adventures of Eventyret
Homebrew is the lost package manager in mac, and as a developer, ... Pick your poison 💀 and download Visual Studio Code; Install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found