"Duplicate current file" or "Duplicate" in right-click menu no longer works

Once you’ve done the above, delete everything above this line.

Steps to reproduce

  1. Open Sandbox vault.
  2. Right-click on the name of an existing note in the Files left-hand sidebar (e.g., “From plain-text note-taking”).
  3. Select “Duplicate” in the menu.
  4. No duplicate note (e.g., “From plain-text note-taking 1”) appears in the Files left-hand sidebar.

Note: The same thing happens when using the “Duplicate current file” command from the Command palette.

Did you follow the troubleshooting guide? [Y/N] Y

Expected result

I expected to see a duplicate of the desired note.

Actual result

I did not see a duplicate of the desired note.

Environment

SYSTEM INFO:
Obsidian version: v1.8.0
Installer version: v1.6.7
Operating system: Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:27 PDT 2024; root:xnu-11215.41.3~2/RELEASE_X86_64 24.1.0
Login status: logged in
Language: en
Catalyst license: supporter
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

I get one of the following errors in the Developer Console every time I try to duplicate a note (via either method):

app.js:1 Obsidian Developer Console
node:internal/bootstrap/realm:428 Uncaught (in promise) TypeError: Missing internal module ‘original-fs/promises’
at requireBuiltin (node:internal/bootstrap/realm:428:19)
at node:internal/original-fs/cp/cp:48:5
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:398:7)
at requireBuiltin (node:internal/bootstrap/realm:429:14)
at lazyLoadCpPromises (node:internal/original-fs/promises:133:25)
at Object.cp (node:internal/original-fs/promises:614:10)
at e. (app.js:1:550354)
at app.js:1:239608
at Object.next (app.js:1:239713)
at app.js:1:238629
requireBuiltin @ node:internal/bootstrap/realm:428
(anonymous) @ node:internal/original-fs/cp/cp:48
compileForInternalLoader @ node:internal/bootstrap/realm:398
requireBuiltin @ node:internal/bootstrap/realm:429
lazyLoadCpPromises @ node:internal/original-fs/promises:133
cp @ node:internal/original-fs/promises:614
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
g @ app.js:1
(anonymous) @ app.js:1
n @ app.js:1
Promise.then (async)
l @ app.js:1
(anonymous) @ app.js:1
g @ app.js:1
(anonymous) @ app.js:1
e.handleEvent @ app.js:1
click @ app.js:1
apply @ /Applications/Obsidian.app/Contents/Resources/app.asar/node_modules/@electron/remote/dist/src/renderer/callbacks-registry.js:54
(anonymous) @ /Applications/Obsidian.app/Contents/Resources/app.asar/node_modules/@electron/remote/dist/src/renderer/remote.js:353
(anonymous) @ /Applications/Obsidian.app/Contents/Resources/app.asar/node_modules/@electron/remote/dist/src/renderer/remote.js:335
emit @ node:events:519
onMessage @ node:electron/js2c/renderer_init:2

Can reproduce the issue, thanks!

1 Like

Will be fixed 1.8.1

1 Like

What is the ETA for release of 1.8.1?

The dev team doesn’t announce release dates ahead of time. Probably won’t be too long for a point release, though. :wink: