Skip to content

Fish prompt broken after converting WSL1 instance to WSL2. (link to video included) #4125

Closed

Description

@akulbe

When I install WSL, I set up Fish as my default shell, and then install a couple of plugins.

Once I converted an existing WSL instance to WSL2, that became unusable.

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    Windows 10 Build 18917.1000

  • What you're doing and what's happening:
    wsl --set-version 2

Open new window of

See video of this happening at https://1drv.ms/v/s!ApEXGJp7Ipuxi6RJIZhqOstDpVV7rg.

NOTE: I edited the video to remove dead air. Some operations seem to have finished much quicker than they actually did. It's still 4 minutes and change.

Activity

  1. craigloewen-msft commented on Jun 13, 2019

    @craigloewen-msft
    Member

    Hi Aaron Kulbe (@akulbe) could you give us some detailed logs on this? You can find instructions on how to do so here.

  2. akulbe commented on Jun 13, 2019

    @akulbe
    Author
  3. craigloewen-msft commented on Jun 13, 2019

    @craigloewen-msft
    Member

    So I had an Ubuntu instance that was already in WSL 2 and was able to install and use the fish prompt as you set it up in your steps in the video. I'll take a look at your logs and see what the error is, some PATH issue seems like the most likely culprit. :)

  4. akulbe commented on Jun 14, 2019

    @akulbe
    Author

    @mscraigloewen I just tried it again with an Ubuntu instance already spun up. I set the default to v2, and spun it up. Did the package updates up front. Then I started the fish install. That's where the most recent video starts.

    https://1drv.ms/v/s!ApEXGJp7Ipuxi6UOLD_Facse3B2xOg

  5. shayne commented on Jun 14, 2019

    @shayne

    Looks like #4104

  6. craigloewen-msft commented on Jun 14, 2019

    @craigloewen-msft
    Member

    Aaron Kulbe (@akulbe) if you run this command:
    echo $PATH
    what's the output?

  7. akulbe commented on Jun 14, 2019

    @akulbe
    Author

    https://1drv.ms/u/s!ApEXGJp7Ipuxi6UkrFBy-GqBIzXwUw

    Hopefully video is okay, as it gets more than just your answer. I figure as much data as possible might be helpful.

  8. craigloewen-msft commented on Jun 14, 2019

    @craigloewen-msft
    Member

    It might be #4104, or I think it could also a slightly different issue:

    It seems that the fish shell is trying to access files that are on your PATH that are stored in your 'Program Files (x86)/Common Files/Oracle/Java/javapath' and you don't have access to them. This could be due to them being links, or due to them being non-accessible due to admin rights. I'll install Java and try to repro!

  9. craigloewen-msft commented on Jun 14, 2019

    @craigloewen-msft
    Member

    Yup this is a duplicate of #4104 , it's due to the link in the Java folder.

    Here's a temporary workaround (though I don't know how stable it will be since I'm sure that java_target folder will often change)

    image

    We'll track your issue on #4104! Thanks for filing it, I'll close this one out as a duplicate.

  10. craigloewen-msft commented on Jun 14, 2019

    @craigloewen-msft
    Member

    You mentioned the workaround isn't working, please make sure to run the window with administrator privileges and the mklink command is only in cmd (You can see I ran cmd from PowerShell, hopefully it's not too confusing!)

  11. akulbe commented on Jun 14, 2019

    @akulbe
    Author

    I missed the cmd part. You know... ready, fire, aim? I don't need no stinkin docs! 😂

    Thank you, sir! That did the trick. Do you think that "target" directory changes dynamically, or just with each Java revision?

  12. craigloewen-msft commented on Jun 14, 2019

    @craigloewen-msft
    Member

    Couldn't tell you, I'm not sure how Java organizes that folder. So fingers crossed it won't break too often until we get a fix out!

  13. aadibajpai commented on Jun 17, 2020

    @aadibajpai

    Yup this is a duplicate of #4104 , it's due to the link in the Java folder.

    Here's a temporary workaround (though I don't know how stable it will be since I'm sure that java_target folder will often change)

    image

    We'll track your issue on #4104! Thanks for filing it, I'll close this one out as a duplicate.

    I had the same problem, but when I try to execute that command I get

    C:\Program Files (x86)\Common Files\Oracle\Java>mklink /d javapath ".\javapath_target_200167890"
    Cannot create a file when that file already exists.
    
  14. aadibajpai commented on Jun 17, 2020

    @aadibajpai

    Okay, so I have the same setup. fish on WSL 2 with Ubuntu and omf → bobthefish, it was all working fine until today when I restarted my computer. I have the same problem when opening terminal but with a lot more entries, even uninstalling Java to remove it from the path leaves me with all the other ones.

    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Git/cmd/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/nodejs/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Yarn/bin/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GnuPG/bin/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/ProgramData/chocolatey/bin/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/OpenSSH-Win64/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Pandoc/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/Scripts/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/.cargo/bin/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/wrappers/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/4.01.0+ocp1-full-mingw64-20160113/bin/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Ruby26-x64/bin/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/Scripts/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Microsoft/WindowsApps/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/npm/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Yarn/bin/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/WebStorm 2018.3/bin/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/MinGW/bin/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/Python/Python37/Scripts/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/hyper/app-3.0.2/resources/bin/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/MinGW/msys/1.0/bin/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Keybase/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/radare2/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCaml64/bin/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCaml64/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/PyCharm 2019.3/bin/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GitHub CLI/__fish_command_not_found_handler'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Git/cmd/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/nodejs/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Yarn/bin/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GnuPG/bin/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/ProgramData/chocolatey/bin/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/OpenSSH-Win64/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Pandoc/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/Scripts/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/.cargo/bin/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/wrappers/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/4.01.0+ocp1-full-mingw64-20160113/bin/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Ruby26-x64/bin/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/Scripts/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Microsoft/WindowsApps/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/npm/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Yarn/bin/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/WebStorm 2018.3/bin/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/MinGW/bin/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/Python/Python37/Scripts/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/hyper/app-3.0.2/resources/bin/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/MinGW/msys/1.0/bin/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Keybase/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/radare2/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCaml64/bin/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCaml64/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/PyCharm 2019.3/bin/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GitHub CLI/bobthefish_colors'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Git/cmd/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/nodejs/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Yarn/bin/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GnuPG/bin/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/ProgramData/chocolatey/bin/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/OpenSSH-Win64/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Pandoc/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/Scripts/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/.cargo/bin/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/wrappers/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/4.01.0+ocp1-full-mingw64-20160113/bin/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Ruby26-x64/bin/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/Scripts/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Microsoft/WindowsApps/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/npm/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Yarn/bin/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/WebStorm 2018.3/bin/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/MinGW/bin/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/Python/Python37/Scripts/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/hyper/app-3.0.2/resources/bin/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/MinGW/msys/1.0/bin/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Keybase/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/radare2/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCaml64/bin/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCaml64/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/PyCharm 2019.3/bin/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GitHub CLI/rvm-prompt'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Git/cmd/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/nodejs/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Yarn/bin/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GnuPG/bin/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/ProgramData/chocolatey/bin/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/OpenSSH-Win64/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Pandoc/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/Scripts/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/.cargo/bin/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/wrappers/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/4.01.0+ocp1-full-mingw64-20160113/bin/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Ruby26-x64/bin/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/Scripts/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Microsoft/WindowsApps/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/npm/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Yarn/bin/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/WebStorm 2018.3/bin/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/MinGW/bin/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/Python/Python37/Scripts/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/hyper/app-3.0.2/resources/bin/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/MinGW/msys/1.0/bin/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Keybase/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/radare2/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCaml64/bin/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCaml64/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/PyCharm 2019.3/bin/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GitHub CLI/rbenv'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Git/cmd/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/nodejs/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Yarn/bin/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GnuPG/bin/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/ProgramData/chocolatey/bin/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/OpenSSH-Win64/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Pandoc/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/Scripts/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/.cargo/bin/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/wrappers/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/4.01.0+ocp1-full-mingw64-20160113/bin/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Ruby26-x64/bin/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/Scripts/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Microsoft/WindowsApps/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/npm/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Yarn/bin/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/WebStorm 2018.3/bin/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/MinGW/bin/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/Python/Python37/Scripts/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/hyper/app-3.0.2/resources/bin/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/MinGW/msys/1.0/bin/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Keybase/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/radare2/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCaml64/bin/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCaml64/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/PyCharm 2019.3/bin/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GitHub CLI/chruby'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Git/cmd/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/nodejs/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Yarn/bin/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GnuPG/bin/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/ProgramData/chocolatey/bin/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/OpenSSH-Win64/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/Pandoc/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/Scripts/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/.cargo/bin/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/wrappers/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/4.01.0+ocp1-full-mingw64-20160113/bin/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Ruby26-x64/bin/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/Scripts/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Microsoft/WindowsApps/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/npm/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Yarn/bin/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/WebStorm 2018.3/bin/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/MinGW/bin/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/Python/Python37/Scripts/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/hyper/app-3.0.2/resources/bin/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/MinGW/msys/1.0/bin/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Keybase/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/radare2/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCaml64/bin/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/OCaml64/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/PyCharm 2019.3/bin/asdf'
    access: Input/output error
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GitHub CLI/asdf'
    access: Input/output error
    

    I realize this is being tracked in #4104 but since the fix was here I was wondering if there's a temporary fix for this too, hopefully 😶

  15. aadibajpai commented on Jun 17, 2020

    @aadibajpai

    Okay this is weirder than I thought, I opened another tab with Ubuntu and got that same output except at the end there was [process exited with code 1].

    Then when I opened another tab, now fish is working without an issue and how it normally works. The only thing I did was open bash in cmd and take a look around if it was reading and following symlinks and stuff which was alluded to (it did, and so does fish). I have no clue what changed but at least it's working fine now.

  16. Sicks3c commented on Oct 9, 2020

    @Sicks3c

    Aadi Bajpai (@aadibajpai)
    Any update I have the same Issue
    Just upgraded to WSL2 and I have this with fish the same output as you

  17. cadillion commented on Nov 20, 2020

    @cadillion

    Aadi Bajpai (@aadibajpai) Ayoub Elaich (@Sicks3c)
    I had the same issue, running WSL2 as administrator seems to resolve the problem for any administrator sessions. Non-admin sessions are still broken, so not an ideal workaround, but it gets the job done.

  18. ndywicki commented on Nov 26, 2020

    @ndywicki

    Hello,

    I've the same issue with WSL2 since today:

    Welcome to fish, the friendly interactive shell
    Type `help` for instructions on how to use fish
    <W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Microsoft SDKs/Azure/CLI2/wbin/__fish_command_not_found_handler'
    ...
    

    One lead can be related to the fact that I installed a Python and Ruby ​​environment yesterday

    For Ruby with rbenv and fish-rbenv.
    I've also update my PATH : set -U fish_user_paths $HOME/.rbenv/bin $fish_user_paths

    Maybe it's the culprits..

  19. ndywicki commented on Nov 27, 2020

    @ndywicki

    Strange if I do a su myuser after starting, the fish session is ok...

  20. ndywicki commented on Dec 5, 2020

    @ndywicki

    Ok, I found the problem, after having reinstalled my Ubuntu 20.04 session several times with this problem each time when starting a Fish shell session.

    Everything is in order if I disable the Fast start-up mode of Win10 ...
    See https://stephenreescarter.net/wsl2-network-issues-and-win-10-fast-start-up/

    Hoping to help.

  21. lssbiubiubiu commented on Apr 5, 2021

    @lssbiubiubiu

    i use wsl2 and fish-shell too, ever it worked well, studently someday the same issue occurred, after i reboot my pc, it works fine now. That's strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions