-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Locale Override Broken in Obsidian v1.7.3 #375
Comments
After roughly examining and testing the code, |
Hmm, even after the above, things still go wrong after restarting Obsidian... It seems that turning the Calendar plugin and Periodic Notes plugin off and on in sequence fixes it. |
also getting this.
not sure whatis meant here. could you specify? you mean calendar on and off, then periodic, or calendar off, periodic off, then calendar on and periodic on? Are you reloading after each? |
While testing another plugin, I can now verify that the settings display error is related to whether or not calendar is the visible tab on startup, per sandbox vault. if it is, no error, if it isn't, error. |
My current workaround for this issue is as follows:
Here's my speculation about this bug (which may be incorrect):
The main.js modification mentioned above is intended to perform locale override processing during the Calendar plugin's startup. However, due to potential issues with the startup order between Calendar and Periodic Notes plugins (or perhaps other factors), it seems necessary to restart each plugin as described above for proper functionality. Creating a Templater script to automatically restart the plugins might be more convenient... |
I see very clear thank you much appreciated
…On Mon, Oct 21, 2024, 12:44 iiz00 ***@***.***> wrote:
My current workaround for this issue is as follows:
1. Modify the main.js file of the Calendar plugin as mentioned
previously.
2. After launching Obsidian, restart the plugins in this order:
Calendar plugin, then Periodic Notes plugin. If the Calendar plugin's view
is already displayed, restarting the Calendar plugin might not be necessary.
Here's my speculation about this bug (which may be incorrect):
- The locale override processing in the Calendar plugin seems to occur
during the plugin's custom view rendering, not during plugin startup.
- In Obsidian v1.7.2, to improve startup times, view rendering is
skipped when a plugin's view is not in the foreground (I haven't thoroughly
investigated this). As a result, if the Calendar view is not displayed, the
locale override processing doesn't occur. This leads to failures when
trying to open the settings page, causing it to display only partially. It
also causes plugins that use locale override, such as Periodic Notes, to
malfunction.
The main.js modification mentioned above is intended to perform locale
override processing during the Calendar plugin's startup. However, due to
potential issues with the startup order between Calendar and Periodic Notes
plugins (or perhaps other factors), it seems necessary to restart each
plugin as described above for proper functionality. Creating a Templater
script to automatically restart the plugins might be more convenient...
The ideal solution would be to integrate the locale override functionality
(and perhaps even the Calendar and Periodic Notes features) into Obsidian's
core functionality 😄
—
Reply to this email directly, view it on GitHub
<#375 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO2Y35CAR3A2ZYD5CCHYVKDZ4R2BBAVCNFSM6AAAAABPJJSMF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRVGUYDQMJVG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I am currently working around this problem by registering the following script in the startup script of Templater plugin in addition to the above fix.
|
Not sure if it's helpful or if it should be added to this thread or not (let me know and I can move it if preferable), but I'm also getting a similar console error if the calendar is not visible on load. My error involves the Settings Search plug in, which adds a search bar to search for settings in the entire settings menu. When I attempt to search for the name of any settings from the Calendar plug-in, no results come up, so it appears that it fails at adding the settings for Calendar from this error. I confirmed that if the calendar is visible on load, then the settings do come up in it's searches and that this happens with other plug-ins that error for not being visible on load. Definitely seems to involve the new view rendering they introduced. I'm on windows 10 and don't have Periodic Notes installed. I also didn't override any local defaults using calendar and I haven't noticed any problems viewing the calendar or any of the settings on the settings page for it. Here's the console error in its entirety.
|
Describe the bug
The locale override feature appears to be broken in recent Obsidian insider versions (starting from v1.7.2 or v1.7.3?). This feature had been working flawlessly for years until recently in my environment. Rolling back to the public release of Obsidian seems to resolve the issue.
Steps to reproduce
Incorrect Daily Note Naming
Settings Display Issues
Screenshots
Settings screen fails to show all items
Environment (please specify)
OS
Windows 11
Obsidian Version (e.g. v0.10.6)
v1.7.3 (insider)
The text was updated successfully, but these errors were encountered: