Issue: An error occurred while loading view.frontmatter.explorer
davidsneighbour opened this issue · comments
Opening a post in the latest version (not BETA) leads to this:
The only issue seems to be that the description is empty, which is checked via a remark plugin and configuration and is yellow (warning), so it should not lead to an error.
I would expect the description field to be empty in a working FM side panel.
Must NOT have fewer than 110 characters • /home/patrick/github.com/davidsneighbour/kollitsch.dev/static/_schemata/blog.schema.yaml • #/allOf/1/properties/description/minLength
Keyword: minLength
Schema path: /home/patrick/github.com/davidsneighbour/kollitsch.dev/static/_schemata/blog.schema.yaml · #/allOf/1/properties/description/minLengthremark-lint[frontmatter-schema](https://github.com/JulianCataldo/remark-lint-frontmatter-schema)
There seem to be some frontmatter errors in the output panel:
["INFO" - 22:03:40] Reading dynamic config file: /home/patrick/github.com/davidsneighbour/kollitsch.dev/frontmatter.config.js
["INFO" - 22:03:40] Dynamic config file loaded
["INFO" - 22:03:40] Trigger page update: main
["INFO" - 22:03:40] Receiving message from webview: getLocalization
["INFO" - 22:03:40] Receiving message from webview: getViewType
["INFO" - 22:03:40] Receiving message from webview: getTheme
["INFO" - 22:03:40] Receiving message from webview: getData
["INFO" - 22:03:40] Receiving message from webview: getMode
["INFO" - 22:03:40] Sending message to dashboard: pages
["INFO" - 22:03:40] Sending message to dashboard: settings
["INFO" - 22:03:40] Receiving message from webview: getState
["INFO" - 22:03:40] Receiving message from webview: getPinnedItems
["INFO" - 22:03:40] Receiving message from webview: getState
["INFO" - 22:03:40] Receiving message from webview: getContentLocales
["INFO" - 22:03:40] Receiving message from webview: sendTelemetry
["INFO" - 22:03:40] Receiving message from webview: getState
["INFO" - 22:03:40] Receiving message from webview: getContentLocales
["INFO" - 22:03:40] Receiving message from webview: getContentLocales
["INFO" - 22:03:40] Receiving message from webview: getContentLocales
["INFO" - 22:03:41] Sending message to dashboard: pages
["INFO" - 22:03:41] Sending message to dashboard: searchReady
["INFO" - 22:03:41] Sending message to dashboard: loading
["INFO" - 22:03:41] Receiving message from webview: getContentLocales
["INFO" - 22:03:43] Triggering listener: settings-init
["INFO" - 22:03:43] Triggering listener: settings-global
["INFO" - 22:03:43] Triggering listener: dashboard-listener
["INFO" - 22:03:44] Sending message to dashboard: settings
["INFO" - 22:03:44] Receiving message from webview: getContentLocales
["INFO" - 22:03:44] Sending message to panel: folderInfo
["INFO" - 22:03:27] Receiving message from webview: openFile
["INFO" - 22:03:27] Trigger page update: onDidChangeActiveTextEditor
["INFO" - 22:03:27] Sending message to panel: mediaSelectionData
["INFO" - 22:03:34] Trigger page update: onDidChangeTextEditorSelection
["INFO" - 22:03:35] Sending message to panel: metadata
["INFO" - 22:03:50] Trigger page update: onDidChangeActiveTextEditor
["INFO" - 22:03:50] Trigger page update: onDidChangeActiveTextEditor
["INFO" - 22:03:45] Trigger page update: onDidChangeTextEditorSelection
["INFO" - 22:03:46] Sending message to panel: metadata
["INFO" - 22:03:15] File watcher execution for: /home/patrick/github.com/davidsneighbour/kollitsch.dev/content/blog/drafts/fall-2024-emoji-update/index.md.git
["INFO" - 22:03:15] File watcher execution for: /home/patrick/github.com/davidsneighbour/kollitsch.dev/content/blog/drafts/how-to-post-the-latest-blog-entry-to-tumblrcom/index.md.git
["INFO" - 22:03:15] Cache cleared
["INFO" - 22:03:15] Cache cleared
["INFO" - 22:03:16] Sending message to dashboard: pages
["INFO" - 22:03:16] Sending message to dashboard: searchReady
["INFO" - 22:03:16] Receiving message from webview: getContentLocales
["INFO" - 22:03:16] Sending message to dashboard: pages
["INFO" - 22:03:16] Sending message to dashboard: searchReady
["INFO" - 22:03:16] Receiving message from webview: getContentLocales
["INFO" - 22:03:16] Sending message to dashboard: loading
["INFO" - 22:03:16] Sending message to dashboard: loading
["INFO" - 22:03:32] File watcher execution for: /home/patrick/github.com/davidsneighbour/kollitsch.dev/content/blog/drafts/fall-2024-emoji-update/index.md.git
["INFO" - 22:03:32] File watcher execution for: /home/patrick/github.com/davidsneighbour/kollitsch.dev/content/blog/drafts/how-to-post-the-latest-blog-entry-to-tumblrcom/index.md.git
["INFO" - 22:03:32] Cache cleared
["INFO" - 22:03:32] Cache cleared
["INFO" - 22:03:33] Sending message to dashboard: pages
["INFO" - 22:03:33] Sending message to dashboard: searchReady
["INFO" - 22:03:33] Receiving message from webview: getContentLocales
["INFO" - 22:03:33] Sending message to dashboard: pages
["INFO" - 22:03:33] Sending message to dashboard: searchReady
["INFO" - 22:03:33] Receiving message from webview: getContentLocales
["INFO" - 22:03:33] Sending message to dashboard: loading
["INFO" - 22:03:33] Sending message to dashboard: loading
["INFO" - 22:03:33] Trigger page update: onDidChangeActiveTextEditor
["ERROR" - 22:03:34] DataListener::pushMetadata: cannot open file:///extension-output-eliostruyf.vscode-front-matter-%231-Front%20Matter%20CMS. Detail: Unable to read file '/extension-output-eliostruyf.vscode-front-matter-#1-Front Matter CMS' (Error: Unable to resolve nonexistent file '/extension-output-eliostruyf.vscode-front-matter-#1-Front Matter CMS')
["INFO" - 22:03:34] Sending message to panel: metadata
["INFO" - 22:03:49] Trigger page update: onDidChangeTextEditorSelection
["INFO" - 22:03:50] Trigger page update: onDidChangeTextEditorSelection
["ERROR" - 22:03:51] DataListener::pushMetadata: cannot open file:///extension-output-eliostruyf.vscode-front-matter-%231-Front%20Matter%20CMS. Detail: Unable to read file '/extension-output-eliostruyf.vscode-front-matter-#1-Front Matter CMS' (Error: Unable to resolve nonexistent file '/extension-output-eliostruyf.vscode-front-matter-#1-Front Matter CMS')
["INFO" - 22:03:51] Sending message to panel: metadata
["INFO" - 22:03:52] Trigger page update: onDidChangeTextEditorSelection
["INFO" - 22:03:52] Trigger page update: onDidChangeTextEditorSelection
["INFO" - 22:03:53] Trigger page update: onDidChangeTextEditorSelection
["INFO" - 22:03:54] Trigger page update: onDidChangeTextEditorSelection
["INFO" - 22:03:54] Trigger page update: onDidChangeTextEditorSelection
["ERROR" - 22:03:55] DataListener::pushMetadata: cannot open file:///extension-output-eliostruyf.vscode-front-matter-%231-Front%20Matter%20CMS. Detail: Unable to read file '/extension-output-eliostruyf.vscode-front-matter-#1-Front Matter CMS' (Error: Unable to resolve nonexistent file '/extension-output-eliostruyf.vscode-front-matter-#1-Front Matter CMS')
["INFO" - 22:03:55] Sending message to panel: metadata
["INFO" - 22:03:58] Trigger page update: onDidChangeTextEditorSelection
["ERROR" - 22:03:59] DataListener::pushMetadata: cannot open file:///extension-output-eliostruyf.vscode-front-matter-%231-Front%20Matter%20CMS. Detail: Unable to read file '/extension-output-eliostruyf.vscode-front-matter-#1-Front Matter CMS' (Error: Unable to resolve nonexistent file '/extension-output-eliostruyf.vscode-front-matter-#1-Front Matter CMS')
["INFO" - 22:03:59] Sending message to panel: metadata
["INFO" - 22:03:00] Trigger page update: onDidChangeActiveTextEditor
["INFO" - 22:03:00] Sending message to panel: metadata
["INFO" - 22:03:01] Sending message to panel: metadata
["INFO" - 22:03:08] Trigger page update: onDidChangeActiveTextEditor
["INFO" - 22:03:09] Sending message to panel: metadata
["INFO" - 22:03:09] Trigger page update: onDidChangeActiveTextEditor
["INFO" - 22:03:09] Sending message to panel: mediaSelectionData
["INFO" - 22:03:09] Sending message to panel: metadata
["INFO" - 22:03:10] Sending message to panel: metadata
["INFO" - 22:03:14] Trigger page update: onDidChangeActiveTextEditor
["INFO" - 22:03:14] Trigger page update: onDidChangeTextEditorSelection
["ERROR" - 22:03:15] DataListener::pushMetadata: cannot open file:///extension-output-eliostruyf.vscode-front-matter-%231-Front%20Matter%20CMS. Detail: Unable to read file '/extension-output-eliostruyf.vscode-front-matter-#1-Front Matter CMS' (Error: Unable to resolve nonexistent file '/extension-output-eliostruyf.vscode-front-matter-#1-Front Matter CMS')
["INFO" - 22:03:15] Sending message to panel: metadata
["INFO" - 22:03:19] Trigger page update: onDidChangeTextEditorSelection
["INFO" - 22:03:20] Trigger page update: onDidChangeTextEditorSelection
["ERROR" - 22:03:21] DataListener::pushMetadata: cannot open file:///extension-output-eliostruyf.vscode-front-matter-%231-Front%20Matter%20CMS. Detail: Unable to read file '/extension-output-eliostruyf.vscode-front-matter-#1-Front Matter CMS' (Error: Unable to resolve nonexistent file '/extension-output-eliostruyf.vscode-front-matter-#1-Front Matter CMS')
["INFO" - 22:03:21] Sending message to panel: metadata
["INFO" - 22:03:23] File watcher execution for: /home/patrick/github.com/davidsneighbour/kollitsch.dev/content/blog/drafts/how-to-post-the-latest-blog-entry-to-tumblrcom/index.md.git
["INFO" - 22:03:23] Cache cleared
["INFO" - 22:03:23] Sending message to dashboard: pages
["INFO" - 22:03:23] Sending message to dashboard: searchReady
["INFO" - 22:03:23] Receiving message from webview: getContentLocales
["INFO" - 22:03:23] Sending message to dashboard: loading
["INFO" - 22:03:27] File watcher execution for: /home/patrick/github.com/davidsneighbour/kollitsch.dev/content/blog/drafts/how-to-post-the-latest-blog-entry-to-tumblrcom/index.md.git
["INFO" - 22:03:27] Cache cleared
["INFO" - 22:03:27] Trigger page update: onDidChangeTextEditorSelection
["INFO" - 22:03:27] Sending message to dashboard: pages
["INFO" - 22:03:27] Sending message to dashboard: searchReady
["INFO" - 22:03:27] Receiving message from webview: getContentLocales
["INFO" - 22:03:27] Sending message to dashboard: loading
["ERROR" - 22:03:28] DataListener::pushMetadata: cannot open file:///extension-output-eliostruyf.vscode-front-matter-%231-Front%20Matter%20CMS. Detail: Unable to read file '/extension-output-eliostruyf.vscode-front-matter-#1-Front Matter CMS' (Error: Unable to resolve nonexistent file '/extension-output-eliostruyf.vscode-front-matter-#1-Front Matter CMS')
["INFO" - 22:03:28] Sending message to panel: metadata
Can you try restarting VSCode? It seems like it is just unable to load custom webviews (this happens from time to time), although I never seen this kind of error before.
The empty description is not an issue for FM CMS, it is just due to your linter, but shouldn't cause any issues.
I've also tested it on my end with the same blog post, and it works nicely on macOS and Windows. So, I'm expecting the issue to be related to VSCode and loading the webview. Typically it is resolved by completely restarting VSCode.
I was looking into the issue, and it seems that other extensions had a similar experience over time. If the restart of VSCode did not work, try reinstalling the extension.
yes, restarting doesn't show the error anymore.