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

"attempt to encode a non-existance note route" when moving files #148

Closed
2 tasks done
srid opened this issue Sep 24, 2021 · 0 comments
Closed
2 tasks done

"attempt to encode a non-existance note route" when moving files #148

srid opened this issue Sep 24, 2021 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@srid
Copy link
Owner

srid commented Sep 24, 2021

File moves (mv foo.md bar/qux/foo.md) can lead to inconsistent internal state, leading to errors like this:

[Debug#WS.Client.10] <~~ ["brazil-cerrado"]
attempt to encode a non-existance note route: Identity R[/2021-09-21.md]
CallStack (from HasCallStack):
  error, called at src/Relude/Debug.hs:218:11 in relude-0.7.0.0-CnCT2EZE7nm5s1uXLlAUNA:Relude.Debug
  error, called at src/Emanote/Route/SiteRoute/Class.hs:90:22 in main:Emanote.Route.SiteRoute.Class
  encodeResourceRoute, called at src/Emanote/Route/SiteRoute/Class.hs:52:11 in main:Emanote.Route.SiteRoute.Class

Originally posted by @srid in #134 (comment)


Note that the remount suggestion should solve it, but currently remounts happen only on folder events - not "file moves".


  • Gracefully handle the bug trigger avoiding the websocket handler crash
  • Fix the bug
@srid srid added the bug Something isn't working label Sep 24, 2021
@srid srid added this to the Initial Public release milestone Sep 24, 2021
@srid srid closed this as completed in 7a31073 Sep 24, 2021
shivaraj-bh pushed a commit to shivaraj-bh/emanote that referenced this issue Dec 18, 2023
shivaraj-bh pushed a commit to shivaraj-bh/emanote that referenced this issue Dec 18, 2023
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