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
Issue: Dashboard not loading #796
Comments
Thanks for opening an issue. Do you have a repo which I can use to verify this? |
Sorry, the project is not public. The two files in .frontmatter folder are empty |
I don't see anything wrong in the configuration. It had to do with the retrieval of your content, but what or why, that is something I cannot reproduce. Do you mind sharing the project temporarily with me so I can run a debug version against it? |
I just granted access through GitHub... You will need to accept access. |
Thanks! It loads without any issues on my main device. I will have to test it later on a Windows device to see if the problem occurs there. |
@Dekker500 I have tested it on my Windows 11 device, but there are no issues. Dashboard loads fine without any issue like you've mentioned. I added an extra line to the output in the latest BETA version. Would you be able to give that a try and check if something gets logged in the Front Matter CMS output? https://frontmatter.codes/docs/troubleshooting#looking-what-is-happening-behind-the-scenes |
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. |
@Dekker500 did you have time to check it out yesterday? |
I just had a chance to run it through its paces (beta v v10.2.8829922 2024-04-25, 05:11:41), and though there is no longer an error in the log, there is no change in behavior - the dashboard never "appears", and the progress bar keeps sliding to the right forever... However, when I clicked in the output text area to copy it, it thew out those final "trigger page update" messages and "datalistener" error messages. If those "06:04:xx" in the log are supposed to be times, they are off...
|
What do you get when running the |
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.
|
@Dekker500 thanks! I hoped it wouldn't find any I got the same output when loading your project on my Windows device. I added some extra logging during the page parsing. In the beta version
I guess there is something wrong with the cache, so if you try running the |
I updated the beta (now v10.2.8832943), restarted, and without doing anything else the following is in the beta log window:
I then did the clear cache (did it two ways, as I didn't notice a confirmation at first), and the following was in the log - note the errors:
I then re-started VS Code, and tried to open the dashboard again, but with no success. The following is the output in the log:
|
Thanks, so the parsing on the background works fine... The errors you are referring to are unrelated, they are coming from the panel and happens when the extension gets an invalid URL for parsing. Which happens with the content dashboard, as VSCode returns it as a file URI. |
I've now added logging on the webview side as well; when you load the webview, you should see messages like:
Can you test this out in version |
Updated, re-started, tried launching the dashboard, still not displayed, and the following was in the log:
|
It seems to come from your settings 🤔. In this reply: #796 (comment) Did you remove the configuration on purpose? Or was it just not present? |
Oh, I removed it on purpose, the JSON was already attached above, but here it is again, complete: Project nameD2VO Folders
Workspace folderc:\Hugo\D2VO Total filesTotal files found: 16828 Folders to search files
Complete frontmatter.json config{
"$schema": "https://frontmatter.codes/frontmatter.schema.json",
"frontMatter.taxonomy.contentTypes": [
{
"name": "default",
"pageBundle": true,
"previewPath": null,
"defaultFileName": "index",
"template": "[[workspace]]/archetypes/article.md",
"fields": [
{
"title": "Title",
"name": "title",
"type": "string"
},
{
"title": "Slug",
"name": "slug",
"type": "slug",
"editable": true,
"default": "{{slug}}"
},
{
"title": "Description",
"name": "description",
"type": "string"
},
{
"title": "Publishing date",
"name": "date",
"type": "datetime",
"default": "{{now}}",
"isPublishDate": true
},
{
"title": "Last modified date",
"name": "lastmod",
"type": "datetime",
"isModifiedDate": true
},
{
"title": "Featured image",
"name": "featuredImage",
"type": "image"
},
{
"title": "Is in draft",
"name": "draft",
"type": "draft",
"default": true
},
{
"title": "Tags",
"name": "tags",
"type": "tags"
},
{
"title": "Categories",
"name": "categories",
"type": "categories"
},
{
"title": "Author",
"name": "author",
"type": "string",
"default": "my_name"
},
{
"title": "Author image",
"name": "authorimage",
"type": "image",
"default": "/images/global/author/my_pic.png"
},
{
"title": "sitemap",
"name": "sitemap",
"type": "fields",
"fields": [
{
"title": "changefreq",
"name": "changefreq",
"type": "string",
"default": "monthly"
},
{
"title": "priority",
"name": "priority",
"type": "number",
"default": "0.8"
}
]
}
]
}
],
"frontMatter.framework.id": "hugo",
"frontMatter.content.publicFolder": "static",
"frontMatter.preview.host": "http://localhost:1313",
"frontMatter.site.baseURL": "https://www.my_site.com",
"frontMatter.sponsors.ai.enabled": true,
"frontMatter.taxonomy.alignFilename": false,
"frontMatter.taxonomy.frontMatterType": "YAML",
"frontMatter.taxonomy.slugPrefix": "",
"frontMatter.content.pageFolders": [
{
"title": "Posts",
"path": "[[workspace]]/content/posts",
"previewPath": "'/posts'",
"contentTypes": [
"default"
]
}
],
"frontMatter.taxonomy.tags": [],
"frontMatter.taxonomy.categories": []
} |
Ah, ok, I just needed to know if you removed it, since the dashboard doesn't get your settings for some reason. I'm looking for a clue there :-). |
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. |
I would also like to understand what is actually going on, as this is the first time it occurred. New version |
Update (v10.2.8834387), restart, attempt to open dashboard (using left-hand bar's "open dashboard"), still no response with the following log:
No change in "diagnostics output" either. |
More logging added, I hope we're getting closer to where the problem is coming from. Version |
Fresh attempt with v10.2.8835247. More log messages, but no "errors".
|
Ok, I can now see where the setting retrieval is "hanging". More logging in the folder retrieval functions. Version |
The I added extra logging in the folder/file retrieval, and it seems that there was an issue: |
Thanks @Dekker500 for testing all of the released beta versions 🙏 |
Interesting... That file is indeed supposed to be an SVG, but when I just tried to view it, VS Code gave me the following error: So FrontMatter should handle the exception better, however I DEFINITELY need to figure out what is going on with that image! It is not "caused" by FM, but FM just didn't know how to react. I'll update when I know what's going on on my side... |
Indeed, now FM skips the file and returns the error in the output. Let me know your finding around the file. |
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:
Expected behavior
I expect the dashboard to be displayed, with published and draft posts shown.
Screenshots
Desktop (please complete the following information):
Additional context
FM Extension: v10.1.0
VS Code
Hugo: v125.1
The text was updated successfully, but these errors were encountered: