-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
zed hanging on startup because of 'unsupportedversion' #14126
Comments
I have just installed Zed as instructed in the downloads page, via the script:
I'm using Ubuntu 24.04 LTS and it's a regular installation, so not running anything via WSL. I'm probably getting the same error as @ChrisJefferson, but the message says I tried to find zed.log file, but it can't be found anywhere in my computer. |
I managed to get
This forces The resulting zed still doesn't work on my machine (the gui doesn't render), but it doesn't crash. This may be helpful for other people, as a test. |
More info on hopefully the same issue: Seeing the same results as people above, except I'm on Ubuntu 22.04.04. After running
Running The above image might be helpful. I can hover over the WYSIWYG header button through the zed gui. The mouse pointer changes to a zed provided one when over the titlebar, but changes back to the Windows provided elsewhere. |
I will also mention zed did used to work on my machine, I tried it during development. I just did a git bisect, and the x11 gui broke in commit 47aa761 . That commit did make a lot of changes, and I have no idea how x11 works, so I can't usefully debug beyond that -- just wanted to mention it so this isn't a problem that WSL2 never worked. |
I encountered the same issue while using WSL Ubuntu 22.04. The zed is unable to render under X11 and fails to start under Wayland. Although I am not familiar with Rust, changing the following line fixed the Wayland issue but still fails under X11: crates/gpui/src/platform/linux/wayland/client.rs 143: |
I've tried to run zed in Arch WSL2. |
You rebuild mesa from here https://github.com/archlinux/svntogit-packages/tree/packages/mesa ? |
@gleysonabreu in short I got it using In detail:
I might have missed something as I'm not documenting when try to get it build. |
Maybe helpful to someone: Upgrade Ubuntu to 24.04 makes Zed works on my WSL. There might be |
I did an upgrade to Ubuntu 24.04 on my WSL2 install. I initially got the I think this is just a Wayland in WSLg thing. However, if I run |
on wsl2 upgraded to latest fedora remix version:
upgrade instructions: https://www.whitewaterfoundry.com/blog/2019/11/3/upgrade-fedora-remix-for-wsl-to-31-2a7z8-njsec-fl7bd using the command supplied previously:
|
any idea on this ? WSL Ubuntu 22.04.4 LTS |
Do you have integrated gpu? or only have Nvidia?
|
i have intel 10400F , so no integrated gpu Devices:
nvdia is default selected
vkcube running fine |
maybe you need liquorix kernel
|
I've followed all mentioned instructions with no luck:
|
UnsupportedVersion seems that you are still running zed with Wayland (because Zed required Wayland 2 and above but WSL Wayland fork is 1), try to force it run with X11 by:
|
I can confirm that @jackysee instructions here works for arch installation; You just have to use
git clone https://aur.archlinux.org/mesa-git.git ~/mesa-git \
&& pushd ~/mesa-git
sed -i "/^provides=\((\)/a \ \ 'microsoft-dozen-driver'" 'PKGBUILD'
sed -i 's/-D vulkan-drivers=amd,intel,intel_hasvk,swrast,virtio,nouveau/-D vulkan-drivers=amd,intel,intel_hasvk,swrast,virtio,nouveau,microsoft-experimental/' 'PKGBUILD'
sed -i 's/rmdir/rm -r/' 'PKGBUILD'
makepkg -si
sudo rm -rf /tmp/.X11-unix
sudo ln -s /mnt/wslg/.X11-unix /tmp/.X11-unix
glxinfo -B
lspci -k | grep -A 2 -E "(VGA|3D)"
vulkaninfo --summary
vkcube
sudo sed -i.bak \
-e 's/^Exec=zeditor *$/Exec=sh -c "unset WAYLAND_DISPLAY; zeditor"/' \
-e 's/^Exec=zeditor --new *$/Exec=sh -c "unset WAYLAND_DISPLAY; zeditor --new"/' \
"/usr/share/applications/dev.zed.Zed.desktop"
alias zeditor='WAYLAND_DISPLAY= zeditor'
alias zed='zeditor'
find "${HOME}/.local/share/applications" -type f -name '*zed*.desktop' -exec sed -i '/^Exec=/s/^Exec=/Exec=env -u WAYLAND_DISPLAY /; /^TryExec=/s/^TryExec=/TryExec=env -u WAYLAND_DISPLAY /' {} \; |
@ChrisJefferson As the original reporter on this issue I wanted to check in and see if you were able to get this sorted with Ubuntu under WSL2. Coincidentally Ubuntu 23.10 was EOL'd one day after you posted this (2024-07-11) and given that Ubuntu 24 appears to work out of the box for most folks -- I'm hoping switching to Ubuntu24 will solve your issues. Note, that at this time. people have reported that it only works with X11 not Wayland, so you will have to run Zed with |
I wrote a script to automate build and install on windows. I think this might address immediate needs until Zed team releases official binaries. |
Added a section for using zed's remote-developement feature here with wsl2 |
Got it running on 20.04 now. However, this wasn't sufficient to get it running:
I checked the mesa driver version with
I upgraded the |
@notpeter I personally gave up, as I don't want to significantly update my WSL or install vulkan drivers, as I'm worried about breaking things and need it to function for work, but it looks like updating to a newer ubuntu release, installing vulkan and disabling Wayland is helping many people |
Gave up on this. Followed all the hints above. Shows "empty project" dialog box without anything rendering inside it. |
Same. I think that still needs more work behind the scenes. |
FYI: https://github.com/superboxes/zed-windows (my quick test has shown that it works) |
I need it on WSL-2.
…On Wed, Sep 18, 2024, 23:54 VS ***@***.***> wrote:
FYI: https://github.com/superboxes/zed-windows (my quick test has shown
that it works)
—
Reply to this email directly, view it on GitHub
<#14126 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABTCTC6XWDCVUAZ3P5YNI3ZXJKITAVCNFSM6AAAAABKV6UGCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJZHE3TKNBSHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Ok, I'm going to go ahead and close. Hopefully this will be something we can prioritize in 2025, but in the meantime, GitHub discussions / Discord are definitely a better place for these discussions. Thanks all. |
Check for existing issues
Describe the bug / provide steps to reproduce it
I installed the 'linux' zed release. If I run it, it just appears to hang.
If I run with
--foreground
, I get:Environment
WSL2, running Ubuntu 23.10. I can run other programs, such as 'firefox' and 'xterm', so the problem is not that I just can't run GUI programs inside WSL2
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: