Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Why is index.html ignored when I do not issue any ignore pattern and how to fix this?

Abierto
#235 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
tooling

Línea de trabajo

Start by tracing Server.watch and server.serve through the watcher handling shown in the issue, using the printed _tasks entries for build/**/* and build/*. Determine why build/index.html is logged as ignored despite ignore being None. Done means identifying the cause and documenting or verifying a configuration that watches all files under build.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

I run a livereload server from this code:

from livereload import Server, shell
server = Server()
server.watch('build/**/*')
server.watch('build/*')
print(server.watcher._tasks)
server.serve(host='0.0.0.0', root='build', port=9000)

When I run this server and then change the stuff in my site directory build I get logging output like this:

$$$ python server.py                                                                                 
{'build/**/*': {'func': None, 'delay': None, 'ignore': None, 'mtimes': {}}, 
 'build/*': {'func': None, 'delay': None, 'ignore': None, 'mtimes': {}}}
[I 201025 13:23:17 server:335] Serving on http://0.0.0.0:9000
[I 201025 13:23:17 handlers:62] Start watching changes
[I 201025 13:23:17 handlers:64] Start detecting changes
[I 201025 13:23:38 handlers:135] Browser Connected: http://localhost:9000/gallery/
[I 201025 13:24:36 handlers:95] Reload 1 waiters: build/static/css/custom.css
[I 201025 13:24:37 handlers:82] Ignore: build/index.html

The output shows in the last line that build/index.html is ignored hwich totally defets the propsuse - beacsue build/index.html was chanegd. And my debug print line at the top show clearly that in _tasks is no ignore attrivute set.

So why is build/index.html ignored and how can I tell livereload to watch all files in the directory build for changes. (The site is not very big; it contains only 114 files).

Lenguaje dominante
Python
Estrellas
1.1k
Forks
148
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de lepture/python-livereload

Todos los issues de lepture/python-livereload

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.