auto_update fails on deserializing release step #11114
Labels
bug
[core label]
discoverability
Feedback for discoverability of features, settings, etc
installer / updater
Feedback for installation and update process
linux
Check for existing issues
Describe the bug / provide steps to reproduce it
The problem is most probably clear for devs, but the error message is "cryptic" for people trying to compile and run
Zed
.Firstly I started to think that there is a bug in the code or the response is empty, but after I have found the source of problem it's obvious that some code has been called when it was not expected. It should be fixed (not soon I guess) or it should fail much sooner with a proper message.
The error happens in
async fn update(this: Model<Self>, mut cx: AsyncAppContext) -> Result<()>
which is located insrc/auto_update.rs
file inauto_update
crate.The following request is called: https://zed.dev/api/releases/latest?asset=Zed.dmg&os=linux&arch=x86_64
The API responds with
400
error andFailed to find a matching asset for os 'linux' and architecture 'x86_64'
message.To make sure that people would not be confused now and in the future (other platforms) there needs to be some kind of
if
condition onOS
, so the code returns early with a proper message that specific feature is temporary not supported for specific OS/arch.Some notes on auto-updating on
Linux
:git pull
and samecargo run --release
callAppImage
supportGentoo
ebuild repository: Official Gentoo repository z411/trackma#720Environment
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.No response
The text was updated successfully, but these errors were encountered: