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.

Onboarding experience: Installing git does not get synced with onboarding task/built-in terminal

See original GitHub issue

When trying to complete the “Install git” task in the VS Code onboarding process I had issues with VS Code recognizing that I did actually install git and could only fix the problem by closing and reopening VS Code entirely.

It would be great if this synced without having to close the app because it breaks the flow of the onboarding experience.

Issue Type: Bug

  1. (You might need a new unconfigured a machine without git installed)
  2. Run “Developer: Reset Welcome Page Walkthrough Progress”
  3. Find the “Install git” task in the “Boost your productivity” section (note that this might not show up if you have git installed)
  4. Separately, open up the Powershell app in with Admin privileges
  5. Install chocolatey via Powershell
  6. Use chocolatey to install git via Powershell
  7. Go back to VS Code

You should see that the “Install git” task is still rendered as not complete. On top of that if you open the built-in VS Code terminal and type “choco” or “git” it should report back errors saying that these commands do not exist.

To fix the problem, close and reopen VS Code entirely and you should see that the “Install git” task is now replaced with a new task for installing a repo and if you run the same commands in the built-in terminal they should succeed.

Details

VS Code version: Code - Insiders 1.68.0-insider (87630a9122f88f5062fe9964839a92116c274a86, 2022-06-06T17:09:26.575Z) OS version: Windows_NT x64 10.0.22000 Restricted Mode: No

System Info
Item Value
CPUs 11th Gen Intel® Core™ i7-11370H @ 3.30GHz (8 x 3302)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.84GB (17.20GB free)
Process Argv –crash-reporter-id f92bbe85-d251-4567-9fb4-e18928161621
Screen Reader no
VM 0%
Extensions (6)
Extension Author (truncated) Version
vscode-html-css ecm 1.12.2
python ms- 2022.7.11581010
vscode-pylance ms- 2022.6.0
jupyter ms- 2022.6.1001601017
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.8
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30422396
pythontb:30258533
pythonvspyt551cf:30291413
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscod805:30301674
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30404738
wslgetstarted:30449409
vscscmwlcmt:30465136
cppdebug:30492333
pylanb8912cf:30496797
vsclangdf:30492506

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
Tyriarcommented, Jun 9, 2022

If your $Path environment variable changes on Windows you need to restart the entire VS Code window unfortunately. The feature request to make this act better on Windows is https://github.com/microsoft/vscode/issues/47816.

Moving to @lszomoru for the restart note which should be Windows only.

1reaction
chrywcommented, Jun 8, 2022

Echo to the part that perhaps some hint text telling me to restart VS Code (or maybe just kill terminal? I haven’t tried) to refresh the terminal after installing git, or chocolatey if I’m on Windows, would be nice to have. It’s perfectly fair that terminal error message tells me unrecognized command, but for net new users some hint in the tutorial would be nice. image

Read more comments on GitHub >

github_iconTop Results From Across the Web

1.5 Getting Started - Installing Git
There are several ways to install Git on a Mac. The easiest is probably to install the Xcode Command Line Tools. On Mavericks...
Read more >
Use fresh environment block on new terminals in Windows
Terminal not displaying user environment variables correctly #98045 ... Onboarding experience: Installing git does not get synced with ...
Read more >
Onboarding Automation Flow | GitLab
Onboarding issue creation. The onboarding issue creation is a semi-automated process. Meaning that it needs to be triggered by a People Connect team...
Read more >
Onboarding with BLT - Acquia Docs
This also means that you don't need to install or configure BLT globally on ... and processes (including Composer and Git), you should...
Read more >
Visual Studio Code cannot detect installed Git - Stack Overflow
Now you can configure Visual Studio Code (version 0.10.2, check for older versions) to use existing git installation. Just add the path to...
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