vscode-front-matter: Issue: Dashboard not loading
Describe the bug When the FM icon is clicked, the left-column menu appears as expected. Clicking “Open Dashboard” opens a new tab to the right, titled “Front Matter Dashboard”, and the progress animation slides left-to-right without finishing.
To Reproduce I have an existing HUGO project with FM installed. This used to work ~6 months ago. Reproducing is simply starting VS Code, clicking FM icon, then “Open Dashboard”
I have tried uninstalling the extension, restarting VS Code, then re-installing, however I get no change. I have another different workspace that works with FM. I suspect either FM or VS Code were updated, and something broke in the upgrade…
Extension Host has the following error shown:
2024-04-22 10:01:16.705 [error] TypeError: Cannot read properties of undefined (reading 'map')
at w.<anonymous> (c:\Users\UserID\.vscode\extensions\eliostruyf.vscode-front-matter-10.1.0\dist\extension.js:1:34554)
at w.t (c:\Users\Michael\.vscode\extensions\eliostruyf.vscode-front-matter-10.1.0\dist\vendors.a8542a5a9120a04f690d.js:2:612104)
at w.emit (node:events:517:28)
at w._readdirError (c:\Users\UserID\.vscode\extensions\eliostruyf.vscode-front-matter-10.1.0\dist\vendors.a8542a5a9120a04f690d.js:2:429563)
at c:\Users\UserID\.vscode\extensions\eliostruyf.vscode-front-matter-10.1.0\dist\vendors.a8542a5a9120a04f690d.js:2:428860
at FSReqCallback.oncomplete (node:fs:202:23)
Expected behavior I expect the dashboard to be displayed, with published and draft posts shown.
Screenshots
Desktop (please complete the following information):
- OS: Win 11
- Browser: Chrome
- Version: Latest (124)
Additional context FM Extension: v10.1.0
VS Code
Version: 1.88.1 (system setup)
Commit: e170252f762678dec6ca2cc69aba1570769a5d39
Date: 2024-04-10T17:41:02.734Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Windows_NT x64 10.0.22631
Hugo: v125.1
About this issue
- Original URL
- State: open
- Created 2 months ago
- Comments: 30 (17 by maintainers)
Commits related to this issue
- #796 - Return error in output — committed to estruyf/vscode-front-matter by estruyf 2 months ago
- #796 - extra logging — committed to estruyf/vscode-front-matter by estruyf 2 months ago
- #796 - Webview logging — committed to estruyf/vscode-front-matter by estruyf 2 months ago
- #796 - Settings logging — committed to estruyf/vscode-front-matter by estruyf 2 months ago
- #796 - More logging — committed to estruyf/vscode-front-matter by estruyf 2 months ago
- #796 - Extra logging — committed to estruyf/vscode-front-matter by estruyf 2 months ago
Repeating testing with v10.2.8835572
After restarting VS Code, but before attempting to launch the dashboard, the following was in the log:
After attempting to launch the dashboard, the following is the complete log:
NOTE: THE DASHBOARD NOW APPEARS!!!
Furthermore, it appears that a “new” file was created: pinnedItemsDB.json. Or should I say, it had no contents before.
with the following content:
No problem. My replies might be “slow” as the day job is keeping me busy though 😃
I still haven’t had the chance/time to pull the repo into a fresh location and trying there… That might fix it for me, but thought I’d see if there was an actual “fix” that might help others who get into the same situation.
Updated, re-started, tried launching the dashboard, still not displayed, and the following was in the log:
The output is the following, plus the JSON already attached above. The paths are correct, however I do notice alternating slash directions…
I forgot to mention in my initial report, the left-hand FM column is displaying as expected. Recent posts, buttons, etc. When I click on a post there, it displays.
It is just the “main” dashboard that is not appearing.
Sounds good, I’ll check it tomorrow.
If the message is inconclusive, I’ll also try with a fresh download of the repository, in case it is something that is not synced that is causing the problem.
I just granted access through GitHub… You will need to accept access.