obsidian-tikz-renderer icon indicating copy to clipboard operation
obsidian-tikz-renderer copied to clipboard

Cannot load extension on Mac

Open WilliamCappelletti opened this issue 4 years ago • 4 comments

I tried to install the extension on mac and managed to build the module, after the fix in #1. Nonetheless, the extension cannot be loaded to obsidian.

Unfortunately I do not know typescript, and cannot debug on my side. Still, I could help if it is needed.

Update: It does load by downloading the release files. Also works as expected!

WilliamCappelletti avatar Apr 05 '22 13:04 WilliamCappelletti

Hi @WilliamCappelletti! Thanks for reporting this. I don't own a Mac, so I can't test things on Mac. I can only test it on Ubuntu and Windows.

The release files are the first "proof-of-concept". Since then I added a few improvements to the Settings. You can now add a custom preamble to load tikz libraries and define custom tikz styles globally.

You could try to open the console window in Obsidian (Ctrl + Shift + I and select the "Console" tab) and see if any errors related to the tikz render plugin are logged.

thequilo avatar Apr 06 '22 08:04 thequilo

Hi @WilliamCappelletti. I see that you were successful in loading this plugin in your mac. I am having trouble with loading this package and I am no computer expert. Can you help me (and probably others) by telling steps to do so?

PS: I did copy all the files to the .../.obsidian/plugins/obsidian-tikz-renderer folder but the plugin doesn't show up in obsidian.

I tried to install the extension on mac and managed to build the module, after the fix in #1. Nonetheless, the extension cannot be loaded to obsidian.

Unfortunately I do not know typescript, and cannot debug on my side. Still, I could help if it is needed.

Update: It does load by downloading the release files. Also works as expected!

sherlock0601 avatar May 09 '22 21:05 sherlock0601

@sherlock0601, to manually install a plugin follow these steps:

  1. Copy the files in the subfolder
  2. Deactivate the safe mode for Community plugins
  3. Refreshing the installed plugins (button by Installed plugins)
  4. Enable the plugin it by toggling the switch in the installed list

Still, as thequilo said, the release was a preliminary version. Unfortunately I did not have time to look into the building errors on mac yet.

WilliamCappelletti avatar May 16 '22 11:05 WilliamCappelletti

Hi @WilliamCappelletti. I see that you were successful in loading this plugin in your mac. I am having trouble with loading this package and I am no computer expert. Can you help me (and probably others) by telling steps to do so?

PS: I did copy all the files to the .../.obsidian/plugins/obsidian-tikz-renderer folder but the plugin doesn't show up in obsidian.

I tried to install the extension on mac and managed to build the module, after the fix in #1. Nonetheless, the extension cannot be loaded to obsidian. Unfortunately I do not know typescript, and cannot debug on my side. Still, I could help if it is needed. Update: It does load by downloading the release files. Also works as expected!

in esbuild.config.mjs image

in main.ts, add this line and replace pdflatex and pdf2svg command path of yours. image

gezhi-io avatar May 21 '22 18:05 gezhi-io