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

Hi, great template! Quick question. Do you know I'm seeing this? #4

Open
Kmfernan5 opened this issue Oct 31, 2023 · 3 comments
Open

Comments

@Kmfernan5
Copy link

Kmfernan5 commented Oct 31, 2023

Hi, great template! Quick question. Do you know I'm seeing this?

Evaluation Error: Error: No JSON code block found in file: #config/habits
at Config.readConfig (.obsidian/scripts/config.js:23:19)
at async eval (eval at (plugin:dataview), :5:16)
at async DataviewJSRenderer.render (plugin:dataview:18678:13)

https://share.zight.com/6quwGb2Q

https://share.zight.com/nOuQbKkD

Is there a scripts folder or CSS files?

@ykerus
Copy link
Owner

ykerus commented Nov 1, 2023

Hmm it's supposed to read a JSON code block from the Habits.config file.
Could you check the content of that file?
It should be tagged with #config/habits

image

This indeed all happens with some Javascript code in a scripts folder:

image
(you need to open it in Finder or an editor other than Obsidian to see it)
Here the config.js and habitTracker.js are the relevant files

@Kmfernan5
Copy link
Author

Kmfernan5 commented Nov 2, 2023

Thank you so much for your quick response. I appreciate it. I currently use Windows 11 and have confirmed that the file is present. However, I am not sure if this issue is because I am using a Windows laptop and not a Mac. Could it be related to this? Alos, would it be possible for you to record your screen while you demonstrate the workflow?

Also, I am confused about the script's location. Templater has a section that asks for a script folder, but it is currently blank. Should I fill it in? The scripts are in the obsidian folder, which is hidden, so I am not exactly sure what to do.

Things I'd like to fix

  1. Slides Preview https://share.zight.com/eDu0n0d7
  2. Template for a daily note 2023-11-02, Thu 2 Nov.pdf
  3. User Scripts Function Folder Location https://share.zight.com/DOuPkr0y
  4. Habits Page https://share.zight.com/eDu0n7p9
  5. Habits Config https://share.zight.com/QwuBjdy8

@ykerus
Copy link
Owner

ykerus commented Nov 4, 2023

Here's a video: opening the vault, and tracking habits, lessons and milestones

Provided you have opened this exact folder as a new vault:

  • Habits should work out of the box.. 🤔 (if it doesn't work, could be Windows 🤷)
  • Slides preview is only for specifically formatted notes. Please see the advanced slides docs
  • The user scripts folder can be viewed in an editor such as VSCode, or just your file system viewer
  • Feel free to change anything to your liking. Once you clone the repo, it's all yours 👍

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

No branches or pull requests

2 participants