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

Getting errors when trying to read files #98

Open
misaka opened this issue Aug 9, 2024 · 1 comment
Open

Getting errors when trying to read files #98

misaka opened this issue Aug 9, 2024 · 1 comment

Comments

@misaka
Copy link

misaka commented Aug 9, 2024

I just ran into some weird issues using the latest version of obsidian.el (v1.4.4) on emacs 29.4 on macOS 14.5. They manifested as errors loading files when running obsidian-jump or obsidian-update, but the files changed as did the exact error messages. I eventually managed to get around them by loading the files in question manually in emacs (sometimes with errors), or in Obsidian.

Has anyone else seen errors like these? I'm including an elisp backtrace below. It seems likely that they're coming from the underlying OS, perhaps related to iCloud syncing. Is it a known issue with iCloud syncing perhaps?

Debugger entered--Lisp error: (file-error "Read error" "Operation canceled" "/Users/misaka/Library/Mobile Documents/iCloud~md~o...")
  insert-file-contents("/Users/misaka/Library/Mobile Documents/iCloud~md~o...")
  obsidian-read-file-or-buffer("/Users/misaka/Library/Mobile Documents/iCloud~md~o...")
  obsidian-find-tags-in-file("/Users/misaka/Library/Mobile Documents/iCloud~md~o...")
  mapcar(obsidian-find-tags-in-file ("/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." "/Users/misaka/Library/Mobile Documents/iCloud~md~o..." ...))
  obsidian-list-all-tags()
  obsidian-update-tags-list()
  obsidian-update()
  obsidian-jump()
  funcall-interactively(obsidian-jump)
  call-interactively(obsidian-jump record nil)
  command-execute(obsidian-jump record)
  execute-extended-command(nil "obsidian-jump" nil)
  funcall-interactively(execute-extended-command nil "obsidian-jump" nil)
  ...
@licht1stein
Copy link
Owner

licht1stein commented Aug 9, 2024

What's with the ~ in the file name? Without any research that kind of naming is inviting all kinds of trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants