zed-industries/zed · error

elapsed without receiving channels

Error message

{:?} elapsed without receiving channels

What it means

wait_for_channels: the loop exited after neither channels_loaded nor a connected status arrived within the timeout (10s), so the channel store gives up waiting with the elapsed duration in the message.

Solutions

  1. Retry opening the channel resource once the channel list loads from the server
  2. Check the network/connection status — the wait aborted because channels never arrived in time
  3. Increase the wait window or subscribe to channel-load events before retrying in slow networks
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at crates/channel/src/channel_store.rs:299 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20). Data as JSON: /api/errors/ff7968738c81c91a. Report an issue: GitHub.

Appendix: source

Thrown at crates/channel/src/channel_store.rs:299

        cx.spawn(async move |this, cx| {
            loop {
                futures::select_biased! {
                    channels_loaded = channels_loaded_rx.next().fuse() => {
                        if let Some(true) = channels_loaded {
                            return Ok(());
                        }
                    }
                    status = status_receiver.next().fuse() => {
                        if let Some(status) = status
                            && status.is_connected() {
                                this.update(cx, |this, _cx| {
                                    this.initialize();
                                }).ok();
                            }
                        continue;
                    }
                    _ = timer => {
                        return Err(anyhow!("{:?} elapsed without receiving channels", timeout));
                    }
                }
            }
        })
    }

    pub fn client(&self) -> Arc<Client> {
        self.client.clone()
    }

    /// Returns the number of unique channels in the store
    pub fn channel_count(&self) -> usize {
        self.channel_index.by_id().len()
    }

    /// Returns the index of a channel ID in the list of unique channels
    pub fn index_of_channel(&self, channel_id: ChannelId) -> Option<usize> {
        self.channel_index

View on GitHub (pinned to f4178619ac)