docs-updater should race against a timeout or else starting the language server hangs.
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- typescript
- Área
- developer-experience, devtools
Línea de trabajo
Comienza por el método setup de theme-docs-updater e inspecciona sus llamadas a latestRevision y download. Reproduce el inicio con el Wi-Fi no disponible y verifica que continúe usando la documentación almacenada en el disco después de, como máximo, el tiempo de espera solicitado, en lugar de quedarse bloqueado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
The VS Code extension hangs if you start it with Wifi down (happened to me during storms last week). It hangs because theme-docs-updater attempts to download latest.json from theme-liquid-docs and it doesn't timeout (or the timeout is long).
We should do something more along the lines of "wait at most 5s and otherwise go with what is on disk".
Something like this:
const timeout = (ms: number) => new Promise((_, reject) => setTimeout(reject, ms));
/**
* The setup method checks that the latest revision matches the one from
* Shopify/theme-liquid-docs. If there's a diff in revision, it means
* that the documentations that you have locally are out of date.
*
* The setup method then downloads the other files.
*/
setup = memo(async (): Promise<void> => {
if (!(await exists(root))) {
await fs.mkdir(root, { recursive: true });
}
const local = await this.latestRevision();
try {
await Promise.race([download('latest'), timeout(2000)]);
const remote = await this.latestRevision();
if (local !== remote) {
await Promise.all(Resources.map((resource) => download(resource)));
}
} catch (_) {
// we're offline...
}
});
- Lenguaje dominante
- TypeScript
- Estrellas
- 245
- Forks
- 108
- Merge medio
- 2 d 8 h
- PR fusionados (30 d)
- 24
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Shopify/theme-tools
-
ThemeCheck incorrectly reports error when `with` is used in snippetPosiblemente ocupada @efegokdemir la tomó hace 4 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Shopify/theme-tools#1408 ·
Los mantenedores suelen responder en 2 días
-
CdnPreconnect misses `href="https://cdn.shopify.com"` without a trailing pathPosiblemente ocupada @RaphaelFakhri la tomó hace 33 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Shopify/theme-tools#1365 ·
Los mantenedores suelen responder en 2 días
-
theme-graph CLI never calls getWebComponentMap, so custom-element references are never resolvedPosiblemente ocupada @reginaldalfret la tomó hace 51 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Shopify/theme-tools#1291 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
JSONMissingBlock false positive for app block when section supports both @app and @themeQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Shopify/theme-tools#1144 · 2 comentarios · 8 reacciones ·
Los mantenedores suelen responder en 2 días
-
theme-language-server: creating or deleting a folder leaves stale readDirectory/stat cachePosiblemente ocupada @efegokdemir la tomó hace 14 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
Shopify/theme-tools#1386 ·
Los mantenedores suelen responder en 2 días
Todos los issues de Shopify/theme-tools
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
-
bug triage:in-progress
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
e2e-failure ready-to-code
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
redhat-developer/rhdh-plugin-export-overlays#4845 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
chore kaizen ui-rewrite
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
IBM/mcp-context-forge#7681 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
cloudflare/workers-sdk#17159 ·
Los mantenedores suelen responder en 1 día