.mdc files show blank description and globs in MDC Editor

My .mdc file is as below:


name: Python Data Analysis Scripts
version: “1.0”
globs:

  • “*.py”
    triggers:
  • file_change

rule_definition:
description: “Provides guidelines for data analysis and visualization using pandas, matplotlib, seaborn, and numpy in Python scripts.”
content: |
You are an expert in data analysis, visualization, and Jupyter Notebook development, with a focus on Python libraries such as pandas, matplotlib, seaborn, and numpy.

and so on

Here is how it comes up in the MDC editor:

Is it a bug or am I doing something wrong?

Hey, I don’t quite understand what your issue is. Did you create this file? Can you fill in the Description and Globs in the fields at the top?

I have found that this happens when I try to use composer to update or create rules. If I close out cursor it will ask me if I want to overrwrite when I accept sometimes I can then see the changes right away other times I have to close it fully.

i had already created the file manually, file’s content is given in the above post.
the MDC editor doesn’t pickup globs which are already in the file

the file you have shown at begin has no description in the header (before globs). Thats why it shows no description in MDC editor. As with any code editing it may need rules for what the requirements for Cursors MDC are…

Sample header (not complete, just edit one MDC file manually in MDC editor and then see the structure in text editor_

---
name: My Awesome Document
description: An example of MDC file
glob:
---

rest of content
1 Like

thank you all, got my mistake.

fixed it and did what I was trying to do:

1 Like