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

Migration changed for WorkspaceDb #21987

Open
1 task done
Angelk90 opened this issue Dec 13, 2024 · 1 comment
Open
1 task done

Migration changed for WorkspaceDb #21987

Angelk90 opened this issue Dec 13, 2024 · 1 comment
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue

Comments

@Angelk90
Copy link

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Every time I run Zed latest code from repository I get code like this printed.

What can I do so that I don't get these types of messages anymore.

[2024-12-13T20:35:04+01:00 ERROR Users] Migration changed for WorkspaceDb at step 14

Stored migration:
CREATE TABLE breakpoints (
  workspace_id INTEGER NOT NULL,
  worktree_path BLOB NOT NULL,
  relative_path BLOB NOT NULL,
  breakpoint_location INTEGER NOT NULL,
  FOREIGN KEY (workspace_id) REFERENCES workspaces (workspace_id) ON DELETE CASCADE ON UPDATE CASCADE
) STRICT;

Proposed migration:
ALTER TABLE
  panes
ADD
  COLUMN pinned_count INTEGER DEFAULT 0;
[2024-12-13T20:35:04+01:00 ERROR editor] buffer has no file
[2024-12-13T20:35:05+01:00 ERROR Users] Migration changed for WorkspaceDb at step 14

Stored migration:
CREATE TABLE breakpoints (
  workspace_id INTEGER NOT NULL,
  worktree_path BLOB NOT NULL,
  relative_path BLOB NOT NULL,
  breakpoint_location INTEGER NOT NULL,
  FOREIGN KEY (workspace_id) REFERENCES workspaces (workspace_id) ON DELETE CASCADE ON UPDATE CASCADE
) STRICT;

Proposed migration:
ALTER TABLE
  panes
ADD
  COLUMN pinned_count INTEGER DEFAULT 0;
[2024-12-13T20:35:05+01:00 ERROR Users] Migration changed for WorkspaceDb at step 14

Stored migration:
CREATE TABLE breakpoints (
  workspace_id INTEGER NOT NULL,
  worktree_path BLOB NOT NULL,
  relative_path BLOB NOT NULL,
  breakpoint_location INTEGER NOT NULL,
  FOREIGN KEY (workspace_id) REFERENCES workspaces (workspace_id) ON DELETE CASCADE ON UPDATE CASCADE
) STRICT;

Proposed migration:
ALTER TABLE
  panes
ADD
  COLUMN pinned_count INTEGER DEFAULT 0;

Environment

Zed: v0.166.0 (Zed Preview)
OS: macOS 14.1.1
Memory: 16 GiB
Architecture: x86_64

If applicable, add screenshots or screencasts of the incorrect state / behavior

No response

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

Zed.log

@Angelk90 Angelk90 added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Dec 13, 2024
@osiewicz
Copy link
Contributor

rm -rf ~/Library/Application\ Support/Zed/db/0-dev
You've built Zed with debugger support and that interferes with the db layout that we have on latest main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue
Projects
None yet
Development

No branches or pull requests

2 participants