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

Cannot remove project #6120

Open
jakoritarleite opened this issue Jan 30, 2025 · 2 comments
Open

Cannot remove project #6120

jakoritarleite opened this issue Jan 30, 2025 · 2 comments
Labels
bug Something isn't working 🎉reproduced🎉 The issue could be reproduced by following the instructions

Comments

@jakoritarleite
Copy link

jakoritarleite commented Jan 30, 2025

Version

0.14.6

Operating System

Linux

Distribution Method

AppImage (Linux)

Describe the issue

I have only one project set up, used gitbutler for some time in the last few days but I missed the git tag command, so I decided to remove the project from the app and continue using my day to day git commands, the problem is that as soon as I click on the Remove button on the modal, the interface freezes and nothing happens til the interface goes completely blank after some time.

Going into the projects.json file and manually removing the project works like a charm.

How to reproduce (Optional)

  1. Setup a new project
  2. Try to remove a project

Expected behavior (Optional)

1.When clicking the Remove button the interface would freeze for some time and go blank

Relevant log output (Optional)

2025-01-30T12:28:03.370757Z  INFO get_branch_listing_details: crates/gitbutler-tauri/src/virtual_branches.rs:445: close time.busy=2.03ms time.idle=32.2µs project_id=6e58be38-7af7-453c-9ed6-db9e31bc208b branch_names=[]
2025-01-30T12:28:07.796003Z  INFO git_remote_branches: crates/gitbutler-tauri/src/commands.rs:9: close time.busy=281µs time.idle=14.3µs project_id=6e58be38-7af7-453c-9ed6-db9e31bc208b
2025-01-30T12:28:07.805808Z  INFO list_virtual_branches: crates/gitbutler-tauri/src/virtual_branches.rs:48: close time.busy=1.91ms time.idle=27.3µs project_id=6e58be38-7af7-453c-9ed6-db9e31bc208b
2025-01-30T12:28:07.829691Z  INFO list_branches: crates/gitbutler-tauri/src/virtual_branches.rs:433: close time.busy=527µs time.idle=17.3µs project_id=6e58be38-7af7-453c-9ed6-db9e31bc208b filter=Some(BranchListingFilter { local: None, applied: None })
2025-01-30T12:28:07.832012Z  INFO get_branch_listing_details: crates/gitbutler-tauri/src/virtual_branches.rs:445: close time.busy=1.18ms time.idle=18.9µs project_id=6e58be38-7af7-453c-9ed6-db9e31bc208b branch_names=[]
2025-01-30T12:28:08.605404Z  INFO set_project_active:set_project_to_window:file monitor:handle debounced events: crates/gitbutler-watcher/src/file_monitor.rs:119: close time.busy=9.13µs time.idle=22.5µs id=6e58be38-7af7-453c-9ed6-db9e31bc208b window="main" project_id=6e58be38-7af7-453c-9ed6-db9e31bc208b fs_events=2 fs_events=2 ignored=0 ignored=0 git_noop=0 git_noop=0 git=0 git=0 project=0 project=0
2025-01-30T12:28:09.984628Z ERROR delete_project: crates/gitbutler-project/src/controller.rs:204: failed to remove project data project_id=6e58be38-7af7-453c-9ed6-db9e31bc208b error=Os { code: 2, kind: NotFound, message: "No such file or directory" } id=6e58be38-7af7-453c-9ed6-db9e31bc208b
2025-01-30T12:28:09.984739Z  INFO delete_project: crates/gitbutler-tauri/src/projects.rs:95: close time.busy=333µs time.idle=22.0µs id=6e58be38-7af7-453c-9ed6-db9e31bc208b
2025-01-30T12:28:10.355902Z  INFO set_project_active:set_project_to_window:file monitor:handle debounced events: crates/gitbutler-watcher/src/file_monitor.rs:119: close time.busy=8.33µs time.idle=22.4µs id=6e58be38-7af7-453c-9ed6-db9e31bc208b window="main" project_id=6e58be38-7af7-453c-9ed6-db9e31bc208b fs_events=1 fs_events=1 ignored=0 ignored=0 git_noop=0 git_noop=0 git=0 git=0 project=0 project=0
@jakoritarleite jakoritarleite added the bug Something isn't working label Jan 30, 2025
Byron added a commit to Byron/gitbutler that referenced this issue Jan 30, 2025
@Byron
Copy link
Collaborator

Byron commented Jan 30, 2025

Thanks a lot for reporting and for providing logs.

The error is merely a log message and doesn't indicate failure of the delete_project function, which returns successfully.
On MacOS this seems to be working alright, but on Linux it reproduces easily, even without the AppImage but with a local development build.

Thanks to @ndom91 for the reproduction.

@Byron Byron added the 🎉reproduced🎉 The issue could be reproduced by following the instructions label Jan 30, 2025
@jakoritarleite
Copy link
Author

The error is merely a log message and doesn't indicate failure of the delete_project function, which returns successfully.

Yep, I just provided those logs so you could see that the delete_project command successfully returned as it can be seen on the second delete_project log span, and because there isn't any more logs when the app goes blank.

Good thing it's reproducible!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🎉reproduced🎉 The issue could be reproduced by following the instructions
Projects
None yet
Development

No branches or pull requests

2 participants