Skip to content
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

New Obsidian update breaks functionality #102

Closed
Hautemeal opened this issue Dec 22, 2021 · 10 comments
Closed

New Obsidian update breaks functionality #102

Hautemeal opened this issue Dec 22, 2021 · 10 comments

Comments

@Hautemeal
Copy link

@Hautemeal Hautemeal commented Dec 22, 2021

I just updated to the newest version of Obsidian (v0.13.14) and all my tracker pages are returning "Error parsing YAML".

Here's some examples of code I'm using that result in this issue:

searchType: frontmatter
searchTarget: anxiety
folder: 20 Daily Notes
startDate: -1w
datasetName: anxiety
line:
    title: Week
    yAxisLabel: Peak Anxiety
    yAxisUnit:
    lineColor: teal
	yMin: 0
    yMax: 10
	xAxisTickLabelFormat: ddd
	showLegend: false
	legendPosition: right
	legendBgColor: white
	lineWidth: 5
	pointColor: white
searchType: tag
searchTarget: mood/happy, mood/anxious, mood/high, mood/distracted, mood/accomplished, mood/excited, mood/frustrated, mood/nervous, mood/vibin
pie:
    title: Mood Pie
	data: '{{sum(dataset(0))}},{{sum(dataset(1))}},{{sum(dataset(2))}},{{sum(dataset(3))}},{{sum(dataset(4))}},{{sum(dataset(5))}},{{sum(dataset(6))}},{{sum(dataset(7))}},{{sum(dataset(8))}}'
	dataColor: 'green,red,blue,purple,teal,grey,orange,salmon,pink'
	label: Happy, Anxious, Chill, Distracted, Accomplished, Excited, Frustrated, Nervous, Vibin
	ratioInnerRadius: 0.5

I'm not very code-savvy, so I'm not really sure where to begin with diagnosing and resolving this issue myself. I don't use many add-ons, but the few I do use are up to date. Thanks in advance!

@S1lentwanderer
Copy link

@S1lentwanderer S1lentwanderer commented Dec 22, 2021

Also experiencing this issue, with tracker pages that worked mere hours ago

@S1lentwanderer
Copy link

@S1lentwanderer S1lentwanderer commented Dec 22, 2021

Found, at the very least, a temporary solution to this issue. By checking the developer console (CTRL-SHIFT-I), and looking into the error messages, it appears as though this error was popping up a lot "YAMLParseError: Tabs are not allowed as indentation at line 5, column 1:". So I changed my indentation from tabs to spaces, and now everything works as expected. Attached is a screenshot of the error in question.

image

@Hautemeal
Copy link
Author

@Hautemeal Hautemeal commented Dec 22, 2021

Wow. I can't believe that was the solution. Is this an Obsidian issue or Tracker issue?

@S1lentwanderer
Copy link

@S1lentwanderer S1lentwanderer commented Dec 22, 2021

No idea. My guess is an Obsidian issue, since it worked in the previous version of Obsidian just fine, and the only thing that changed was the update. I'm not a developer though, just happened upon the console while trying to mess with CSS the other day, and thought to check it for this issue.

@Hautemeal
Copy link
Author

@Hautemeal Hautemeal commented Dec 22, 2021

Yeah...it does seem very odd. I guess someone is taking a hard stance on tabs vs spaces :P

@229c9cf0
Copy link

@229c9cf0 229c9cf0 commented Dec 26, 2021

Reported bug upstream on the Obsidian forum.

@dionvansevenant
Copy link

@dionvansevenant dionvansevenant commented Jan 12, 2022

According to the YAML specs, a space is the only valid indentation method:

Chapter 6. Structural Productions
6.1. Indentation Spaces
In YAML block styles, structure is determined by indentation. In general, indentation is defined as a zero or more space characters at the start of a line.

To maintain portability, tab characters must not be used in indentation, since different systems treat tabs differently. Note that most modern editors may be configured so that pressing the tab key results in the insertion of an appropriate number of spaces.

The amount of indentation is a presentation detail and must not be used to convey content information.

https://yaml.org/spec/1.2.2/#:~:text=6.%20Structural%20Productions-,6.1.%20Indentation%20Spaces,-In%20YAML%20block

@Hautemeal
Copy link
Author

@Hautemeal Hautemeal commented Jan 20, 2022

Thanks for the additional info! That's useful to know :)

@pyrochlore
Copy link
Owner

@pyrochlore pyrochlore commented Feb 23, 2022

Obsidian tracker version 1.10.9 will replace the tab characters by spaces for you according to the tabSize settings in editor.
Will close this issue.

@pyrochlore pyrochlore closed this Feb 23, 2022
@Hautemeal
Copy link
Author

@Hautemeal Hautemeal commented Feb 23, 2022

Aww. That's such a sweet little quality of life improvement. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants