withfig / fig

Public issue tracker for Fig.
https://fig.io
MIT License
2.04k stars 63 forks source link

Fig didn't install integration DAEMON correctly on WLS2 #2333

Open gvieiram opened 1 year ago

gvieiram commented 1 year ago

Checks

Operating system

Linux 5.15.79.1-microsoft-standard-WSL2 - "Ubuntu"

Expected behaviour

I was expecting to see the autocomplete.

Actual behaviour

I can run fig login normally but autocomplete doesn't work

Steps to reproduce

  1. Install fig bash <(curl -fSsL https://fig.io/headless.sh) && exec $SHELL in WSL2 distro Ubuntu

Will be displayed the following error: Unsupported init system: unknown

image

image

Environment

fig-details:
  - 2.14.2
hardware-info:
  - model: 
  - model-id: 
  - chip-id: AMD Ryzen 7 5700X 8-Core Processor
  - cores: 8
  - mem: 15.58 GB
os-info:
  - kernel: 5.15.79.1-microsoft-standard-WSL2
  - distro: "Ubuntu"
  - distro-version: "22.04.1 LTS (Jammy Jellyfish)"
environment:
  - shell: /usr/bin/zsh
  - terminal: <unknown> ## (Windows Terminal in ubuntu wsl) >> Commented by me
  - cwd: /home/gvieiram
  - exe-path: /usr/bin/fig
  - install-method: unknown
  - env-vars:
    - DISPLAY: :0
    - FIGTERM_SESSION_ID: e8415aba-5aa3-4d13-915d-8e8a34f58728
    - FIG_SET_PARENT_CHECK: 1
    - FIG_TERM: 2.14.2
    - PATH: /home/gvieiram/.local/share/zinit/polaris/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files (x86)/dotnet/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files/dotnet/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/gusta/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/gusta/AppData/Local/Programs/Microsoft VS Code/bin:/home/gvieiram/.local/bin:/home/gvieiram/.fig/bin
    - SHELL: /usr/bin/zsh
    - TERM: xterm-256color
    - FIG_PID: 2703
    - FIG_SET_PARENT: e8415aba-5aa3-4d13-915d-8e8a34f58728
HaidarEzio commented 1 year ago

Same thing here :(

Archisman-Mridha commented 1 year ago

same for me !

jrbsantos commented 1 year ago

Me too. In addition to this error, they launched the tool without the autocomplete working, which is precisely the functionality that everyone was most waiting for.

jesuscmdev commented 1 year ago

image

Me too :(

carrijoga commented 1 year ago

same here! Captura de tela 2023-02-22 024837

eliecer2000 commented 1 year ago

+1

ocsoares commented 1 year ago

me too 😞

uesleicarvalhoo commented 1 year ago

me too 😢

InnovateWorldio commented 1 year ago

I initially had the same issue too. What fixed the issue for me was to set the init system to systemd by doing the following:

  1. Ran wsl --update
  2. Inside of my WSL Installation (Ubuntu) I created the file /etc/wsl.conf and added the following to it:
[boot]
systemd=true
  1. Shutdown WSL from Powershell using wsl.exe --shutdown
  2. Ran the Fig installer and everything worked.

Prior to that I had tried to uninstall and re-install WSL, made sure it was set to WSL2 by entering in Powershell wsl --set-default-version 2, and then re-installed Ubuntu but that didn't work. I also had to do a kernel update from Microsoft during this time that can be obtained here: https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel