-
Notifications
You must be signed in to change notification settings - Fork 1
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
jTab possibly breaking taitava/obsidian-shellcommands (disappearing shell commands) #15
Comments
No root cause determined yet I have isolated whereI tried not loading jtab.tardate.js and raphael ... and shellcommands started working again. Now I just have to figure out what specifically is causing the problem so here's my research so far ... I have ruled out
Next things to try (not today, I do have to get enough sleep tonight to be present for work tomorrow)
|
Referenced in obsidian-shellcommands #351 discussion |
This weekends attempt is to convert the old jtab code to typescript and compile it directly into my plugin. I'm doubting it's the raphael code still seems semi-active (no releases in a while, but it still has 142k weekly downloads and it's @types/raphael was updated last year. I'll keep you posted. |
…ript won't solve it, but it'll make me look at the code differently
…rary was extending Array with .prototype globally.
This issue has been fixed and is included in the v1.2.3 package release. Download or update it in Obsidian Settings under Community Plugins. |
Thank you @davfive ! 🙂 I tested upgrading to 1.2.3, then restarted Obsidian and the problem got fixed! 🌞👍 |
Thank you very much for taking the time to create this great plugin. 😀 |
@david-trickybit Thanks for the complementary note on my plug-in. Always nice to hear from a fan 😄 |
Raised by @taitava via email to me
**From the email thread **
@dokmanc has the same problem, too: #351 (And I never actually got to inspect the problem much, so I still do not have any solutions).
Error in Obsidian console: Step 4:
Step 5:
I installed the jTab plugin now and was able to reproduce the tab_content.removeClass is not a function error.
I also happened to have a shell command executing via events which outputs text to statusbar, and it has the following error:
kuva.png (view on web)
I suspect that this is also caused by some incompatibility with jTab, as disabling jTab and restarting Obsidian prevented this problem from happening.
I tried to glance through the source code of the jTab plugin quickly, but didn't have enough time to find out anything suspicious. Also, the problem could be in one of the libraries the plugin is using. I'm suspecting that something tampers with global HTMLElement and String objects, as those seem to be missing methods that should normally be available. This is just my guessing, as I didn't go far with my inspections.
The jTab plugin also has this issue mentioning another plugin that suffers from this problem: davfive/obsidian-jtab#10
I thought I'd open up an issue in the jTab plugin's repository myself, too, but I don't have much time now, and also as I think there's already valuable information in this discussion, I'll invite the jTab plugin's author to this discussion. Hello, @davfive ! 🙂 Do you have some opinions on how to go forward with this incompatibility problem? 🙂 I don't have much time to inspect the jTab plugin's source code myself, but if there's anything I can do on my plugin's side, please let me know. 👍
The text was updated successfully, but these errors were encountered: