martinjo / obsidian-gym-log

Gym workout log for obsidian
MIT License
76 stars 11 forks source link

Help! #4

Open Ferox9 opened 8 months ago

Ferox9 commented 8 months ago

Hello :) I wanted to use your log, but it won't add the configurations in the Macros I put into QuickAdd. Also when I add things like the workout template I get this code in return: Evaluation Error: TypeError: Cannot read properties of undefined (reading 'renderHeader') at eval (eval at (plugin:dataview), :5:9) at DataviewInlineApi.eval (plugin:dataview:18638:16) at evalInContext (plugin:dataview:18639:7) at asyncEvalInContext (plugin:dataview:18649:32) at DataviewJSRenderer.render (plugin:dataview:18670:19) at DataviewJSRenderer.onload (plugin:dataview:18260:14) at e.load (app://obsidian.md/app.js:1:1147632) at DataviewApi.executeJs (plugin:dataview:19198:18) at DataviewPlugin.dataviewjs (plugin:dataview:20068:18) at eval (plugin:dataview:19967:124) Similar errors also happen in Custom and Start. How can I fix this? I am also still rather new to Obsidian and Coding so a beginner explanation would be appreciated. Thank you in advance!

martinjo commented 8 months ago

Have you tried the demo configuration? The .obsidian folder should contain everything needed.

Ferox9 commented 8 months ago

Thank You! That did most of the trick. I do however have issues getting this to work with obsidian sync, as i would like to plan my workouts in advance and then just input numbers into the system when i have them in the gym Also The Buttons aren't working. I connected them to the correct Macros in QuickAdd, but if I klick Add Workout, it comes up with the following error grafik

Any Idea on how to make that work?

cinnxio commented 1 week ago

Do you have user script files folder location set in Templater? Removing this for me did the trick