Open RobertMcKiernan opened 1 year ago
This sound like a path issue. Your terminal and the code block don't have the same path settings. Try doing echo $PATH
in both environments and see if/how they differ. To correct you need to identify which login scripts are used in either case, and possibly change them to make them match.
In my execute code settings, I've set the shell path to
/bin/zsh
, which is the same as my terminal.I've written this tiny script to print out the dates for the month to use as headers in my todo notes.
This works fine when I run the file from my terminal, but I get the following output if I execute it in a code block in obsidian.
I also tried to use
gdate
instead, which again, runs fine in my terminal, but when I run it in the code snippet it give me this error:These commands give the same output whether I'm in my terminal, or running code in obsidian:
I thought it could be a permissions issue. This works fine in my terminal though:
and besides, the echo bit of the script prints out, so I don't think it's that (although I don't know how the temp files are used in this plugin)
Any clues on where I can dig next? Cheers