Skip to content
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

Using . (repeat) for a replacement of text freezes up in 'C' #16460

Open
1 task done
natac13 opened this issue Aug 19, 2024 · 2 comments
Open
1 task done

Using . (repeat) for a replacement of text freezes up in 'C' #16460

natac13 opened this issue Aug 19, 2024 · 2 comments
Labels
bug [core label] freeze Editor or OS - freezing / hanging / locking performance Feedback for performance issues, speed, memory usage, etc vim

Comments

@natac13
Copy link

natac13 commented Aug 19, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

I have been trying to explore some 'C' and was going through cc4e.com. I wanted to change string like pylist_get to krlist_get or vice versa.
I went to the front of pylist_get and did ctl kr for change to 'l'. When I navigated to the next match either manually or with n on a search match, and pressed . it would sometimes work the first time but doing so on the second repeat froze the editor. I had to force quit and try again. I have repeated this a few times.

Then I noticed if I left it for long enough and somehow it did not freeze then ALL the matches would be changed at once instead of in match by match way as expected

In the log file at the bottom I see an 'Aborting replay after 10000 actions`

Environment

Zed: v0.148.1 (Zed)
OS: macOS 14.5.0
Memory: 32 GiB
Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

Code

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct lnode {
  char *text;
  struct lnode *next;
};

struct krlist {
  struct lnode *head;
  struct lnode *tail;
  int count;
};

// Constructor - lst = list()
struct krlist *krlist_new() {
  struct krlist *p = malloc(sizeof(*p));
  p->head = NULL;
  p->tail = NULL;
  p->count = 0;
  return p;
}

// Destructor - del lst
void krlist_del(struct krlist *self) {
  struct lnode *cur, *next;
  cur = self->head;
  while (cur) {
    free(cur->text);
    next = cur->next;
    free(cur);
    cur = next;
  }
  free((void *)self);
}

void krlist_print(struct krlist *self) {
  struct lnode *cur;
  int i = 0;
  cur = self->head;
  printf("[");
  while (cur) {
    if (i++ > 0) {
      printf(", ");
    }
    printf("'%s'", cur->text);
    cur = cur->next;
  }
  printf("]\n");
}

void krlist_append(struct krlist *self, char *text) {
  // Create a new node
  struct lnode *node = malloc(sizeof(*node));
  // create a new text buffer
  node->text = malloc(strlen(text) + 1);
  // copy the text into the new node
  strcpy(node->text, text);
  // node->text = text;
  node->next = NULL;
  if (self->count == 0) {
    self->head = node;
  } else {
    // update the next pointer of the current tail
    // check if the tail is NULL
    if (self->tail == NULL) {
      printf("Error: tail is NULL\n");
      exit(1);
    }
    self->tail->next = node;
  }
  self->tail = node;
  self->count++;
}

int krlist_len(struct krlist *self) { return self->count; }

int krlist_index(struct krlist *self, char *str) {
  struct lnode *cur;
  int i = 0;
  cur = self->head;
  while (cur) {
    if (strcmp(cur->text, str) == 0) {
      return i;
    }
    cur = cur->next;
    i++;
  }
  return -1;
}

int main() {
  struct krlist *lst = krlist_new();
  krlist_append(lst, "Hello World");
  krlist_print(lst);
  krlist_append(lst, "Catch phrase");
  krlist_print(lst);
  krlist_append(lst, "Brian");
  krlist_print(lst);
  printf("Length = %d\n", krlist_len(lst));
  printf("Brian? %d\n", krlist_index(lst, "Brian"));
  printf("Bob? %d\n", krlist_index(lst, "Bob"));
  krlist_del(lst);
}
  1. Go to the main function and try to change the krlist_... to pylist_... with ctl and then do a repeat on the next match with .
Screenshot 2024-08-19 at 8 08 13 AM

If applicable, attach your Zed.log file to this issue.

Zed.log
2024-08-19T04:58:21.4848Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 127 }, peer id: PeerId { owner_id: 490, id: 21484 })
2024-08-19T04:58:21.485039Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 21484 }, connection_id: ConnectionId { owner_id: 0, id: 127 } }
2024-08-19T05:16:06.236412Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T05:16:06.236813Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T05:16:06.237278Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T05:16:06.237436Z [INFO] set status on client 152503: Reconnecting
2024-08-19T05:16:06.38845Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T05:16:06.573042Z [INFO] add connection to peer
2024-08-19T05:16:06.57348Z [INFO] add_connection;
2024-08-19T05:16:06.573837Z [INFO] waiting for server hello
2024-08-19T05:16:06.574445Z [INFO] got server hello
2024-08-19T05:16:06.574799Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 128 }, peer id: PeerId { owner_id: 490, id: 31009 })
2024-08-19T05:16:06.57541Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 31009 }, connection_id: ConnectionId { owner_id: 0, id: 128 } }
2024-08-19T05:31:45.087842Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T05:31:45.088216Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T05:31:45.088652Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T05:31:45.088806Z [INFO] set status on client 152503: Reconnecting
2024-08-19T05:47:26.638475Z [WARN] request completed with error: request or operation took longer than the configured timeout time
2024-08-19T05:47:26.638749Z [INFO] set status on client 152503: ConnectionError
2024-08-19T05:47:26.638934Z [ERROR] failed to connect request or operation took longer than the configured timeout time
2024-08-19T05:47:26.639076Z [INFO] set status on client 152503: ReconnectionError { next_reconnection: Instant { tv_sec: 40142, tv_nsec: 596796083 } }
2024-08-19T05:47:27.152958Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T05:47:27.153235Z [INFO] set status on client 152503: Reconnecting
2024-08-19T05:47:27.385784Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T05:47:27.579016Z [INFO] add connection to peer
2024-08-19T05:47:27.579167Z [INFO] add_connection;
2024-08-19T05:47:27.579333Z [INFO] waiting for server hello
2024-08-19T05:47:27.579553Z [INFO] got server hello
2024-08-19T05:47:27.579721Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 129 }, peer id: PeerId { owner_id: 490, id: 47375 })
2024-08-19T05:47:27.580003Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 47375 }, connection_id: ConnectionId { owner_id: 0, id: 129 } }
2024-08-19T05:59:21.040224Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T05:59:21.05379Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T05:59:21.054291Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T05:59:21.054463Z [INFO] set status on client 152503: Reconnecting
2024-08-19T05:59:21.318197Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T05:59:21.489022Z [INFO] add connection to peer
2024-08-19T05:59:21.489187Z [INFO] add_connection;
2024-08-19T05:59:21.489322Z [INFO] waiting for server hello
2024-08-19T05:59:21.489762Z [INFO] got server hello
2024-08-19T05:59:21.489918Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 130 }, peer id: PeerId { owner_id: 490, id: 53639 })
2024-08-19T05:59:21.490202Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 53639 }, connection_id: ConnectionId { owner_id: 0, id: 130 } }
2024-08-19T06:16:44.121418Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T06:16:44.1218Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T06:16:44.122251Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T06:16:44.122445Z [INFO] set status on client 152503: Reconnecting
2024-08-19T06:16:44.325773Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T06:16:44.519116Z [INFO] add connection to peer
2024-08-19T06:16:44.519341Z [INFO] add_connection;
2024-08-19T06:16:44.519497Z [INFO] waiting for server hello
2024-08-19T06:16:44.520126Z [INFO] got server hello
2024-08-19T06:16:44.520255Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 131 }, peer id: PeerId { owner_id: 490, id: 63159 })
2024-08-19T06:16:44.520493Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 63159 }, connection_id: ConnectionId { owner_id: 0, id: 131 } }
2024-08-19T06:32:31.107575Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T06:32:31.108047Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T06:32:31.108497Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T06:32:31.10864Z [INFO] set status on client 152503: Reconnecting
2024-08-19T06:32:31.304519Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T06:32:31.50442Z [INFO] add connection to peer
2024-08-19T06:32:31.504847Z [INFO] add_connection;
2024-08-19T06:32:31.50517Z [INFO] waiting for server hello
2024-08-19T06:32:31.505617Z [INFO] got server hello
2024-08-19T06:32:31.505837Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 132 }, peer id: PeerId { owner_id: 490, id: 71524 })
2024-08-19T06:32:31.506257Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 71524 }, connection_id: ConnectionId { owner_id: 0, id: 132 } }
2024-08-19T06:50:09.024354Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T06:50:09.024731Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T06:50:09.025148Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T06:50:09.025304Z [INFO] set status on client 152503: Reconnecting
2024-08-19T06:50:09.177455Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T06:50:09.36402Z [INFO] add connection to peer
2024-08-19T06:50:09.364299Z [INFO] add_connection;
2024-08-19T06:50:09.364486Z [INFO] waiting for server hello
2024-08-19T06:50:09.364983Z [INFO] got server hello
2024-08-19T06:50:09.365174Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 133 }, peer id: PeerId { owner_id: 490, id: 80737 })
2024-08-19T06:50:09.365488Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 80737 }, connection_id: ConnectionId { owner_id: 0, id: 133 } }
2024-08-19T07:06:08.132904Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T07:06:08.134347Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T07:06:08.134874Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T07:06:08.135165Z [INFO] set status on client 152503: Reconnecting
2024-08-19T07:06:08.303938Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T07:06:08.52205Z [INFO] add connection to peer
2024-08-19T07:06:08.522322Z [INFO] add_connection;
2024-08-19T07:06:08.522485Z [INFO] waiting for server hello
2024-08-19T07:06:08.52281Z [INFO] got server hello
2024-08-19T07:06:08.52296Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 134 }, peer id: PeerId { owner_id: 490, id: 89358 })
2024-08-19T07:06:08.523235Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 89358 }, connection_id: ConnectionId { owner_id: 0, id: 134 } }
2024-08-19T07:21:44.032016Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T07:21:44.032407Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T07:21:44.033031Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T07:21:44.033181Z [INFO] set status on client 152503: Reconnecting
2024-08-19T07:21:44.250089Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T07:21:44.4544Z [INFO] add connection to peer
2024-08-19T07:21:44.45461Z [INFO] add_connection;
2024-08-19T07:21:44.454771Z [INFO] waiting for server hello
2024-08-19T07:21:44.455562Z [INFO] got server hello
2024-08-19T07:21:44.455711Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 135 }, peer id: PeerId { owner_id: 490, id: 97180 })
2024-08-19T07:21:44.455936Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 97180 }, connection_id: ConnectionId { owner_id: 0, id: 135 } }
2024-08-19T07:38:46.116699Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T07:38:46.117051Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T07:38:46.117486Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T07:38:46.117636Z [INFO] set status on client 152503: Reconnecting
2024-08-19T07:38:46.304649Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T07:38:46.476582Z [INFO] add connection to peer
2024-08-19T07:38:46.476922Z [INFO] add_connection;
2024-08-19T07:38:46.477155Z [INFO] waiting for server hello
2024-08-19T07:38:46.477986Z [INFO] got server hello
2024-08-19T07:38:46.478455Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 136 }, peer id: PeerId { owner_id: 490, id: 105509 })
2024-08-19T07:38:46.479894Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 105509 }, connection_id: ConnectionId { owner_id: 0, id: 136 } }
2024-08-19T07:55:59.151265Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T07:55:59.151652Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T07:55:59.159124Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T07:55:59.159366Z [INFO] set status on client 152503: Reconnecting
2024-08-19T07:55:59.387981Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T07:55:59.573555Z [INFO] add connection to peer
2024-08-19T07:55:59.573896Z [INFO] add_connection;
2024-08-19T07:55:59.574136Z [INFO] waiting for server hello
2024-08-19T07:55:59.57478Z [INFO] got server hello
2024-08-19T07:55:59.57503Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 137 }, peer id: PeerId { owner_id: 490, id: 114077 })
2024-08-19T07:55:59.575441Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 114077 }, connection_id: ConnectionId { owner_id: 0, id: 137 } }
2024-08-19T08:13:29.091441Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T08:13:29.091883Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T08:13:29.09245Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T08:13:29.092602Z [INFO] set status on client 152503: Reconnecting
2024-08-19T08:13:29.269163Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T08:13:29.523235Z [INFO] add connection to peer
2024-08-19T08:13:29.523637Z [INFO] add_connection;
2024-08-19T08:13:29.523982Z [INFO] waiting for server hello
2024-08-19T08:13:29.524792Z [INFO] got server hello
2024-08-19T08:13:29.525099Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 138 }, peer id: PeerId { owner_id: 490, id: 123470 })
2024-08-19T08:13:29.525687Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 123470 }, connection_id: ConnectionId { owner_id: 0, id: 138 } }
2024-08-19T08:28:33.854953Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T08:28:33.855626Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T08:28:33.856232Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T08:28:33.856647Z [INFO] set status on client 152503: Reconnecting
2024-08-19T08:28:34.05744Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T08:28:34.248Z [INFO] add connection to peer
2024-08-19T08:28:34.248403Z [INFO] add_connection;
2024-08-19T08:28:34.248727Z [INFO] waiting for server hello
2024-08-19T08:28:34.250096Z [INFO] got server hello
2024-08-19T08:28:34.250448Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 139 }, peer id: PeerId { owner_id: 490, id: 131039 })
2024-08-19T08:28:34.251177Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 131039 }, connection_id: ConnectionId { owner_id: 0, id: 139 } }
2024-08-19T08:43:36.96976Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T08:43:36.970198Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T08:43:36.971352Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T08:43:36.972313Z [INFO] set status on client 152503: Reconnecting
2024-08-19T08:43:37.157241Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T08:43:37.352179Z [INFO] add connection to peer
2024-08-19T08:43:37.352459Z [INFO] add_connection;
2024-08-19T08:43:37.352631Z [INFO] waiting for server hello
2024-08-19T08:43:37.354032Z [INFO] got server hello
2024-08-19T08:43:37.354203Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 140 }, peer id: PeerId { owner_id: 490, id: 138565 })
2024-08-19T08:43:37.354503Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 138565 }, connection_id: ConnectionId { owner_id: 0, id: 140 } }
2024-08-19T08:58:51.110169Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T08:58:51.110875Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T08:58:51.111457Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T08:58:51.111595Z [INFO] set status on client 152503: Reconnecting
2024-08-19T08:58:51.260679Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T08:58:51.456519Z [INFO] add connection to peer
2024-08-19T08:58:51.456921Z [INFO] add_connection;
2024-08-19T08:58:51.457232Z [INFO] waiting for server hello
2024-08-19T08:58:51.457647Z [INFO] got server hello
2024-08-19T08:58:51.458096Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 141 }, peer id: PeerId { owner_id: 490, id: 146056 })
2024-08-19T08:58:51.458691Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 146056 }, connection_id: ConnectionId { owner_id: 0, id: 141 } }
2024-08-19T09:16:36.087308Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T09:16:36.08769Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T09:16:36.088137Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T09:16:36.088296Z [INFO] set status on client 152503: Reconnecting
2024-08-19T09:16:36.30067Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T09:16:36.491588Z [INFO] add connection to peer
2024-08-19T09:16:36.491942Z [INFO] add_connection;
2024-08-19T09:16:36.492254Z [INFO] waiting for server hello
2024-08-19T09:16:36.492704Z [INFO] got server hello
2024-08-19T09:16:36.493015Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 142 }, peer id: PeerId { owner_id: 490, id: 155120 })
2024-08-19T09:16:36.493622Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 155120 }, connection_id: ConnectionId { owner_id: 0, id: 142 } }
2024-08-19T09:33:31.136218Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T09:33:31.136594Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T09:33:31.13712Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T09:33:31.137287Z [INFO] set status on client 152503: Reconnecting
2024-08-19T09:33:31.393362Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T09:33:31.577272Z [INFO] add connection to peer
2024-08-19T09:33:31.577587Z [INFO] add_connection;
2024-08-19T09:33:31.577824Z [INFO] waiting for server hello
2024-08-19T09:33:31.578433Z [INFO] got server hello
2024-08-19T09:33:31.578749Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 143 }, peer id: PeerId { owner_id: 490, id: 163862 })
2024-08-19T09:33:31.579171Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 163862 }, connection_id: ConnectionId { owner_id: 0, id: 143 } }
2024-08-19T09:49:31.919515Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T09:49:31.919875Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T09:49:31.920582Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T09:49:31.924878Z [INFO] set status on client 152503: Reconnecting
2024-08-19T09:49:32.095135Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T09:49:32.285649Z [INFO] add connection to peer
2024-08-19T09:49:32.286046Z [INFO] add_connection;
2024-08-19T09:49:32.286361Z [INFO] waiting for server hello
2024-08-19T09:49:32.287203Z [INFO] got server hello
2024-08-19T09:49:32.287536Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 144 }, peer id: PeerId { owner_id: 490, id: 171911 })
2024-08-19T09:49:32.288113Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 171911 }, connection_id: ConnectionId { owner_id: 0, id: 144 } }
2024-08-19T10:00:01.013419Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T10:00:01.013834Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T10:00:01.014329Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T10:00:01.014669Z [INFO] set status on client 152503: Reconnecting
2024-08-19T10:00:01.196637Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T10:00:01.394803Z [INFO] add connection to peer
2024-08-19T10:00:01.395291Z [INFO] add_connection;
2024-08-19T10:00:01.395621Z [INFO] waiting for server hello
2024-08-19T10:00:01.396288Z [INFO] got server hello
2024-08-19T10:00:01.396609Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 145 }, peer id: PeerId { owner_id: 490, id: 177167 })
2024-08-19T10:00:01.397206Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 177167 }, connection_id: ConnectionId { owner_id: 0, id: 145 } }
2024-08-19T10:17:14.018131Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T10:17:14.018469Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T10:17:14.018835Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T10:17:14.018976Z [INFO] set status on client 152503: Reconnecting
2024-08-19T10:17:14.184105Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T10:17:14.442824Z [INFO] add connection to peer
2024-08-19T10:17:14.443182Z [INFO] add_connection;
2024-08-19T10:17:14.443487Z [INFO] waiting for server hello
2024-08-19T10:17:14.444362Z [INFO] got server hello
2024-08-19T10:17:14.444687Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 146 }, peer id: PeerId { owner_id: 490, id: 186145 })
2024-08-19T10:17:14.445364Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 186145 }, connection_id: ConnectionId { owner_id: 0, id: 146 } }
2024-08-19T10:33:03.110304Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T10:33:03.11067Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T10:33:03.111828Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T10:33:03.112457Z [INFO] set status on client 152503: Reconnecting
2024-08-19T10:33:03.330856Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T10:33:03.510266Z [INFO] add connection to peer
2024-08-19T10:33:03.510527Z [INFO] add_connection;
2024-08-19T10:33:03.510768Z [INFO] waiting for server hello
2024-08-19T10:33:03.511528Z [INFO] got server hello
2024-08-19T10:33:03.511651Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 147 }, peer id: PeerId { owner_id: 490, id: 194391 })
2024-08-19T10:33:03.511871Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 194391 }, connection_id: ConnectionId { owner_id: 0, id: 147 } }
2024-08-19T10:48:44.823134Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T10:48:44.823431Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T10:48:44.834931Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T10:48:44.835303Z [INFO] set status on client 152503: Reconnecting
2024-08-19T10:48:45.04009Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T10:48:45.234102Z [INFO] add connection to peer
2024-08-19T10:48:45.2344Z [INFO] add_connection;
2024-08-19T10:48:45.234568Z [INFO] waiting for server hello
2024-08-19T10:48:45.235074Z [INFO] got server hello
2024-08-19T10:48:45.235434Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 148 }, peer id: PeerId { owner_id: 490, id: 202503 })
2024-08-19T10:48:45.235733Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 202503 }, connection_id: ConnectionId { owner_id: 0, id: 148 } }
2024-08-19T10:51:31.701693Z [ERROR] connection error: error reading rpc message from socket

Caused by:
0: WebSocket protocol error: Connection reset without closing handshake
1: Connection reset without closing handshake
2024-08-19T10:51:31.702112Z [INFO] set status on client 152503: ConnectionLost
2024-08-19T10:51:31.702734Z [INFO] set status on client 152503: Reauthenticating
2024-08-19T10:51:31.702898Z [INFO] set status on client 152503: Reconnecting
2024-08-19T10:51:31.87528Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T10:51:32.159842Z [INFO] add connection to peer
2024-08-19T10:51:32.160126Z [INFO] add_connection;
2024-08-19T10:51:32.160264Z [INFO] waiting for server hello
2024-08-19T10:51:32.161086Z [INFO] got server hello
2024-08-19T10:51:32.161261Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 149 }, peer id: PeerId { owner_id: 490, id: 203975 })
2024-08-19T10:51:32.161503Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 203975 }, connection_id: ConnectionId { owner_id: 0, id: 149 } }
2024-08-19T10:52:02.922697Z [INFO] starting language servers for C: clangd
2024-08-19T10:52:26.166232Z [ERROR] Aborting replay after 10000 actions
2024-08-19T10:52:41.79097Z [ERROR] Aborting replay after 10000 actions
2024-08-19T10:53:06.470536Z [ERROR] Aborting replay after 10000 actions
2024-08-19T11:01:13.103308Z [INFO] ========== starting zed ==========
2024-08-19T11:01:13.106166Z [INFO] Opening main db
2024-08-19T11:01:13.109589Z [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2024-08-19T11:01:13.234467Z [ERROR] theme not found: Catppuccin Mocha - No Italics
2024-08-19T11:01:13.238019Z [INFO] extensions updated. loading 8, reloading 0, unloading 0
2024-08-19T11:01:13.272871Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.273056Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.273175Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.273752Z [INFO] Opening main db
2024-08-19T11:01:13.273901Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.274082Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.274245Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.274343Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.274464Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.275682Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.276675Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.278395Z [ERROR] theme not found: Catppuccin Mocha - No Italics
2024-08-19T11:01:13.2789Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.280171Z [ERROR] theme not found: Catppuccin Mocha - No Italics
2024-08-19T11:01:13.281145Z [ERROR] theme not found: Catppuccin Mocha - No Italics
2024-08-19T11:01:13.281743Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.281872Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.431083Z [INFO] set status on client 0: Authenticating
2024-08-19T11:01:13.448467Z [INFO] Opening main db
2024-08-19T11:01:13.448577Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.46611Z [INFO] set status on client 152503: Connecting
2024-08-19T11:01:13.466576Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.499686Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.506313Z [INFO] Opening main db
2024-08-19T11:01:13.5469Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.548428Z [INFO] Node runtime install_if_needed
2024-08-19T11:01:13.570855Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.571419Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T11:01:13.606227Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:01:13.606363Z [INFO] starting language servers for C: clangd
2024-08-19T11:01:13.606505Z [INFO] starting language server "clangd", path: "/Users/natac/code/sandbox/c-playground", id: 1
2024-08-19T11:01:13.607563Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:01:13.607656Z [INFO] starting language servers for C: clangd
2024-08-19T11:01:13.608159Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:01:13.608279Z [INFO] starting language servers for C: clangd
2024-08-19T11:01:13.608527Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:01:13.608687Z [INFO] starting language servers for C: clangd
2024-08-19T11:01:13.608743Z [INFO] starting language servers for C: clangd
2024-08-19T11:01:13.608885Z [INFO] starting language servers for C: clangd
2024-08-19T11:01:13.610363Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:01:13.610437Z [INFO] starting language servers for C: clangd
2024-08-19T11:01:13.610494Z [INFO] starting language server "clangd", path: "/Users/natac/code/sandbox/c-playground", id: 2
2024-08-19T11:01:13.611325Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:01:13.611392Z [INFO] starting language servers for C: clangd
2024-08-19T11:01:13.611919Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:01:13.611957Z [INFO] starting language servers for C: clangd
2024-08-19T11:01:13.617553Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:13.663308Z [INFO] starting language server. binary path: "/Users/natac/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/", args: ["/Users/natac/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-08-19T11:01:13.721917Z [INFO] add connection to peer
2024-08-19T11:01:13.721972Z [INFO] add_connection;
2024-08-19T11:01:13.722008Z [INFO] waiting for server hello
2024-08-19T11:01:13.732472Z [INFO] got server hello
2024-08-19T11:01:13.732553Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 490, id: 209425 })
2024-08-19T11:01:13.73262Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 209425 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-08-19T11:01:13.892772Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
"level": 0,
"message": "[DEBUG] [agent] [2024-08-19T11:01:13.890Z] Agent service starting",
"metadataStr": "[DEBUG] [agent] [2024-08-19T11:01:13.890Z]",
"extra": [
"Agent service starting"
]
}
2024-08-19T11:01:13.893884Z [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
"registrations": [
{
"id": "a4d204c9-aeac-4990-a670-c9535df4981d",
"method": "workspace/didChangeWorkspaceFolders",
"registerOptions": {}
}
]
}
2024-08-19T11:01:13.984834Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:01:13.984904Z [INFO] starting language servers for C: clangd
2024-08-19T11:01:13.98495Z [INFO] starting language servers for C: clangd
2024-08-19T11:01:13.984993Z [INFO] starting language servers for C: clangd
2024-08-19T11:01:13.985038Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:01:13.985079Z [INFO] starting language servers for C: clangd
2024-08-19T11:01:13.985132Z [INFO] starting language servers for C: clangd
2024-08-19T11:01:13.985186Z [INFO] starting language servers for C: clangd
2024-08-19T11:01:13.986243Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:01:14.159058Z [INFO] set environment variables from shell:/bin/zsh, path:/Users/natac/.pyenv/shims:/bin:/usr/local/bin:/Users/natac/.nvm/versions/node/v20.12.2/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/natac/Library/pnpm:/Users/natac/.nvm/versions/node/v20.12.2/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/natac/.cargo/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Users/natac/go/bin:/Users/natac/.yarn/bin:/Users/natac/go/bin
2024-08-19T11:01:14.166908Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
"level": 0,
"message": "[DEBUG] [agent] [2024-08-19T11:01:14.164Z] Telemetry initialized",
"metadataStr": "[DEBUG] [agent] [2024-08-19T11:01:14.164Z]",
"extra": [
"Telemetry initialized"
]
}
2024-08-19T11:01:15.166933Z [INFO] found user-installed language server for C. path: "/usr/bin/clangd", arguments: []
2024-08-19T11:01:15.167038Z [INFO] starting language server. binary path: "/usr/bin/clangd", working directory: "/Users/natac/code/sandbox/c-playground", args: []
2024-08-19T11:01:16.078276Z [INFO] found user-installed language server for C. path: "/usr/bin/clangd", arguments: []
2024-08-19T11:01:16.07862Z [INFO] starting language server. binary path: "/usr/bin/clangd", working directory: "/Users/natac/code/sandbox/c-playground", args: []
2024-08-19T11:01:28.820387Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:01:28.820652Z [INFO] starting language servers for C: clangd
2024-08-19T11:04:06.730697Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:04:06.730801Z [INFO] starting language servers for C: clangd
2024-08-19T11:04:06.730866Z [INFO] starting language servers for C: clangd
2024-08-19T11:04:06.730917Z [INFO] starting language servers for C: clangd
2024-08-19T11:04:06.730973Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:04:06.731034Z [INFO] starting language servers for C: clangd
2024-08-19T11:04:06.731085Z [INFO] starting language servers for C: clangd
2024-08-19T11:04:06.731136Z [INFO] starting language servers for C: clangd
2024-08-19T11:04:06.733376Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:04:06.733451Z [INFO] starting language servers for C++: clangd
2024-08-19T11:04:06.737887Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:04:15.77077Z [ERROR] no worktree found for diagnostics path "/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/malloc/_malloc.h"
2024-08-19T11:04:33.082019Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:04:33.082288Z [INFO] starting language servers for C: clangd
2024-08-19T11:05:05.505171Z [ERROR] Aborting replay after 10000 actions
2024-08-19T11:05:11.595745Z [ERROR] Aborting replay after 10000 actions
2024-08-19T11:05:18.934846Z [ERROR] Aborting replay after 10000 actions
2024-08-19T11:05:27.480417Z [ERROR] Aborting replay after 10000 actions
2024-08-19T11:56:16.189329Z [INFO] ========== starting zed ==========
2024-08-19T11:56:16.190214Z [INFO] Opening main db
2024-08-19T11:56:16.191616Z [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2024-08-19T11:56:16.307905Z [ERROR] theme not found: Catppuccin Mocha - No Italics
2024-08-19T11:56:16.30906Z [INFO] extensions updated. loading 8, reloading 0, unloading 0
2024-08-19T11:56:16.338937Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.33918Z [INFO] Opening main db
2024-08-19T11:56:16.339281Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.339359Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.33968Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.339765Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.339831Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.339888Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.339943Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.340628Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.342261Z [ERROR] theme not found: Catppuccin Mocha - No Italics
2024-08-19T11:56:16.342901Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.459247Z [INFO] set status on client 0: Authenticating
2024-08-19T11:56:16.460059Z [INFO] Opening main db
2024-08-19T11:56:16.46028Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.461476Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.461553Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.461609Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.462045Z [INFO] set status on client 152503: Connecting
2024-08-19T11:56:16.462257Z [INFO] Opening main db
2024-08-19T11:56:16.473761Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.488144Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.520749Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:56:16.520845Z [INFO] starting language servers for C: clangd
2024-08-19T11:56:16.520915Z [INFO] starting language server "clangd", path: "/Users/natac/code/sandbox/c-playground", id: 1
2024-08-19T11:56:16.521413Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:56:16.521484Z [INFO] starting language servers for C: clangd
2024-08-19T11:56:16.522027Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:56:16.522103Z [INFO] starting language servers for C: clangd
2024-08-19T11:56:16.522545Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:56:16.522609Z [INFO] starting language servers for C: clangd
2024-08-19T11:56:16.52275Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:56:16.522803Z [INFO] starting language servers for C: clangd
2024-08-19T11:56:16.522869Z [INFO] starting language servers for C: clangd
2024-08-19T11:56:16.522926Z [INFO] starting language servers for C: clangd
2024-08-19T11:56:16.522977Z [INFO] starting language servers for C: clangd
2024-08-19T11:56:16.525872Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:16.586345Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T11:56:16.59403Z [INFO] Node runtime install_if_needed
2024-08-19T11:56:16.691116Z [INFO] starting language server. binary path: "/Users/natac/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/", args: ["/Users/natac/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-08-19T11:56:16.732667Z [INFO] add connection to peer
2024-08-19T11:56:16.732823Z [INFO] add_connection;
2024-08-19T11:56:16.732921Z [INFO] waiting for server hello
2024-08-19T11:56:16.740718Z [INFO] got server hello
2024-08-19T11:56:16.740855Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 490, id: 239048 })
2024-08-19T11:56:16.741105Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 239048 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-08-19T11:56:16.927645Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
"level": 0,
"message": "[DEBUG] [agent] [2024-08-19T11:56:16.925Z] Agent service starting",
"metadataStr": "[DEBUG] [agent] [2024-08-19T11:56:16.925Z]",
"extra": [
"Agent service starting"
]
}
2024-08-19T11:56:16.932508Z [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
"registrations": [
{
"id": "bedeafa3-b534-4d69-8d67-2369b9941112",
"method": "workspace/didChangeWorkspaceFolders",
"registerOptions": {}
}
]
}
2024-08-19T11:56:16.966439Z [INFO] set environment variables from shell:/bin/zsh, path:/Users/natac/.pyenv/shims:/bin:/Users/natac/Library/pnpm:/usr/local/bin:/Users/natac/.nvm/versions/node/v20.12.2/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/natac/.cargo/bin:/Users/natac/go/bin:/Users/natac/.yarn/bin
2024-08-19T11:56:16.994978Z [INFO] Initializing default prettier with plugins {}
2024-08-19T11:56:16.995066Z [INFO] starting language servers for C: clangd
2024-08-19T11:56:16.995125Z [INFO] starting language servers for C: clangd
2024-08-19T11:56:16.995189Z [INFO] starting language servers for C: clangd
2024-08-19T11:56:16.995324Z [INFO] starting language servers for C: clangd
2024-08-19T11:56:16.996593Z [WARN] request completed with error: failed to connect to the server
2024-08-19T11:56:17.265845Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
"level": 0,
"message": "[DEBUG] [agent] [2024-08-19T11:56:17.258Z] Telemetry initialized",
"metadataStr": "[DEBUG] [agent] [2024-08-19T11:56:17.258Z]",
"extra": [
"Telemetry initialized"
]
}
2024-08-19T11:56:17.848062Z [INFO] found user-installed language server for C. path: "/usr/bin/clangd", arguments: []
2024-08-19T11:56:17.848152Z [INFO] starting language server. binary path: "/usr/bin/clangd", working directory: "/Users/natac/code/sandbox/c-playground", args: []
2024-08-19T11:56:51.686542Z [ERROR] Aborting replay after 10000 actions
2024-08-19T11:57:04.866914Z [ERROR] Aborting replay after 10000 actions
2024-08-19T11:57:36.575408Z [ERROR] Aborting replay after 10000 actions
2024-08-19T11:57:55.654462Z [ERROR] Aborting replay after 10000 actions
2024-08-19T12:00:23.594117Z [ERROR] Aborting replay after 10000 actions
2024-08-19T12:00:42.25635Z [ERROR] oneshot canceled
2024-08-19T12:00:42.432063Z [INFO] ========== starting zed ==========
2024-08-19T12:00:42.43304Z [INFO] Opening main db
2024-08-19T12:00:42.43627Z [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2024-08-19T12:00:42.54881Z [ERROR] theme not found: Catppuccin Mocha - No Italics
2024-08-19T12:00:42.549946Z [INFO] extensions updated. loading 8, reloading 0, unloading 0
2024-08-19T12:00:42.58075Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.581016Z [INFO] Opening main db
2024-08-19T12:00:42.581099Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.581207Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.581561Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.581637Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.581712Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.581782Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.581859Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.582532Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.584023Z [ERROR] theme not found: Catppuccin Mocha - No Italics
2024-08-19T12:00:42.584477Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.622691Z [ERROR] theme not found: Catppuccin Mocha - No Italics
2024-08-19T12:00:42.62372Z [ERROR] theme not found: Catppuccin Mocha - No Italics
2024-08-19T12:00:42.624185Z [INFO] Opening main db
2024-08-19T12:00:42.62433Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.624966Z [INFO] set status on client 0: Authenticating
2024-08-19T12:00:42.625443Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.625543Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.626076Z [INFO] Opening main db
2024-08-19T12:00:42.63529Z [INFO] set status on client 152503: Connecting
2024-08-19T12:00:42.636445Z [ERROR] theme not found: Catppuccin Mocha - No Italics
2024-08-19T12:00:42.637076Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.654012Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.687447Z [INFO] Initializing default prettier with plugins {}
2024-08-19T12:00:42.687541Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:42.687606Z [INFO] starting language server "clangd", path: "/Users/natac/code/sandbox/c-playground", id: 1
2024-08-19T12:00:42.688055Z [INFO] Initializing default prettier with plugins {}
2024-08-19T12:00:42.688116Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:42.688645Z [INFO] Initializing default prettier with plugins {}
2024-08-19T12:00:42.688712Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:42.689293Z [INFO] Initializing default prettier with plugins {}
2024-08-19T12:00:42.689389Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:42.689626Z [INFO] Initializing default prettier with plugins {}
2024-08-19T12:00:42.689786Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:42.689875Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:42.689992Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:42.690122Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:42.691641Z [INFO] Initializing default prettier with plugins {}
2024-08-19T12:00:42.6917Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:42.691759Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:42.691814Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:42.691866Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:42.692533Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.695811Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:42.732475Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-19T12:00:42.852238Z [INFO] Node runtime install_if_needed
2024-08-19T12:00:42.893782Z [INFO] add connection to peer
2024-08-19T12:00:42.893864Z [INFO] add_connection;
2024-08-19T12:00:42.893926Z [INFO] waiting for server hello
2024-08-19T12:00:42.902613Z [INFO] got server hello
2024-08-19T12:00:42.902686Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 490, id: 241819 })
2024-08-19T12:00:42.902805Z [INFO] set status on client 152503: Connected { peer_id: PeerId { owner_id: 490, id: 241819 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-08-19T12:00:42.977274Z [INFO] starting language server. binary path: "/Users/natac/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/", args: ["/Users/natac/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-08-19T12:00:43.185606Z [INFO] Initializing default prettier with plugins {}
2024-08-19T12:00:43.18577Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:43.185883Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:43.185962Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:43.186135Z [INFO] starting language servers for C: clangd
2024-08-19T12:00:43.194185Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:00:43.202221Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
"level": 0,
"message": "[DEBUG] [agent] [2024-08-19T12:00:43.193Z] Agent service starting",
"metadataStr": "[DEBUG] [agent] [2024-08-19T12:00:43.193Z]",
"extra": [
"Agent service starting"
]
}
2024-08-19T12:00:43.210508Z [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
"registrations": [
{
"id": "b17d788d-013f-4bef-aec5-b1caab483045",
"method": "workspace/didChangeWorkspaceFolders",
"registerOptions": {}
}
]
}
2024-08-19T12:00:43.265044Z [INFO] set environment variables from shell:/bin/zsh, path:/Users/natac/.pyenv/shims:/bin:/usr/local/bin:/Users/natac/.nvm/versions/node/v20.12.2/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/natac/Library/pnpm:/Users/natac/.nvm/versions/node/v20.12.2/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/natac/.cargo/bin:/Users/natac/go/bin:/Users/natac/.yarn/bin:/Users/natac/go/bin
2024-08-19T12:00:44.109469Z [INFO] found user-installed language server for C. path: "/usr/bin/clangd", arguments: []
2024-08-19T12:00:44.109559Z [INFO] starting language server. binary path: "/usr/bin/clangd", working directory: "/Users/natac/code/sandbox/c-playground", args: []
2024-08-19T12:00:55.733669Z [ERROR] Aborting replay after 10000 actions
2024-08-19T12:01:15.838067Z [ERROR] oneshot canceled
2024-08-19T12:06:02.913157Z [WARN] request completed with error: failed to connect to the server
2024-08-19T12:06:02.933952Z [ERROR] no worktrees when constructing ProjectLspAdapterDelegate
2024-08-19T12:06:07.211383Z [INFO] Initializing default prettier with plugins {}
2024-08-19T12:06:07.211532Z [INFO] starting language servers for C: clangd
2024-08-19T12:06:07.211613Z [INFO] starting language server "clangd", path: "/Users/natac/code/sandbox/c-playground", id: 2
2024-08-19T12:06:07.212873Z [INFO] Initializing default prettier with plugins {}
2024-08-19T12:06:07.212964Z [INFO] starting language servers for C: clangd
2024-08-19T12:06:07.213648Z [INFO] Initializing default prettier with plugins {}
2024-08-19T12:06:07.213729Z [INFO] starting language servers for C: clangd
2024-08-19T12:06:07.219263Z [INFO] Initializing default prettier with plugins {}
2024-08-19T12:06:07.219369Z [INFO] starting language servers for C: clangd
2024-08-19T12:06:08.121866Z [INFO] found user-installed language server for C. path: "/usr/bin/clangd", arguments: []
2024-08-19T12:06:08.121995Z [INFO] starting language server. binary path: "/usr/bin/clangd", working directory: "/Users/natac/code/sandbox/c-playground", args: []
2024-08-19T12:07:55.227144Z [INFO] open paths ["/Users/natac/code/sandbox/c-playground"]
2024-08-19T12:08:45.340637Z [ERROR] Aborting replay after 10000 actions
2024-08-19T12:08:47.209386Z [ERROR] Aborting replay after 10000 actions
2024-08-19T12:09:05.657874Z [ERROR] Aborting replay after 10000 actions
2024-08-19T12:10:52.067363Z [ERROR] Aborting replay after 10000 actions

@natac13 natac13 added admin read bug [core label] labels Aug 19, 2024
@JosephTLyons JosephTLyons added vim freeze Editor or OS - freezing / hanging / locking performance Feedback for performance issues, speed, memory usage, etc and removed triage labels Aug 23, 2024
@JosephTLyons JosephTLyons added linux platform support An umbrella label for all platforms and removed linux platform support An umbrella label for all platforms labels Sep 10, 2024
@ConradIrwin
Copy link
Member

@natac13 I cannot reproduce this. Can you still?

@notpeter notpeter added the awaiting info Issue that needs more information from the user label Dec 4, 2024
@natac13
Copy link
Author

natac13 commented Dec 6, 2024

I did an update to Zed and it freezes a lot less (almost not at all) but now does some weird thing where it adds a ) to a random line.

In the video I am trying to do ctl (change to l) and then I type kr then esc then when I go to the next lines position I am typing . and you will see it happens
https://github.com/user-attachments/assets/7fbd90e4-c3d5-4c41-ade1-70226ac80399

At 11 seconds where it looks like Im just sitting there doing nothing, I am actually hammering my period key 🤣
https://github.com/user-attachments/assets/0175b421-f583-4df5-8769-f68072af35e0

Here is the exact file if you need

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct lnode {
  char *text;
  struct lnode *next;
};

struct krlist {
  struct lnode *head;
  struct lnode *tail;
  int count;
};

// Constructor - lst = list()
struct krlist *krlist_new() {
  struct krlist *p = malloc(sizeof(*p));
  p->head = NULL;
  p->tail = NULL;
  p->count = 0;
  return p;
}

// Destructor - del lst
void krlist_del(struct krlist *self) {
  struct lnode *cur, *next;
  cur = self->head;
  while (cur) {
    free(cur->text);
    next = cur->next;
    free(cur);
    cur = next;
  }
  free((void *)self);
}

void krlist_print(struct krlist *self) {
  struct lnode *cur;
  int i = 0;
  cur = self->head;
  printf("[");
  while (cur) {
    if (i++ > 0) {
      printf(", ");
    }
    printf("'%s'", cur->text);
    cur = cur->next;
  }
  printf("]\n");
}

void krlist_append(struct krlist *self, char *text) {
  // Create a new node
  struct lnode *node = malloc(sizeof(*node));
  // create a new text buffer
  node->text = malloc(strlen(text) + 1);
  // copy the text into the new node
  strcpy(node->text, text);
  // node->text = text;
  node->next = NULL;
  if (self->count == 0) {
    self->head = node;
  } else {
    // update the next pointer of the current tail
    // check if the tail is NULL
    if (self->tail == NULL) {
      printf("Error: tail is NULL\n");
      exit(1);
    }
    self->tail->next = node;
  }
  self->tail = node;
  self->count++;
}

int krlist_len(struct krlist *self) { return self->count; }

int krlist_index(struct krlist *self, char *str) {
  struct lnode *cur;
  int i = 0;
  cur = self->head;
  while (cur) {
    if (strcmp(cur->text, str) == 0) {
      return i;
    }
    cur = cur->next;
    i++;
  }
  return -1;
}

int main() {
  struct krlist *lst = krlist_new();
  krlist_append(lst, "Hello World");
  krlist_print(lst);
  pylist_append(lst, "Catch phrase");
  krlist_print(lst);
  pylist_append(lst, "Brian");
  pylist_print(lst);
  pylist_len(lst);
  pylist_index(lst, "Brian");
  pylist_index(lst, "Bob");
  pylist_del(lst);
}

@JosephTLyons JosephTLyons removed the awaiting info Issue that needs more information from the user label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] freeze Editor or OS - freezing / hanging / locking performance Feedback for performance issues, speed, memory usage, etc vim
Projects
None yet
Development

No branches or pull requests

4 participants