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

test_window_edit_state_restoring_enabled failing #21118

Open
1 task done
drdozer opened this issue Nov 23, 2024 · 0 comments
Open
1 task done

test_window_edit_state_restoring_enabled failing #21118

drdozer opened this issue Nov 23, 2024 · 0 comments
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue

Comments

@drdozer
Copy link

drdozer commented Nov 23, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Building from main, all tests pass except for this. I've checked, and the settings.json file exists. This is from a clean checkout of the build, so it is possible something wasn't correctly initialized or migrated.

$ ls -lh /home/nmrp3/.config/zed
total 8.0K
-rw------- 1 nmrp3 nmrp3  807 Nov 23 16:58 settings.json
drwxr-xr-x 2 nmrp3 nmrp3 4.0K Oct 15 17:06 themes
$ ls /home/nmrp3/.config/zed/settings.json
/home/nmrp3/.config/zed/settings.json

So I think there's several things going on here, including some error messages being incorrect.

failures:

---- zed::tests::test_window_edit_state_restoring_enabled stdout ----
[2024-11-23T17:21:53Z ERROR settings] Failed to write settings to file "/home/nmrp3/.config/zed/settings.json"

    Caused by:
        not found: /home/nmrp3/.config/zed
[2024-11-23T17:21:53Z ERROR settings] Failed to write settings to file "/home/nmrp3/.config/zed/settings.json"

    Caused by:
        not found: /home/nmrp3/.config/zed
[2024-11-23T17:21:53Z ERROR theme] theme not found: One Light
[2024-11-23T17:21:54Z ERROR client::telemetry] Failed to send events: HTTP 404
[2024-11-23T17:21:54Z ERROR workspace] failed to save contents of buffer

    Caused by:
        0: failed to save serialized editor
        1: Error in save_serialized_editor, exec_bound failed to execute or parse for: INSERT INTO
             editors (
               item_id,
               workspace_id,
               path,
               contents,
               language,
               mtime_seconds,
               mtime_nanos
             )
           VALUES
             (?1, ?2, ?3, ?4, ?5, ?6, ?7) ON CONFLICT DO
           UPDATE
           SET
             item_id = ?1,
             workspace_id = ?2,
             path = ?3,
             contents = ?4,
             language = ?5,
             mtime_seconds = ?6,
             mtime_nanos = ?7
        2: Sqlite call failed with code 787 and message: Some("FOREIGN KEY constraint failed")
thread 'zed::tests::test_window_edit_state_restoring_enabled' panicked at crates/zed/src/zed.rs:1646:9:
assertion `left == right` failed
  left: 1
 right: 0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    zed::tests::test_window_edit_state_restoring_enabled

test result: FAILED. 21 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.15s

error: test failed, to rerun pass `-p zed --bin zed

Environment

Zed: v0.162.5 (Zed)
OS: Linux X11 devuan 5
Memory: 62.8 GiB
Architecture: x86_64
GPU: NVIDIA GeForce GTX TITAN X || NVIDIA || 535.183.01

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

@drdozer drdozer added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Nov 23, 2024
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

1 participant