Describe the bug
When I try to open in the FM Dashboard in tabulator "data" a data collection from a yaml file with snippets I can't expand it and see errors in the console:
["ERROR" - 23:11:49] DataFileHelper::process: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default.
["ERROR" - 23:11:49] 𝖥𝗋𝗈𝗇𝗍 𝖬𝖺𝗍𝗍𝖾𝗋 𝖢𝖬𝖲: Something went wrong while processing the data file. Check your file and output log for more information.
To Reproduce
Steps to reproduce the behavior:
Create a yaml file inside [[workspace]]/site/data/biShortcuts.yaml
Nothing happens but message "𝖥𝗋𝗈𝗇𝗍 𝖬𝖺𝗍𝗍𝖾𝗋 𝖢𝖬𝖲: Something went wrong while processing the data file. Check your file and output log for more information."
Output log displays errors (see above).
Expected behavior
Adding and editing of collection entries possible.
**
Current VS Code 1.84.2 on Windows 10.
Front Matter CMS v9.3.1
Additional context
I know that it worked with older versions but I don't know which one because of a longer pause since October 2022 or so.
**Describe the bug**
When I try to open in the FM Dashboard in tabulator "data" a data collection from a `yaml` file with snippets I can't expand it and see errors in the console:
```
["ERROR" - 23:11:49] DataFileHelper::process: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default.
["ERROR" - 23:11:49] 𝖥𝗋𝗈𝗇𝗍 𝖬𝖺𝗍𝗍𝖾𝗋 𝖢𝖬𝖲: Something went wrong while processing the data file. Check your file and output log for more information.
```
**To Reproduce**
Steps to reproduce the behavior:
1. Create a yaml file inside `[[workspace]]/site/data/biShortcuts.yaml`
2. Enter content like this: https://github.com/GHSVS-de/hugo_layoutsghsvs/blob/main/dist/data/biShortcuts.yaml
3. In `frontmatter.json` add block
```
...
"frontMatter.data.files": [
{
"id": "biShortcuts",
"title": "bi-Shortcode-Abkuerzung",
"file": "[[workspace]]/site/data/biShortcuts.yaml",
"fileType": "yaml",
"labelField": "short",
"schema": {
"title": "Bi-Abkuerzung",
"type": "object",
"required": [
"short",
"icon"
],
"properties": {
"short": {
"type": "string",
"title": "Short"
},
"icon": {
"type": "string",
"title": "Icon"
},
"class": {
"type": "string",
"title": "CSS Class"
}
}
}
}
],
...
```
5. Be aware of `"fileType": "yaml",`!
6. Open Workspace.
7. Open FM Dashboard.
8. Click tabulator data.
9. Click on collection "bi-Shortcode-Abkuerzung"
10. Nothing happens but message "𝖥𝗋𝗈𝗇𝗍 𝖬𝖺𝗍𝗍𝖾𝗋 𝖢𝖬𝖲: Something went wrong while processing the data file. Check your file and output log for more information."
11. Output log displays errors (see above).
**Expected behavior**
Adding and editing of collection entries possible.
**
- Current VS Code 1.84.2 on Windows 10.
- Front Matter CMS v9.3.1
**Additional context**
I know that it worked with older versions but I don't know which one because of a longer pause since October 2022 or so.
I think the error comes from here https://github.com/estruyf/vscode-front-matter/blob/f4816afa6599581751449b51d4fc2ac3be1a58dd/src/helpers/DataFileHelper.ts#L57
<!-- github-sync-id:2019646259 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Describe the bug
When I try to open in the FM Dashboard in tabulator "data" a data collection from a
yamlfile with snippets I can't expand it and see errors in the console:To Reproduce
Steps to reproduce the behavior:
[[workspace]]/site/data/biShortcuts.yamlfrontmatter.jsonadd block"fileType": "yaml",!Expected behavior
Adding and editing of collection entries possible.
**
Additional context
I know that it worked with older versions but I don't know which one because of a longer pause since October 2022 or so.
I think the error comes from here https://github.com/estruyf/vscode-front-matter/blob/f4816afa6599581751449b51d4fc2ac3be1a58dd/src/helpers/DataFileHelper.ts#L57
Thanks @ReLater, the fix will be included in version 9.4.0.