Error messages at startup TypeError: Cannot read property 'addClass' of null
with Settings Search plugin
#233
Replies: 2 comments 3 replies
-
Disabling the 'Settings Search' plugin made this error go away. |
Beta Was this translation helpful? Give feedback.
-
Inspecting the issue (still in progress)I've used a couple of hours now to try to find out the reason for these errors. The root cause is still unclear to me. obsidian-shellcommands/src/settings/setting_elements/Tabs.ts Lines 134 to 135 in 84602db 134. This line searches for a tab content element in the application and assigns it to tab_content . For some reason, when Settings Search invokes the setting view to be rendered, this line cannot find the element, and so tab_content becomes null . I need to inspect this part more.135. This line is when the symptom is noticed and an error message put to console log. AFAIK, the error messages do not prevent using the search or SCEven though these error messages tell that something is going wrong under the hood, in my test I've seen that Settings Search is still able to find the Shell command plugin's settings, and SC is able to operate normally. In that sense, this bug is not a showstopper (= doesn't prevent usage). But who knows if it crashes badly in the future? That's why it would still be good to fix it. @claremacrae have you noticed any actual, practical issues when using these two plugins together? Of course error messages in the console log should be fixed, and I'm in no way trying to convince you to ignore them. I just want to understand the nature of the problem better. Other glitches between SC and Settings SearchWhen I'm trying to fix compatibility issues with other plugins, I also need to consider what level of compatibility can realistically be achieved. Even if I get this particular error fixed, there are a couple of things that will not work between SC and Settings Search:
I can see that even with those glitches, it does make sense to use Settings Search together with SC, even if the search is not able to fully support all settings of SC. But it might cause some confusion among users, and more reports about incompatibility. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I noticed 2 errors in the console from this plugin at startup with:
Error message:
Uncaught TypeError: Cannot read property 'addClass' of null
Output in the console:
Beta Was this translation helpful? Give feedback.
All reactions