-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Linux install script fails with "unexpected end of file" error #14179
Comments
Same issue here. A manual installation worked without issues |
unable to reproduce on Fedora 40 |
Have same issue |
@dmytrogajewski Which distro are you using? |
@GlacierFox Fedora 40 |
I've think this is related to zed updating itself...
Also running Fedora 40, with zsh |
@krishnaraj Can you see if you're still having this issue? We've made a number of improvements to For everyone else who is seeing errors in terminal when auto-updating on Linux, could you file a new issue rather than hijacking this one? The similarity of error ("unexpected end of file") makes them falsely similar when they are not. OP likely had an interrupted download of the release tarball while running the install script, while the issue y'all are seeing is likely caused by bash trying to read a file-offset from a file that has changed underneath while it was running the script. |
I have opened #18614 for the issues related to updating zed. Anyone affected give it a 👍 for visibility |
@notpeter Still facing this issue. I manually installed and have no issues with the updates though. Extracting https://github.com/zed-industries/zed/releases/download/v0.155.2/zed-linux-x86_64.tar.gz using tar version |
It works if I change
to
|
That is extremely odd. Can you include a screenshot showing the error message you get where the script fails to extract with Lines 111 to 112 in beda1a9
I wonder if your output is being truncated. This script has a
These two should be functionally equivalent. In the former curl is outputting to stdout and bash is redirecting that stream to a file, while in the latter curl is outputting directly to the file. The only time I would expect their behavior to differ would be if the download did not finish. (e.g. bash immediately truncates the output file and waits for stdin, but curl won't create/write to the file until it has content from the remote server to write).
|
--format=gnu -f- -b20 --quoting-style=escape --rmt-command=/usr/sbin/rmt --rsh-command=/usr/bin/rsh |
Ah! the .curlc was the issue, works fine if I remove it. |
Check for existing issues
Describe the bug / provide steps to reproduce it
Running the install script on Pop!_OS 22.04 fails with the below error
Environment
Pop!_OS 22.04
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: