NotePlan / plugins

The main NotePlan repository, which contains the source code for all NotePlan plugins. If a release entry has been created, it will be available for installation from within NotePlan application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repeat Extensions v0.8.0 no longer works and returns an error message

Der-Canonier opened this issue · comments

Checks

  • I confirm I have restarted NotePlan and this problem still persists.
  • Is this a repeatable problem?

Describe the bug
A clear and concise description of what the bug is.

after the update to v0.8.0 the extension no longer works as usual.
And this is not due to the new beta version of Noteplan. I downloaded the version from the Appstore. The error still occurs.

Either nothing happens when the task is finished - but the time is also displayed (which is not usually the case).
Or the error message appears.

What do you expect it to do instead?

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots
If applicable, add screenshots to help explain your problem.
image
image

System

  • Device: [e.g. iPhone13, Mac] iPhone 15 Pro, iPad Pro 12.9, MacBook 2023
  • OS: [e.g. iOS8.1, macOS 10.15] iOS + iPadOS 17.5.1, macOS 14.5
  • NotePlan Version [e.g. 3.0.25] 3.12.1 or Beta 3.12.2 (1210)
  • Plugin Name & Version [e.g. "Templates" v0.2] @repeat Extension v0.8.0

Additional context
Add any other context about the problem here.

Plugin Console Log
To provide us with more clues about where the bug/error is occurring...

  1. Open the Plugin's Preferences by going to NotePlan's menu > Preferences > Plugins and clicking the settings "cog" icon next to the plugin in question. Scroll to the bottom and set the logging level to "DEBUG" and click "Save & Close"
  2. Now open the Plugin Console by going to Noteplan > Help > Plugin Console (not the macOS Console app).
  3. Run the plugin command you're reporting
  4. Copy the output from the Plugin Console and paste it below
  5. Delete any output that has personal information you don't want in there
    PASTE_PLUGIN_CONSOLE_OUTPUT_HERE

Executing function 'onEditorWillSave'
2024-06-14 15:42:32 | DEBUG | jgclark.RepeatExtensions v0.8.0 :: onEditorWillSave triggered for 'MC-Beratung 🟦/MC - ToDo´s ✅/Backup.md' with 109 versions; last triggered 16157ms ago
2024-06-14 15:42:32 | DEBUG | repeatExtensions/onEditorWillSave :: - changed lines 28-28
2024-06-14 15:42:32 | DEBUG | jgclark.RepeatExtensions v0.8.0 :: noteArg -> MC-Beratung 🟦/MC - ToDo´s /Backup.md
2024-06-14 15:42:32 | DEBUG | jgclark.RepeatExtensions v0.8.0 :: generateRepeats() starting for 'MC-Beratung 🟦/MC - ToDo´s ✅/Backup.md' for 42 active lines
2024-06-14 15:42:32 | DEBUG | generateUpdatedLineContent :: - Found extended @repeat syntax: '1w' with completedDate 2024-06-14 in "⏱️ 06:45 - 07:15 ↻ iMazing iPhones + iPads @repeat(1w) >2024-06-14 @done(2024-06-14)" in MC-Beratung 🟦/MC - ToDo´s /Backup.md
2024-06-14 15:42:32 | DEBUG | generateUpdatedLineContent :: - outputTimeframe: day
2024-06-14 15:42:32 | DEBUG | generateUpdatedLineContent ::   due date match = 2024-06-14
2024-06-14 15:42:32 | INFO  | dateTime / cODS :: - This output will only be accurate if your week start is a Monday. Please raise an issue if this is not the case. More details in DEBUG-level log.
2024-06-14 15:42:32 | DEBUG | dateTime / cODS ::   Details: day adapt for 2024-06-14 / d / YYYY-MM-DD / YYYY-[W]WW / 1w / 2024-W25
2024-06-14 15:42:32 | DEBUG | dateTime / cODS :: - 'day' output: changed format to YYYY-MM-DD
2024-06-14 15:42:32 | DEBUG | generateUpdatedLineContent :: - adding from due date -> 2024-06-21
2024-06-14 15:42:32 | DEBUG | generateRepeats :: - outputLine: ⏱️ 06:45 - 07:15  iMazing iPhones + iPads @repeat(1w)
2024-06-14 15:42:32 | DEBUG | generateRepeats :: - outputLine: "⏱️ 06:45 - 07:15 ↻ iMazing iPhones + iPads @repeat(1w) >2024-06-21"
2024-06-14 15:42:32 | INFO  | generateRepeats :: - inserted new repeat in note MC-Beratung 🟦/MC - ToDo´s /Backup.md at line 23
2024-06-14 15:42:32 | DEBUG | generateUpdatedLineContent :: - Found extended @repeat syntax: '+2d' with completedDate 2024-06-14 in "⏱️ 14:45 - 15:00 ↻ Tägliche Backups @repeat(+2d) >2024-06-13 @done(2024-06-14)" in MC-Beratung 🟦/MC - ToDo´s /Backup.md
2024-06-14 15:42:32 | DEBUG | generateUpdatedLineContent :: - outputTimeframe: day
2024-06-14 15:42:32 | DEBUG | generateUpdatedLineContent :: - adding from completed date -> 2024-06-16
2024-06-14 15:42:32 | DEBUG | generateRepeats :: - outputLine: ⏱️ 14:45 - 15:00  Tägliche Backups @repeat(+2d)
2024-06-14 15:42:32 | DEBUG | generateRepeats :: - outputLine: "⏱️ 14:45 - 15:00 ↻ Tägliche Backups @repeat(+2d) >2024-06-16"
2024-06-14 15:42:32 | INFO  | generateRepeats :: - inserted new repeat in note MC-Beratung 🟦/MC - ToDo´s /Backup.md at line 33

Thanks for the clear report. Should be fixed in v0.8.1. Please re-open if not.