Problems with post 3.1 Joplin, (Slashcommands, outline, markdown prettier, plus slow launch)

Operating system

macOS

Joplin version

3.1.6

Desktop version info

Joplin 3.1.6 (prod, darwin)

Client ID: 8e74f3b26f2644539505e1d7ce930bb8
Sync Version: 3
Profile Version: 47
Keychain Supported: Yes

Revision: a746c02

ABC Sheet Music Plugin: 1.0.5
Automatic Backlinks to note: 3.0.3
Backup: 1.4.2
Combine notes: 1.2.2
Conflict Resolution: 1.2.3
Csv Import: 1.0.1
Delete unlinked resources: 1.0.0
Draw.io: 2.2.0
Favorites: 1.3.2
Hotfolder: 1.2.0
Markdown Prettier: 0.1.0
Markdown Table: Colorize: 1.2.0
Note overview: 1.7.1
Omnivore Sync: 0.2.0
Outline: 1.5.13
Quick Links: 1.3.2
Slash Commands: Datetime & More: 1.3.2
Suitcase: 0.3.3

Sync target

Joplin Cloud

Editor

Markdown Editor

What issue do you have?

While I know the 3.1+ versions are pre-release, I figured I'd bring this to someone's attention.

On my desktop version on my Mac, I have two problems. Firstly, startup time is severely slowed (yes, I know its often slow, but it's unusually slow compared with earlier versions.) Further, there seem to be problems with several plugins. They work in 3.0.15, but nothing later.

  • Slash commands 1.3.2 does not work
  • Outline 1.5.13 appears, but does not link to the various headings
  • Markdown Prettier: 0.1.0 does not format the pages.

There may be others, but these are the main ones. And I realise that in the scheme of things, these are minor complaints.

The log shows a few errors. I've listed below the significant errors (the ones in red).

This error seems to be related to slashcommands

models/Setting: Could not save settings Error: Error: SQLITE_CONSTRAINT: UNIQUE constraint failed: settings.key: INSERT INTO `settings` (`key`, `value`) VALUES (?, ?): plugin-com.hieuthi.joplin.slash-commands.slash_definitions,[ ["datetime", "now", [ "yyyy-mm-dd HH:MM", "yyyy-mm-dd\"T\"HH:MM:ss" ] ], ["datetime", "date", [ "dd/mm/yyyy", "yyyy-mm-dd" ] ], ["datetime", "time", [ "HH:MM", "HH:MM:ss" ] ], ["datetime", "jdate", [ "yyyy年mm月dd日(ddd)"], { "dayNames": ["日", "月", "火", "水", "木", "金", "土", "日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"]}], ["string", "greet", [ "Hello", "你好", "Bonjour", "Hallo", "नमस्ते", "こんにちは", "안녕하세요", "Hola", "Xin chào" ] ], ["string", "task", [ "- [ ] " ] ], ["string", "todotxt", [ "```todotxt sort:default\n\n```" ] ], ["datetime", "todoa", [ "\"(A)\" yyyy-mm-dd " ] ], ["datetime", "todob", [ "\"(B)\" yyyy-mm-dd " ] ], ["datetime", "todoc", [ "\"(C)\" yyyy-mm-dd " ] ], ["datetime", "todod", [ "\"(D)\" yyyy-mm-dd " ] ], ["datetime", "todoe", [ "\"(E)\" yyyy-mm-dd " ] ], ["calendar", "calendar", [null,"en-US","ja-JP"]] ]
    at DatabaseDriverNode.sqliteErrorToJsError (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/database-driver-node.js:23:18)
    at JoplinDatabase.sqliteErrorToJsError (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/database.js:36:30)
    at JoplinDatabase.<anonymous> (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/database.js:142:36)
    at Generator.throw (<anonymous>)
    at rejected (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/database.js:6:65)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

This one seems to indicate that it can't find command.js?

Uncaught (in promise) Error: Cannot find module './command.js'
Require stack:
- /Applications/Joplin.app/Contents/Resources/app.asar/index.html
    at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15)
    at a._resolveFilename (node:electron/js2c/renderer_init:2:2669)
    at Module._load (node:internal/modules/cjs/loader:908:27)
    at c._load (node:electron/js2c/node_init:2:13672)
    at s._load (node:electron/js2c/renderer_init:2:31018)
    at Module.require (node:internal/modules/cjs/loader:1122:19)
    at require (node:internal/modules/helpers:130:18)
    at codeMirrorRequire (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/editor/CodeMirror/pluginApi/codeMirrorRequire.js:46:23)
    at <anonymous>:10:22
    at <anonymous>:99:7

The slashcommands one returns a little later

/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/utils/dist/Logger.js:270 08:17:03: models/Setting: Could not save settings Error: Error: SQLITE_CONSTRAINT: UNIQUE constraint failed: settings.key: INSERT INTO `settings` (`key`, `value`) VALUES (?, ?): plugin-com.hieuthi.joplin.slash-commands.slash_definitions,[ ["datetime", "now", [ "yyyy-mm-dd HH:MM", "yyyy-mm-dd\"T\"HH:MM:ss" ] ], ["datetime", "date", [ "dd/mm/yyyy", "yyyy-mm-dd" ] ], ["datetime", "time", [ "HH:MM", "HH:MM:ss" ] ], ["datetime", "jdate", [ "yyyy年mm月dd日(ddd)"], { "dayNames": ["日", "月", "火", "水", "木", "金", "土", "日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"]}], ["string", "greet", [ "Hello", "你好", "Bonjour", "Hallo", "नमस्ते", "こんにちは", "안녕하세요", "Hola", "Xin chào" ] ], ["string", "task", [ "- [ ] " ] ], ["string", "todotxt", [ "```todotxt sort:default\n\n```" ] ], ["datetime", "todoa", [ "\"(A)\" yyyy-mm-dd " ] ], ["datetime", "todob", [ "\"(B)\" yyyy-mm-dd " ] ], ["datetime", "todoc", [ "\"(C)\" yyyy-mm-dd " ] ], ["datetime", "todod", [ "\"(D)\" yyyy-mm-dd " ] ], ["datetime", "todoe", [ "\"(E)\" yyyy-mm-dd " ] ], ["calendar", "calendar", [null,"en-US","ja-JP"]] ]
    at DatabaseDriverNode.sqliteErrorToJsError (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/database-driver-node.js:23:18)
    at JoplinDatabase.sqliteErrorToJsError (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/database.js:36:30)
    at JoplinDatabase.<anonymous> (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/database.js:142:36)
    at Generator.throw (<anonymous>)
    at rejected (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/database.js:6:65)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

This one seems to be the outline plugin

/Applications/Joplin…/dist/Logger.js:270 08:17:03: models/Setting: Could not save settings Error: Error: SQLITE_CONSTRAINT: UNIQUE constraint failed: settings.key: INSERT INTO `settings` (`key`, `value`) VALUES (?, ?): plugin-outline.isVisible,1
    at DatabaseDriverNode.sqliteErrorToJsError (/Applications/Joplin…river-node.js:23:18)
    at JoplinDatabase.sqliteErrorToJsError (/Applications/Joplin…b/database.js:36:30)
    at JoplinDatabase.<anonymous> (/Applications/Joplin…/database.js:142:36)
    at Generator.throw (<anonymous>)
    at rejected (/Applications/Joplin…ib/database.js:6:65)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

And the command.js one returns again.

node:internal/modules/cjs/loader:1055 Uncaught (in promise) Error: Cannot find module './command.js'
Require stack:
- /Applications/Joplin.app/Contents/Resources/app.asar/index.html
    at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15)
    at a._resolveFilename (node:electron/js2c/renderer_init:2:2669)
    at Module._load (node:internal/modules/cjs/loader:908:27)
    at c._load (node:electron/js2c/node_init:2:13672)
    at s._load (node:electron/js2c/renderer_init:2:31018)
    at Module.require (node:internal/modules/cjs/loader:1122:19)
    at require (node:internal/modules/helpers:130:18)
    at codeMirrorRequire (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/editor/CodeMirror/pluginApi/codeMirrorRequire.js:46:23)
    at <anonymous>:10:22
    at <anonymous>:99:7

I'm ok with using v3.0.15 at the moment, but figured someone should be aware of this.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.