Dashboard bug: add checklist item sometimes doesn't work
オープン
@jgclark がすでに取り組んでいます。
2024年1月14日 から。
bug
- 主要言語
- JavaScript
- スター
- 204
- フォーク
- 82
- 平均マージ
- 22時間 27分
- マージ済み PR(30日)
- 3
説明
I'm not sure how to consistently replicate, but sometimes clicking the little "[+]" on the dashboard in the Today section fails silently. The logs show a lot of activity for one attempt to add a checklist item. Not sure why it's doing all this stuff. Not sure why it fails. When I click the button, I do not get the NP CommandBar pop up to input the item.
But hope this is helpful:
Executing function 'addChecklist'
2024-01-14 10:27:58 ❗️ERROR❗️ dateTime / getDateStringFromCalendarFilename :: undefined is not an object (evaluating 'filename.match')
2024-01-14 10:27:58 | DEBUG | addChecklist :: - adding task to (invalid date) from undefined
2024-01-14 10:27:58 ❗️ERROR❗️ NPP/prependTodoToCalendarNote :: - Can't get calendar note for (invalid date)
2024-01-14 10:27:58 | DEBUG | jgclark.Dashboard v0.8.2 :: showDashboardHTML() started
2024-01-14 10:27:58 | DEBUG | jgclark.Dashboard/checkForRequiredSharedFiles :: Starting...
2024-01-14 10:27:58 | DEBUG | jgclark.Dashboard/checkForRequiredSharedFiles :: 9 wanted files: fontawesome.css,light.min.flat4NP.css,regular.min.flat4NP.css,solid.min.flat4NP.css,fa-light-300.woff2,fa-regular-400.woff2,fa-solid-900.woff2,pluginToHTMLCommsBridge.js,encodeDecode.js
2024-01-14 10:27:58 | DEBUG | jgclark.Dashboard/checkForRequiredSharedFiles :: plugin np.Shared is loaded 😄; no further checking done
2024-01-14 10:27:58 | DEBUG | getDataForDashboard :: starting for full generation
2024-01-14 10:27:58 | DEBUG | getDataForDashboard :: ---------------------------- Looking for Today's items for section #0 from 20240114
2024-01-14 10:27:58 | DEBUG | getOpenItemParasForCurrentTimePeriod :: Processing 20240114.md which has 44 paras
2024-01-14 10:27:58 | INFO | getOpenItemParasForCurrentTimePeriod :: Got 44 parasToUse (after 4ms)
2024-01-14 10:27:58 | INFO | getOpenItemParasForCurrentTimePeriod :: After 'isOpenNotScheduled + not blank' filter: 15 paras (after 5ms)
2024-01-14 10:27:58 | DEBUG | getReferencedParagraphs :: "2024-01-14" has backlinks.length:1 & wantedParas.length:1
2024-01-14 10:27:58 | DEBUG | getDataForDashboard :: -> 15 daily items
2024-01-14 10:27:58 | INFO | getDataForDashboard :: - finished finding daily items after 38ms
2024-01-14 10:27:58 | DEBUG | getDataForDashboard :: ---------------------------- Looking for Weekly items for section #2 from 2024-W03
2024-01-14 10:27:58 | DEBUG | getOpenItemParasForCurrentTimePeriod :: Processing 2024-W03.md which has 0 paras
2024-01-14 10:27:58 | INFO | getOpenItemParasForCurrentTimePeriod :: Got 0 parasToUse (after 1ms)
2024-01-14 10:27:58 | INFO | getOpenItemParasForCurrentTimePeriod :: After 'isOpenNotScheduled + not blank' filter: 0 paras (after 1ms)
2024-01-14 10:27:58 | DEBUG | getReferencedParagraphs :: "2024-W03" has backlinks.length:0 & wantedParas.length:0
2024-01-14 10:27:58 | DEBUG | getDataForDashboard :: -> 16 weekly items
2024-01-14 10:27:58 | INFO | getDataForDashboard :: - finished finding week items after 50ms
2024-01-14 10:27:58 | DEBUG | getDataForDashboard :: No monthly note found for filename '2024-01.md'
2024-01-14 10:27:58 | DEBUG | getDataForDashboard :: No quarterly note found for filename '2024-Q1.md'
2024-01-14 10:27:58 | DEBUG | getDataForDashboard :: ---------------------------- Looking for Overdue Tasks for section #3 -----------------------------
2024-01-14 10:27:58 | DEBUG | getDataForDashboard :: Found 116 overdue items in 142ms
2024-01-14 10:27:58 | DEBUG | getDataForDashboard :: - 27 paras after excluding @special + [@Templates,@Searches,@Saved Searches,@Theme,@Window Sets,Reviews,Summaries,@Archive,Projects,_TEST,zDELETEME,Evernotes,@Theme,Migrating Plugin Documentation] folders
2024-01-14 10:27:58 | DEBUG | getDataForDashboard :: - Sorted 27 items by -priority,-changedDate in 1ms
2024-01-14 10:27:58 | DEBUG | getDataForDashboard :: - after limit, now 27 items to show
2024-01-14 10:27:58 | DEBUG | getDataForDashboard :: ---------------------------- Looking for tag '#Home' for section #4 -----------------------------
2024-01-14 10:27:58 | DEBUG | NPNote/findNotesMatchingHashtagOrMention :: tag:#Home folder:(none) includeSubfolders:false tagsToExclude: caseInsensitiveMatch:true
2024-01-14 10:27:58 | DEBUG | NPnote/findNotesMatchingHashtag :: starting with 4330 notes (from DataStore.projectNotes)
2024-01-14 10:27:58 | DEBUG | NPnote/findNotesMatchingHashtag :: >> projectNotes filtering took 0ms
2024-01-14 10:27:58 | DEBUG | NPnote/findNotesMatchingHashtag :: In folder '<all>' found 0 notes matching '#Home'
2024-01-14 10:27:58 | DEBUG | getDataForDashboard :: - 0 paras after excluding @special + [@Templates,@Searches,@Saved Searches,@Theme,@Window Sets,Reviews,Summaries,@Archive,Projects,_TEST,zDELETEME,Evernotes,@Theme,Migrating Plugin Documentation] folders
2024-01-14 10:27:58 | INFO | getDataForDashboard :: - finished finding tagged items after 55ms
2024-01-14 10:27:58 | DEBUG | getDataForDashboard :: ---------------------------- Looking for Project items for section #4 -----------------------------
2024-01-14 10:27:58 | DEBUG | jgclark.Reviews v0.13.1 :: Starting getNextNotesToReview())
2024-01-14 10:27:58 | DEBUG | dashboard/getNextNotesToReview :: - Next to review = 'Migrating Plugin Documentation'
2024-01-14 10:27:58 | DEBUG | dashboard/getNextNotesToReview :: - Next to review = '⭐️ NP: Overdue React'
2024-01-14 10:27:58 | DEBUG | dashboard/getNextNotesToReview :: - Next to review = 'Passport Renewals'
2024-01-14 10:27:58 | DEBUG | dashboard/getNextNotesToReview :: - Next to review = 'Anique Room Reno 2023'
2024-01-14 10:27:58 | INFO | getDataForDashboard :: finished generating 6 sections and 47 items in 312ms
2024-01-14 10:27:58 | DEBUG | showDashboardHTML :: Section Today ID:0 filename:20240114.md
2024-01-14 10:27:58 | DEBUG | showDashboardHTML :: Section Today ID:1 filename:
2024-01-14 10:27:58 | DEBUG | showDashboardHTML :: Section This week ID:2 filename:2024-W03.md
2024-01-14 10:27:58 | DEBUG | showDashboardHTML :: Section 2 (This week) is empty so will skip it
2024-01-14 10:27:58 | DEBUG | showDashboardHTML :: Section Overdue Tasks ID:3 filename:
2024-01-14 10:27:58 | DEBUG | showDashboardHTML :: Section Projects ID:4 filename:
2024-01-14 10:27:58 | DEBUG | showDashboardHTML :: Section Done ID:0 filename:
2024-01-14 10:27:58 | DEBUG | generateCSSFromTheme :: Translating your current theme 'Orange'
2024-01-14 10:27:58 | DEBUG | generateCSSFromTheme :: bodyFont: AvenirNext-Regular
2024-01-14 10:27:58 | DEBUG | HTMLView / showHTMLV2 :: starting with customId jgclark.Dashboard.main and reuseUsersWindowRect true
2024-01-14 10:27:58 | DEBUG | isHTMLWindowOpen :: Found window 'jgclark.Dashboard.main' matching requested customID 'jgclark.Dashboard.main'
2024-01-14 10:27:58 | DEBUG | showHTMLV2 :: Window is already open, and will save its x/y/w/h
2024-01-14 10:27:58 | DEBUG | storeWindowRect :: Saved Rect X809,Y224,w1284,h855 to WinRect_jgclark.Dashboard.main
2024-01-14 10:27:58 | DEBUG | getWindowRect :: Retrieved Rect X809,Y224,w1284,h855 from saved WinRect_jgclark.Dashboard.main
2024-01-14 10:27:58 | DEBUG | showHTMLV2 :: - Read user's saved Rect from pref from jgclark.Dashboard.main
2024-01-14 10:27:58 | DEBUG | showHTMLV2 :: - screen dimensions are 1728 x 1117 for device dbw-macbookpro16-2.local
2024-01-14 10:27:58 | DEBUG | showHTMLV2 :: - Saved copy of HTML to 'Dashboard (47 items)' to ../../jgclark.Dashboard/dashboard.html
2024-01-14 10:27:58 | DEBUG | showHTMLV2 :: - Window has customId 'jgclark.Dashboard.main' / id CA6644BE-3602-4F30-B026-0DC61621F6AB
2024-01-14 10:27:58 | DEBUG | makeDashboard :: written to HTML window with shouldFocus false
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。