question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue: Opening the parent folder of a frontmatter project will have frontmatter use it as a project as well

See original GitHub issue

Describe the bug When setting the vscode working folder to the parent of several Front Matter projects, the parent is treated as the default frontmatter project.

To Reproduce Steps to reproduce the behavior:

  1. Create three fromtmatter test projects in a folder labeled test
  2. Open the folder test in VS Code as the workspace
  3. Open a markdown file in one of the front matter projects
  4. Select the extension Front Matter

Note that Front Matter asks you to promote “local settings” to “global settings”. Note that a frontmatter.json file is added to the non frontmatter project folder test

Expected behavior Front Matter shouldn’t be greedy and claim folders to be projects that is not meant to be projects. If the root of a workspace doesn’t contain a .frontmatterfolder, it’s not a Front Matter project.

Screenshots image

image

image

Desktop (please complete the following information):

  • Version: 1.74.0 (user setup)
  • Commit: 5235c6bb189b60b01b1f49062f4ffa42384f8c91
  • Date: 2022-12-05T16:38:16.075Z
  • Electron: 19.1.8
  • Chromium: 102.0.5005.167
  • Node.js: 16.14.2
  • V8: 10.2.154.15-electron.0
  • OS: Windows_NT x64 10.0.19044
  • Sandboxed: No
  • FrontMatter: 8.2.0

Additional context Add any other context about the problem here.

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dennisl68-castracommented, Dec 23, 2022

I’m on Christmas vacation at the moment, but will get back to you next week.

0reactions
estruyfcommented, Dec 23, 2022

Thanks and happy holidays @dennisl68-castra

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting started - Front Matter CMS
In this step, a .frontmatter/templates folder and article.md file template will be created in the current project.
Read more >
Front Matter - Hugo
Front matter allows you to keep metadata attached to an instance of a content type—i.e., embedded inside a content file—and is one of...
Read more >
Front Matter a CMS running straight in Visual Studio Code
Front Matter is a CMS running straight in Visual Studio Code. Can be used with static site generators like Hugo, Jekyll, Hexo, NextJs,...
Read more >
python-frontmatter - PyPI
This is a small package to load and parse files (or just text) with YAML (or JSON, TOML or other) front matter. Tests...
Read more >
Editing frontmatter in the static site editor - GitLab.org
Problem to solve Defined at the top of each file, front matter is a ... of a Middleman project template we should ensure...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found