Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report - Ubuntu not listed as new tab option #2037

Closed
miguelsolorio opened this issue Jul 19, 2019 · 8 comments
Closed

Bug Report - Ubuntu not listed as new tab option #2037

miguelsolorio opened this issue Jul 19, 2019 · 8 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@miguelsolorio
Copy link

miguelsolorio commented Jul 19, 2019

Environment

Windows build number: Version 10.0.18362.239
Windows Terminal version (if applicable): 0.2.1991.0

Steps to reproduce

  1. Install Ubuntu from Microsoft store
  2. Install Terminal from Microsoft store
  3. Open Terminal and create new Ubuntu tab
  4. 🐛 Ubuntu not listed as one of the options

Expected behavior

Expected to have Ubuntu added automatically to the list

Actual behavior

Ubuntu is not on the list and had to add it to profiles.json manually

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Jul 19, 2019
@code4clouds
Copy link

I have the same issue as well. Same versions.

@JBanks
Copy link
Contributor

JBanks commented Jul 19, 2019

What is your output from wsl -list? If it looks like the below, I'd ask that you also run wsl -list | wsl -e xxd in case there's a weird language thing.

PS C:\Users\[redacted]> wsl -list
Windows Subsystem for Linux Distributions:
Ubuntu (Default)
Debian

@code4clouds
Copy link

It shows the help and the list of options...

PS C:\Users\[redacted]> wsl -list 
Invalid command line option: -list
Copyright (c) Microsoft Corporation. All rights reserved.
Usage: wsl.exe [Argument] [Options...] [CommandLine]
Arguments to run Linux binaries:   

Adding two dashes (--) shows your output.

PS C:\Users\[redacted]> wsl --list
Windows Subsystem for Linux Distributions:
Ubuntu (Default)                          

@JBanks
Copy link
Contributor

JBanks commented Jul 19, 2019

Sorry, I edited the command and forgot to add the second hyphen.

I just installed the version from the store (0.2.1831.0) on the same version of windows that you have (18362.239) and it worked perfectly. Unfortunately I won't be able to debug this for you. If you're feeling ambitious, here is the section of code where the WSL profiles are added: https://github.com/microsoft/terminal/blob/master/src/cascadia/TerminalApp/CascadiaSettings.cpp#L527

I just installed a new distro and did notice that it took a few minutes to populate in the list. Did you install windows terminal prior to initializing Ubuntu?

Try closing terminal, deleting/renaming profiles.json and re-opening terminal again.

@code4clouds
Copy link

Yes... I installed WSDL and Ubuntu after installing Terminal. I'll remove it and report back. I did noticed before installing Ubuntu and WSDL the Terminal crashed a few times after closing it, so maybe there is something that is required or needed related by the Terminal that is not liking it.

@code4clouds
Copy link

Just reporting back that removing the Terminals and installing it again worked for both issues. The Ubuntu is now listing (nice penguin) and the crashes are no longer happening when closing.

I guess the "init" routine needs to check the environment. Ideally it would be nice if Terminal checks for environmental changes. It would be also neat to have a menu-time in the drop-down to launch the MS store with the available options to install on the Terminal.

@JBanks
Copy link
Contributor

JBanks commented Jul 19, 2019

Ideally it would be nice if Terminal checks for environmental changes.

Sounds like a great idea for a feature request! I'm glad that everything is working now.

@DHowett-MSFT
Copy link
Contributor

There's a couple things here.

@DHowett-MSFT DHowett-MSFT added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Jul 20, 2019
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Jul 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

4 participants