dy-sh / obsidian-consistent-attachments-and-links

Obsidian plugin. Move note with attachments.
MIT License
241 stars 26 forks source link

Error : When starting to recognize valut, it happens overlapped the setting error. #97

Closed william123438 closed 3 months ago

william123438 commented 3 months ago

When starting to recognize the vault, replacing the wiki link process will hold it, and the console error is below :

plugin:consistent-attachments-and-links:785 Uncaught (in promise) Error: Overlapping changes:
{
  "startIndex": 746,
  "endIndex": 798,
  "oldContent": "![](_resources/710a8f86d21470c7dee1021181658d5e.jpg)",
  "newContent": "![](_resources/710a8f86d21470c7dee1021181658d5e.jpg)"
}
{
  "startIndex": 798,
  "endIndex": 850,
  "oldContent": "![](_resources/c9f5fa65878675648d85cb9bdcb8437a.jpg)",
  "newContent": "![](_resources/c9f5fa65878675648d85cb9bdcb8437a.jpg)"
}
    at eval (plugin:consistent-attachments-and-links:785:17)
    at async retryWithTimeout.timeoutInMilliseconds (plugin:consistent-attachments-and-links:746:24)
    at async eval (plugin:consistent-attachments-and-links:598:11)
    at async runWithTimeout (plugin:consistent-attachments-and-links:610:10)
    at async retryWithTimeout (plugin:consistent-attachments-and-links:594:3)
    at async processWithRetry (plugin:consistent-attachments-and-links:744:3)
    at async retryWithTimeout.timeoutInMilliseconds (plugin:consistent-attachments-and-links:762:5)
    at async eval (plugin:consistent-attachments-and-links:598:11)
    at async runWithTimeout (plugin:consistent-attachments-and-links:610:10)
    at async retryWithTimeout (plugin:consistent-attachments-and-links:594:3)
    at async applyFileChanges (plugin:consistent-attachments-and-links:760:3)
    at async updateLinksInFile (plugin:consistent-attachments-and-links:926:3)
    at async LinksHandler.replaceAllNoteWikilinksWithMarkdownLinks (plugin:consistent-attachments-and-links:1286:5)
    at async ConsistentAttachmentsAndLinksPlugin.replaceAllWikilinksWithMarkdownLinks (plugin:consistent-attachments-and-links:2150:22)
    at async ConsistentAttachmentsAndLinksPlugin.reorganizeVault (plugin:consistent-attachments-and-links:2202:5)
mnaoumov commented 3 months ago

Fixed in https://github.com/dy-sh/obsidian-consistent-attachments-and-links/releases/tag/3.11.0