-
Notifications
You must be signed in to change notification settings - Fork 80
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
Bug: Corrupts YAML #958
Comments
Hey @kmaustral . Could you provide your |
Thanks for following this up. Here's a sample note and the data.json file. 20 - Insectopedia.md Let me know if there are any issues with this. |
I will have to take a look at this some time later. Something is messing up the YAML according to the report (I have not yet reproduced since I am not yet able to run this against a vault). I will have to determine the exact rule causing the problem later. I am not seeing anything wrong with the initial YAML, so this is likely an issue with a rule operating on the YAML that should not be or a bug in one of the YAML rules that has gone unnoticed up until now. |
Hey @kmaustral , just to double check. Are you using live preview when you view a markdown file? I ask because there has been reported bugginess around that that has not been resolved since it does not seem to be consistent across vaults (I have been able to reproduce some instances of it and other times I have not been able to). I just want to rule that out since so far running the following rules individual I am not seeing any output that would cause the issue you are seeing:
|
Thanks Peter. Yes, I was using Live Preview. I tried it with Source mode
and there were no problems. I'll remember to change mode when performing
the clean.
Much appreciated,
Kevin
…On Tue, 5 Dec 2023 at 03:17, Peter Kaufman ***@***.***> wrote:
Hey @kmaustral <https://github.com/kmaustral> , just to double check. Are
you using live preview when you view a markdown file? I ask because there
has been reported bugginess around that that has not been resolved since it
does not seem to be consistent across vaults (I have been able to reproduce
some instances of it and other times I have not been able to). I just want
to rule that out since so far running the following rules individual I am
not seeing any output that would cause the issue you are seeing:
- Format Tags in YAML
- Sort YAML Keys
—
Reply to this email directly, view it on GitHub
<#958 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARTR6N53MHUS2CA2JHVSZFTYHXZQFAVCNFSM6AAAAABAFJF4QCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZYHE4DGNBXGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
same issue using Live Preview |
This should be fixed in the next release of the Linter. If not, please let us know so we can see why it is still not working. |
I believe this was fixed by #963 . |
If this issue is present on master or in the next release please let us know! |
Describe the Bug
When choose the command to Lint file, the YAML is corrupted.
How to Reproduce
Using 1.21 Linter
Steps to reproduce the behavior:
For instance:
tags: book
becomes
tags: book
formtags: book
becomes
tags: book
formttags:
d - book
Or
Example to reproduce issue with
Please make sure to include logs and the rule(s) that cause the issue if applicable. You can include logs by going to the debug tab of the Linter and setting the log level to debug. Then enable the capturing of logs and either lint on save or lint the current file. Then go back to the debug tab and you can grab Linter logs from the last run.
If you are not sure which rule(s) may cause the issue, please attach the
data.json
file located at<vault>/.obsidian/plugins/obsidian-linter/
or copy the config from the debug tab.Expected Behavior
A clear and concise description of what you expected to happen.
Expected output if applicable:
Screenshots
If applicable, add screenshots to help explain your problem.
Device
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: