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

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

error An unhandled error occurred. Please check the console for more information. #93

Closed LOVECHEN closed 3 months ago

LOVECHEN commented 3 months ago

error code

An unhandled error occurred. Please check
the console for more information.

error console

plugin:consistent-attachments-and-links:331 SystemError [ERR_FS_EISDIR]: Path is a directory: rm returned EISDIR (is a directory) /Users/XXX/Downloads/XXX/XXX/_attachments
mnaoumov commented 3 months ago

@LOVECHEN need more details what exactly did you do before the issue occurred

mnaoumov commented 3 months ago

@LOVECHEN Can you please provide a sample vault and video reproducing the issue?

zarkin404 commented 3 months ago

When I delete the markdown file, the error message mentioned in this issue also appears. The error stack is as follows:

No active editor.
plugin:obsidian-attachment-name-formatting:3552 Formatting attachments...
plugin:obsidian-attachment-name-formatting:3554 Getting attachments list...
plugin:obsidian-attachment-name-formatting:3685 No attachments found...
plugin:consistent-attachments-and-links:579 RangeError: Maximum call stack size exceeded
    at new t (app.js:1:724942)
    at createTFolderInstance (plugin:consistent-attachments-and-links:464:16)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)

My obsidian version is 1.6.7 (Installer 1.6.5).

zarkin404 commented 3 months ago

When I delete the markdown file, the error message mentioned in this issue also appears. The error stack is as follows:

No active editor.
plugin:obsidian-attachment-name-formatting:3552 Formatting attachments...
plugin:obsidian-attachment-name-formatting:3554 Getting attachments list...
plugin:obsidian-attachment-name-formatting:3685 No attachments found...
plugin:consistent-attachments-and-links:579 RangeError: Maximum call stack size exceeded
    at new t (app.js:1:724942)
    at createTFolderInstance (plugin:consistent-attachments-and-links:464:16)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)
    at createTFolderInstance (plugin:consistent-attachments-and-links:465:23)

My obsidian version is 1.6.7 (Installer 1.6.5).

I found that renaming file can also trigger this problem.

zarkin404 commented 3 months ago

sample.zip

The above sample vault can reproduce this problem. You can trigger by renaming the Hello folder.

mnaoumov commented 3 months ago

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