Skip to content

[BUG] move excalidraw/canvas file to another folder #235

@jiangaq

Description

@jiangaq

Description

Please see below

Steps to Reproduce

In Excalidraw file:

  1. create a new excalidraw file: test.excalidraw.md
  2. paste an image into excalidraw canvas
  3. image name is not renamed as per my requirement in plugin setting
  4. move test.excalidraw.md to another folder
  5. image file stay at the original folder, not move to this new folder

In Obsidian canvas:

  1. create a new canvs file: test.md
  2. paste an image into canvas
  3. image name DOES renamed as per my requirement in plugin setting
  4. move test.md to another folder
  5. image file stay at the original folder, not move to this new folder

In console, there is error below:

CustomStackTraceError: An unhandled error occurred executing async operation
    at t.handle (plugin:obsidian-custom-attachment-location:437:11191)
    at async invokeAsyncAndLog (plugin:obsidian-custom-attachment-location:437:710)
    at async f (plugin:obsidian-custom-attachment-location:400:1582)
    at async runWithTimeout (plugin:obsidian-custom-attachment-location:400:1458)
    at async addErrorHandler (plugin:obsidian-custom-attachment-location:398:562)
    at async processNextQueueItem (plugin:obsidian-custom-attachment-location:437:1701)
    at async addToQueueAndWait (plugin:obsidian-custom-attachment-location:437:1513)
    at async addErrorHandler (plugin:obsidian-custom-attachment-location:398:562)
    at --- Caused by: --- (0)
    at --- CustomStackTraceError: Run with timeout failed --- (0)
    at eval (plugin:obsidian-custom-attachment-location:437:1714)
    at addErrorHandler (plugin:obsidian-custom-attachment-location:398:568)
    at processNextQueueItem (plugin:obsidian-custom-attachment-location:437:1707)
    at eval (plugin:obsidian-custom-attachment-location:437:1506)
    at async addToQueueAndWait (plugin:obsidian-custom-attachment-location:437:1513)
    at async addErrorHandler (plugin:obsidian-custom-attachment-location:398:562)
    at --- Caused by: --- (0)
    at --- CustomStackTraceError: Run with timeout failed --- (0)
    at getBacklinksForFileSafe (plugin:obsidian-custom-attachment-location:436:10178)
    at t.handle (plugin:obsidian-custom-attachment-location:437:9872)
    at async invokeAsyncAndLog (plugin:obsidian-custom-attachment-location:437:710)
    at async f (plugin:obsidian-custom-attachment-location:400:1582)
    at async runWithTimeout (plugin:obsidian-custom-attachment-location:400:1458)
    at async addErrorHandler (plugin:obsidian-custom-attachment-location:398:562)
    at async processNextQueueItem (plugin:obsidian-custom-attachment-location:437:1701)
    at async addToQueueAndWait (plugin:obsidian-custom-attachment-location:437:1513)
    at --- Caused by: --- (0)
    at --- Error: Timed out after 5001.399999976158 milliseconds --- (0)
    at k (plugin:obsidian-custom-attachment-location:400:1995)
    at async runWithTimeout (plugin:obsidian-custom-attachment-location:400:1458)
    at async retryWithTimeout (plugin:obsidian-custom-attachment-location:400:747)
    at async getBacklinksForFileSafe (plugin:obsidian-custom-attachment-location:436:10172)
    at async t.handle (plugin:obsidian-custom-attachment-location:437:9866)
    at async invokeAsyncAndLog (plugin:obsidian-custom-attachment-location:437:710)
    at async f (plugin:obsidian-custom-attachment-location:400:1582)
    at async runWithTimeout (plugin:obsidian-custom-attachment-location:400:1458)
    at async addErrorHandler (plugin:obsidian-custom-attachment-location:398:562)
    at async processNextQueueItem (plugin:obsidian-custom-attachment-location:437:1701)

Expected Behavior

no error
works as expected

Actual Behavior

...

Environment Information

  • Plugin Version: 9.17.11
  • Obsidian Version: 1.9.14
  • Operating System: macOS 26

Attachments

  • Please attach a video showing the bug. It is not mandatory, but might be very helpful to speed up the bug fix
  • Please attach a sample vault where the bug can be reproduced. It is not mandatory, but might be very helpful to speed up the bug fix

Confirmations

  • I attached a video showing the bug, or it is not necessary
  • I attached a sample vault where the bug can be reproduced, or it is not necessary
  • I have tested the bug with the latest version of the plugin
  • I have checked GitHub for existing bugs

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions