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

Typechange from File to Symlink breaks the UI with "Something went wrong" #5179

Open
Byron opened this issue Oct 16, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Byron
Copy link
Collaborator

Byron commented Oct 16, 2024

Version

0.13.1

Operating System

macOS

Distribution Method

dmg (Apple Silicon)

Describe the issue

The UI enters this state.

Screenshot 2024-10-16 at 22 20 07

How to reproduce

When the typechange is undone with git checkout README.md it works again, but only after a refresh.

Expected behavior

The UI should be able to show the typechange.

Relevant log output

list_virtual_branches [ 5.71ms | 100.00% ] project_id: e1fce08a-8eb2-4319-85bd-0c01faa9ff30
ERROR    ┕━ 🚨 [error]:  | error: Error(failed to diff workdir

Caused by:
    0: failed to print diff: Some("Encountered an invalid internal state related to the diff: Some(FileDiff { old_path: Some(\"README.md\"), new_path: Some(\"README.md\"), hunks: [GitHunk { old_start: 1, old_lines: 32, new_start: 0, new_lines: 0, diff_lines: BStringForFrontend(\"@@ -1,32 +0,0 @@\\n-# cmake\\n-\\n-[Documentation](https://docs.rs/cmake)\\n-\\n-A build dependency for running the `cmake` build tool to compile a native\\n-library.\\n-\\n-\\n-# Cargo.toml\\n-[build-dependencies]\\n-cmake = \\\"0.1\\\"\\n-\\n-\\n-The CMake executable is assumed to be `cmake` unless the `CMAKE`\\n-environmental variable is set.\\n-\\n-# License\\n-\\n-This project is licensed under either of\\n-\\n- * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or\\n-   https://www.apache.org/licenses/LICENSE-2.0)\\n- * MIT license ([LICENSE-MIT](LICENSE-MIT) or\\n-   https://opensource.org/licenses/MIT)\\n-\\n-at your option.\\n-\\n-### Contribution\\n-\\n-Unless you explicitly state otherwise, any contribution intentionally submitted\\n-for inclusion in cmake by you, as defined in the Apache-2.0 license, shall be\\n-dual licensed as above, without any additional terms or conditions.\\n\"), binary: false, change_type: Deleted }], skipped: false, binary: false, old_size_bytes: 809, new_size_bytes: 0 })")
@Byron Byron added the bug Something isn't working label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant