Operating system
Windows
Joplin version
3.4.10
Desktop version info
Joplin 3.4.10 (prod, win32)
Device: win32, 12th Gen Intel(R) Core(TM) i9-12900K
Client ID: ******************************************
Sync Version: 3
Profile Version: 48
Keychain Supported: Yes
Alternative instance ID: -
Revision: 85585d1
Backup: 1.4.2
Conflict Resolution: 1.2.3
Convert Text To New Note: 1.5.1
Favorites: 1.3.2
Folding in Code Mirror Editor: 2.0.1
Freehand Drawing: 3.1.0
Hotfolder: 1.2.0
Inline tags: 1.3.0
Inline TODO: 1.7.4
Markdown Table: Sortable: 1.2.2
Note list and sidebar toggle buttons: 1.0.3
Note overview: 1.7.1
Note Tabs: 1.4.0
Outline: 1.5.13
Quick Links: 1.3.2
Rich Markdown: 0.15.1
Search & Replace: 2.2.0
Templates: 2.4.0
Editor
Markdown Editor
What issue do you have?
I was playing around with using F6 to activate search box and then searching for notes by note ID (with an eye to automating this with AutoHotKey, but no AHK involvement yet, just playing around with search function in Joplin). Noticed that some notes could not be found by their ID. Repeated these searches a few times, then all the notes in Joplin (I didn't check all, but dozens of them) showed error text. Below is the content of one of my notes after this:
Error
The text editor encountered a fatal error and could not continue. The error might be due to a plugin, so please try to disable some of them and try again.To report the error, please copy the entire content of this page and post it on Joplin forum or GitHub.
If the error persists you may try to restart in safe mode, which will temporarily disable all plugins.
Message
t.foldCode is not a functionVersion info
Joplin for DesktopCopyright © 2016-2025 Laurent Cozic
Joplin 3.4.10 (prod, win32)Device: win32, 12th Gen Intel(R) Core(TM) i9-12900K
Client ID: 75c3f61fd5bd4b80b2b8a135d6cc0c16
Sync Version: 3
Profile Version: 48
Keychain Supported: Yes
Alternative instance ID: -Revision: 85585d1
Automatic Backlinks to note: 3.0.3
Backup: 1.4.2
Conflict Resolution: 1.2.3
Convert Text To New Note: 1.5.1
Favorites: 1.3.2
Folding in Code Mirror Editor: 2.0.1
Freehand Drawing: 3.1.0
Hotfolder: 1.2.0
Inline tags: 1.3.0
Inline TODO: 1.7.4
JSheets: 1.1.3
Kity Minder: 1.0.16
Link Graph UI: 1.5.0
Markdown Table: Sortable: 1.2.2
MultiMarkdown Table Tools: 1.1.0
Note list and sidebar toggle buttons: 1.0.3
Note overview: 1.7.1
Note Tabs: 1.4.0
Outline: 1.5.13
Quick Links: 1.3.2
...
Plugins
[
{
"id": "plugin.calebjohn.rich-markdown",
"name": "Rich Markdown",
"enabled": true,
"version": "0.15.1"
},
{
"id": "io.github.jackgruber.backup",
"name": "Backup",
"enabled": true,
"version": "1.4.2"
},
{
"id": "com.whatever.quick-links",
"name": "Quick Links",
"enabled": true,
"version": "1.3.2"
},
{
"id": "joplin.plugin.benji.favorites",
"name": "Favorites",
"enabled": true,
"version": "1.3.2"
},
{
"id": "outline",
"name": "Outline",
"enabled": true,
"version": "1.5.13"
},
{
"id": "joplin.plugin.note.tabs",
"name": "Note Tabs",
"enabled": true,
"version": "1.4.0"
},
{
"id": "joplin.plugin.ambrt.convertToNewNote",
"name": "Convert Text To New Note",
"enabled": true,
"version": "1.5.1"
},
{
"id": "joplin.plugin.ambrt.backlinksToNote",
"name": "Automatic Backlinks to note",
"enabled": false,
"version": "3.0.3"
},
{
"id": "io.github.jackgruber.hotfolder",
"name": "Hotfolder",
"enabled": true,
"version": "1.2.0"
},
{
"id": "io.github.jackgruber.note-overview",
"name": "Note overview",
"enabled": true,
"version": "1.7.1"
},
{
"id": "joplin-plugin-conflict-resolution",
"name": "Conflict Resolution",
"enabled": true,
"version": "1.2.3"
},
{
"id": "joplin.plugin.ambrt.fold-cm",
"name": "Folding in Code Mirror Editor",
"enabled": true,
"version": "2.0.1"
},
{
"id": "com.joplin.JSheets",
"name": "JSheets",
"enabled": false,
"version": "1.1.3"
},
{
"id": "com.whatever.inline-tags",
"name": "Inline tags",
"enabled": true,
"version": "1.3.0"
},
{
"id": "io.treymo.LinkGraph",
"name": "Link Graph UI",
"enabled": false,
"version": "1.5.0"
},
{
"id": "plugin.calebjohn.todo",
"name": "Inline TODO",
"enabled": true,
"version": "1.7.4"
},
{
"id": "com.hieuthi.joplin.markdown-table-sortable",
"name": "Markdown Table: Sortable",
"enabled": true,
"version": "1.2.2"
},
{
"id": "org.joplinapp.plugins.ToggleSidebars",
"name": "Note list and sidebar toggle buttons",
"enabled": true,
"version": "1.0.3"
},
{
"id": "com.sctmes.kity-minder",
"name": "Kity Minder",
"enabled": false,
"version": "1.0.16"
},
{
"id": "joplin.plugin.MultiMarkdownTableTools",
"name": "MultiMarkdown Table Tools",
"enabled": false,
"version": "1.1.0"
},
{
"id": "joplin.plugin.templates",
"name": "Templates",
"enabled": true,
"version": "2.4.0"
},
{
"id": "joplin-plugin-search-and-replace",
"name": "Search & Replace",
"enabled": true,
"version": "2.2.0"
},
{
"id": "io.github.personalizedrefrigerator.js-draw",
"name": "Freehand Drawing",
"enabled": true,
"version": "3.1.0"
}
]
Stack trace
TypeError: t.foldCode is not a function
at l (C:\Users\joe.config\joplin-desktop\cache\joplin.plugin.ambrt.fold-cm\folding.js:1:3906)
at signal (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5362:12234)
at pE.finish (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5371:13116)
at endOperation_finish (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5371:10910)
at endOperations (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5371:8584)
at file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5371:8350
at finishOperation (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5366:3891)
at endOperation (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5371:8279)
at Object.setValue (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5371:11484)
at Du.setValue (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5385:3301)
Component stackat Editor (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5436:281749) at div at div at div at ErrorBoundary (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5358:1200) at CodeMirror (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5436:285565) at div at div at div at NoteEditorContent (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5605:14669) at ConnectFunction (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:3964:23757) at div at div at I (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:4399:3264) at div at LayoutItemContainer (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:4607:17410) at div at LayoutItemContainer (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:4607:17410) at div at LayoutItemContainer (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:4607:17410) at ResizableLayout (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:4607:18337) at div at MainScreenComponent (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5614:491) at ConnectFunction (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:3964:23757) at div at NavigatorComponent (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5844:9916) at ConnectFunction (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:3964:23757) at PopupNotificationProvider (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:4787:1008) at xy.ThemeProvider (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:4412:264) at ae (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:4397:2902) at RootComponent (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:6402:62) at ConnectFunction (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:3964:23757) at ErrorBoundary (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:5358:1200) at Provider (file:///C:/Users/joe/AppData/Local/Programs/Joplin/resources/app.asar/main-html.bundle.js:3968:1460)
I can provide others, but they all look very similar.
When I exited Joplin and relaunched, the notes looked fine, but one change was that the editor field was empty. Usually Joplin displays the content of the last selected note. After a more rounds of searching, encountering the error, exiting Joplin and relaunching Joplin, the notes now all show the error even after exit/relaunch. Then I exited and relaunched a few more times, and now the notes appear normal.
Then I disabled the plugin 'Folding in Code Mirror Editor', since I noticed 'TypeError: t.foldCode is not a function' in the error message. Relaunched and now when Joplin opens, it shows the content of the last selected note.
Fortunately, I have a backup made this afternoon by the Backup plugin. Should I restore from the backup, or is this just an editor display issue, perhaps caused by the plugin Folding in Code Mirror Editor, and my notes are actually fine?
I updated Joplin from 3.3.xx to 3.4.10 earlier today. So perhaps the error showing up while I was searching for notes by note ID is a red herring, and this error is a result of the plugin not playing well with Joplin 3.4?
I still cannot find some notes by note ID, but I can worry about that later. Biggest concern is can I keep editing existing notes and creating new ones, or is there potential for database/note corruption and I should start from scratch and import from backup?