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

Plugins: Uncaught (in promise) Error: Cannot execute a command without a runtime: selectedText #4338

Closed
ambrt opened this issue Jan 11, 2021 · 0 comments · Fixed by #4343
Closed
Labels
bug It's a bug

Comments

@ambrt
Copy link
Contributor

ambrt commented Jan 11, 2021

This started to happen on 1.6.6, was working in 1.5.14

const selectedText = await joplin.commands.execute('selectedText');


Uncaught (in promise) Error: Cannot execute a command without a runtime: selectedText
    at CommandService.<anonymous> (/tmp/.mount_JoplinkXETDt/resources/app.asar/node_modules/@joplin/lib/services/CommandService.js:144)
    at Generator.next (<anonymous>)
    at /tmp/.mount_JoplinkXETDt/resources/app.asar/node_modules/@joplin/lib/services/CommandService.js:8
    at new Promise (<anonymous>)
    at __awaiter (/tmp/.mount_JoplinkXETDt/resources/app.asar/node_modules/@joplin/lib/services/CommandService.js:4)
    at CommandService.execute (/tmp/.mount_JoplinkXETDt/resources/app.asar/node_modules/@joplin/lib/services/CommandService.js:136)
    at JoplinCommands.<anonymous> (/tmp/.mount_JoplinkXETDt/resources/app.asar/node_modules/@joplin/lib/services/plugins/api/JoplinCommands.js:56)
    at Generator.next (<anonymous>)
    at /tmp/.mount_JoplinkXETDt/resources/app.asar/node_modules/@joplin/lib/services/plugins/api/JoplinCommands.js:8
    at new Promise (<anonymous>)

Same is happening for replaceSelection.
Both on Ubuntu 18 and Windows 10.

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

Successfully merging a pull request may close this issue.

1 participant