twibiral / obsidian-execute-code

Obsidian Plugin to execute code in a note.
MIT License
1.07k stars 67 forks source link

Does not work with guix installed cling #245

Open tenspd137 opened 1 year ago

tenspd137 commented 1 year ago

Using ubuntu 20.04, cling is hard to install, but guix supplies an install method. cling is on the path - I can run it from a terminal, but when I start obsidian from that same terminal, C++ code is not executed.

image

image

You can see in the image that the plugin is working with python code. I have tried both cling and /home/<me>/.guix-profile/bin/cling with no luck. Any suggestions? I don't know where to look for any logging messages that would indicate to me where the failure is occurring. At cling? Something after it tries to invoke cling - in cling itself?

Any suggestions? Where to look for debug info?

Obsidian is installed from .deb via apt - not flatpk, etc - so permission shouldn't be a problem - but who knows?

Otherwise - really cool tool!

Thanks!

twibiral commented 1 year ago

It looks like you did not add the language name to the codeblock. Try it like this:

'''cpp
....
'''
tenspd137 commented 1 year ago

Ohhhhh - cpp, not c++ - derp! Well, that is better - it does something now: image

Looks like that is a guix / linux-header thing. I'll let you know if I fix it from here, but at least it is running code blocks now.