Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add file sync daemon error handling to the UI#122

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethanndickson merged 2 commits intomainfromethan/fsd-error-handling
Apr 2, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedMar 26, 2025
edited
Loading

If file sync is working, but a session has errored, an icon will be displayed on the main menu.
e.g. for:
image
This icon & tooltip are displayed:
image

If file sync is not working altogether, due to the daemon crashing, the same icon will be displayed with a different tooltip on hover:
image

Once the config menu is opened, an alert is displayed, and the daemon log file is opened.
image

From there, the Daemon can be restarted, or the alert can be dismissed without restarting. The latter provides users an out if the daemon were to crash on launch repeatedly.

@ethanndicksonethanndickson marked this pull request as ready for reviewMarch 26, 2025 06:11
@ethanndicksonethanndickson self-assigned thisMar 26, 2025
@ethanndicksonethanndicksonforce-pushed theethan/fsd-error-handling branch 2 times, most recently fromf7f2242 to9025d6dCompareMarch 26, 2025 12:43
@@ -2,6 +2,8 @@ import VPNLib

@MainActor
final class PreviewFileSync: FileSyncDaemon {
var logFile: URL = .init(filePath: "~/log.txt")!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

On Windows we are putting this in$MUTAGEN_DATA_DIR/daemon.log. It shouldn't go in the home directory

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Just a note that when it's a.log file there most likely isn't an associated program for.log, so you could either leave it as.txt e.g.daemon-log.txt or just open the directory (which is what I'll do on Windows)

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

That's a class for mocking previews, but in the real class it's going in$MUTAGEN_DATA_DIR/daemon.log

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Oh, you're right mb. As long as we're not creating a file in~/ when using the preview version then it's fine.

ethanndickson reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

By default on macOS.log files are opened inConsole.app

deansheather reacted with thumbs up emoji
@ethanndicksonethanndickson changed the base branch fromethan/create-delete-grpc tographite-base/122March 28, 2025 02:54
@graphite-appgraphite-appbot changed the base branch fromgraphite-base/122 tomainMarch 28, 2025 02:57
@ethanndicksonGraphite App
Copy link
MemberAuthor

ethanndickson commentedApr 2, 2025
edited
Loading

Merge activity

  • Apr 1, 11:15 PM EDT: A user started a stack merge that includes this pull request viaGraphite.
  • Apr 1, 11:15 PM EDT: A user merged this pull request withGraphite.

@ethanndicksonethanndickson merged commitff033e1 intomainApr 2, 2025
4 checks passed
@ethanndicksonethanndickson deleted the ethan/fsd-error-handling branchApril 2, 2025 03:15
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@deansheatherdeansheatherdeansheather approved these changes

@ThomasK33ThomasK33Awaiting requested review from ThomasK33

Assignees

@ethanndicksonethanndickson

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ethanndickson@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp