Occasional loss of a requiredFile in HTMLView
@EduardMe já está trabalhando nisso.
Desde 27/1/2024.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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
- Linguagem predominante
- JavaScript
- Estrelas
- 203
- Forks
- 81
- Merge médio
- 52min
- PRs com merge (30d)
- 1
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de NotePlan/plugins
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
-
API bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
-
Task Sorting & Tools: support other line typesTalvez já em andamento @dwertheimer assumiu há 10 dias. Abertaenhancement
-
getFoldersMatching adds root "/" even when it is not an inclusionTalvez já em andamento @jgclark assumiu há 10 dias. Aberta
-
Dashboard: Task "Comment"Abertaenhancement question
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
Todas as issues de NotePlan/plugins
Issues semelhantes
-
enhancement javascript python
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
jlab-sensing/ENTS-backend#851 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 86/100
guilhermerodz/input-otp#157 · 1 comentário ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
davidjerleke/embla-carousel#1414 ·
Mantenedores costumam responder em até 4 dias
-
0. Needs triage bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia