Occasional loss of a requiredFile in HTMLView
@EduardMe がすでに取り組んでいます。
2024年1月27日 から。
評価
この issue はまだ評価されていません。
説明
For some months I've had occasional examples of this behaviour: the Dashboard is open and an onSave trigger on the daily note correctly asks for an update to this display.
The right-hand part here is what is displayed. All the text is correct, and most but not all of the formatting is right.
As you may remember after generating the HTML and sending it to the API, I then persist a copy of it to a local file. The left-hand part here is what happens when I render that in Safari (my usual way of debugging complex HTML). This shows it completely as expected.
This happens I reckon about 1 refresh in 60, but I can't find more of a pattern than that. When I refresh the Dashboard it always corrects itself.
There are no errors or warnings in the log. Specifically this is happening on b1085 on my main machine; I'm keeping that on the 3.9.5 release to avoid the other major bug.
I've reverse engineered what is happening. There are two sources of CSS:
- contained in the main HTML that's generated.
- comes from a static dashboard.css file which is one of the "plugin.requiredFiles" defined for the plugin.
If I manually disable all uses of that file in the Safari debugger/inspector, it then looks exactly like the wrong image above. Therefore, I'm 99% sure that occasionally when an existing HTML window is being re-used, a requiredFile is somehow not read or applied.
Originally discussed in Discord thread
- 主要言語
- JavaScript
- スター
- 203
- フォーク
- 81
- 平均マージ
- 52分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NotePlan/plugins のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
API bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
Task Sorting & Tools: support other line types対応中かも @dwertheimer が 11 日前に担当しました。 オープンenhancement
-
getFoldersMatching adds root "/" even when it is not an inclusion対応中かも @jgclark が 11 日前に担当しました。 オープン
-
enhancement question
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
NotePlan/plugins の issue をすべて見る
似ている issue
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
remotestorage/remotestorage.js#1405 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nativewind/nativewind#1879 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
BCStudentSoftwareDevTeam/cas#448 ·
-
enhancement good first issue hacktoberfest help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
BinaryBaconLabs/todo-app#14 ·