Closed meain closed 11 months ago
Sorry I am to able to reproduce this. Is it still happening?
After updating to the newer version, I now get a different error:
RangeError: Format string contains an unescaped latin alphabet character `n`
This is when I use @today
.
Looks like a library issue.
Is it still parsing even with the error? I am still not able to reproduce it, i.e. I can parse without receiving any errors in developer tools.
Is it still parsing even with the error?
Nope, nothing seems to happen.
Looks like a https://github.com/date-fns/date-fns/issues/1857.
Yup, I tried debugging it and it looks like it is coming from format
here.
I installed an update today. I am only having this issue after the update, but I can't seem to pin it to any particular commit. With the previous version (the one on the day I reported this bug), I was able to get it to work once I had reset the language.
I cannot get it to work at all since some recent version.
v4.2.5 I have the language on nl. However I also tried in English and no luck either.
Normally typing @vandaag
gave the me today's date in [[16-10-2023]]
.
Now nothing happens. I added a screenshot some examples:
Here are my settings:
I wonder what I can check to figure it out?
I wonder what I can check to figure it out?
Also checked this:
{
"semiAuto": true,
"insertDateProperty": false,
"lang": "nl",
"specialCharHeading": "",
"dateChar": "@",
"scheduledChar": "%",
"deadlineChar": "^",
"disabled": false
}
Huh, that is interesting. Looks like using %
and ^
works, but not @
.
EDIT: Ahh, these don't use getDateForPage
which means it does not call into date-fns
.
@Holanda73 As for %
not showing anything, you need to have some content in that block for logseq to show the scheduled date.
@Holanda73 As for
%
not showing anything, you need to have some content in that block for logseq to show the scheduled date.
agree, sorry you are right, I just tested it. But indeed @
does not work.
I even removed the plugin and re-installed it (in an earlier version) and it did not help.
Hi @Holanda73 and @meain, can you share what languages you all are using?
I suspect what is happening is how the date formats are being returned on your respective computers and date-fns
expects UTF-8 formats. Would like to confirm this.
I have English both in my system and specified in the plugin settings(en
).
Language set is NL but see my language and regional settings
Sorry for the delayed response. Could you try to see if v4.3.1 fixes the issue?
Sorry for the delayed response. Could you try to see if v4.3.1 fixes the issue?
Seems it only works if the date text is the only text:
Hmm, I still cannot reproduce it.
https://github.com/hkgnp/logseq-datenlp-plugin/assets/47936793/a7f0dee9-6514-430d-86a0-2bda0a99ae54
Maybe you can try uninstalling the plugin, close Logseq, delete logseq-datenlp-plugin_layouts.json
and logseq-datenlp-plugin.json
from .logseq/settings
, open Logseq, and re-install the plugin?
Hmm, I still cannot reproduce it.
vandaag.mov
Maybe you can try uninstalling the plugin, close Logseq, delete
logseq-datenlp-plugin_layouts.json
andlogseq-datenlp-plugin.json
from.logseq/settings
, open Logseq, and re-install the plugin?
I closed Logseq and restarted again now it seems to work. In some weird case a time stamp appeared, but can't reproduce. So it seems to have been fixed now.
Appreciate the follow up !!!!
I had the same issue, what fixed it for me:
Uninstall -> Restart LogSeq -> Install
Same here, looks like it is all good now. Lemme close the ticket! Thank again for the plugin :D
Probably coming from nothing being available here: https://github.com/hkgnp/logseq-datenlp-plugin/blob/4a57082d622234e757db709040b6e079ac85749d/src/features/parse/index.ts#L93
I had never updated this setting. Changing the language to something else and changing back to the default (
en
) seems to fix the issue for me.